D-Link NetDefend SOHO DFL-160 UTM Firewall User Manual

D-Link NetDefend SOHO DFL-160 UTM Firewall User Manual
Add to My manuals

Below you will find brief information for UTM Firewall NetDefend SOHO DFL-160. The DFL-160 is a hardware/software solution designed for small organizations and home environments where a conventional IP router connected to the public Internet does not have sufficient capabilities to provide the network security required to combat today's threats. It provides a firewall and UTM features such as anti-virus, intrusion detection and prevention, and web content filtering to protect your network.

advertisement

Assistant Bot

Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.

D-Link NetDefend SOHO DFL-160 User Manual | Manualzz

SOHO

UTM Firewall

User Manual

DFL-160

Ver 2.27.00

Network Security Solution http://www.dlink.com.tw

User Manual

D-Link DFL-160 Firewall

NetDefendOS Version 2.27.00

D-Link Corporation

No. 289, Sinhu 3rd Rd, Neihu District, Taipei City 114, Taiwan R.O.C.

http://www.DLink.com

Published 2010-05-24

Copyright © 2009

User Manual

D-Link DFL-160 Firewall

NetDefendOS Version 2.27.00

Published 2010-05-24

Copyright © 2009

Copyright Notice

This publication, including all photographs, illustrations and software, is protected under international copyright laws, with all rights reserved. Neither this manual, nor any of the material contained herein, may be reproduced without written consent of the author.

Disclaimer

The information in this document is subject to change without notice. The manufacturer makes no representations or warranties with respect to the contents hereof and specifically disclaim any implied warranties of merchantability or fitness for any particular purpose. The manufacturer reserves the right to revise this publication and to make changes from time to time in the content hereof without obligation of the manufacturer to notify any person of such revision or changes.

Limitations of Liability

UNDER NO CIRCUMSTANCES SHALL D-LINK OR ITS SUPPLIERS BE LIABLE FOR

DAMAGES OF ANY CHARACTER (E.G. DAMAGES FOR LOSS OF PROFIT, SOFTWARE

RESTORATION, WORK STOPPAGE, LOSS OF SAVED DATA OR ANY OTHER

COMMERCIAL DAMAGES OR LOSSES) RESULTING FROM THE APPLICATION OR

IMPROPER USE OF THE D-LINK PRODUCT OR FAILURE OF THE PRODUCT, EVEN IF

D-LINK IS INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. FURTHERMORE,

D-LINK WILL NOT BE LIABLE FOR THIRD-PARTY CLAIMS AGAINST CUSTOMER FOR

LOSSES OR DAMAGES. D-LINK WILL IN NO EVENT BE LIABLE FOR ANY DAMAGES IN

EXCESS OF THE AMOUNT D-LINK RECEIVED FROM THE END-USER FOR THE

PRODUCT.

Table of Contents

1. Product Overview .............................................................................................. 6

1.1. The DFL-160 Solution ............................................................................. 6

1.2. Ethernet Interfaces ................................................................................... 8

1.3. The LED Indicators ................................................................................10

2. Initial Setup .....................................................................................................12

2.1. Unpacking ............................................................................................12

2.2. Web Browser Connection ........................................................................14

2.3. Browser Connection Troubleshooting ........................................................19

2.4. Console Port Connection .........................................................................20

3. The System Menu .............................................................................................23

3.1. Administration .......................................................................................23

3.2. Internet Connection ................................................................................26

3.3. LAN Settings ........................................................................................28

3.4. DMZ Settings ........................................................................................31

3.5. Logging ................................................................................................34

3.6. Date and Time .......................................................................................36

3.7. Dynamic DNS Settings ............................................................................38

4. The Firewall Menu ...........................................................................................40

4.1. Outbound LAN Traffic Options ................................................................41

4.2. Outbound DMZ Traffic Options ................................................................43

4.3. Inbound Traffic Options ..........................................................................45

4.4. VPN Options .........................................................................................47

4.4.1. IPsec .........................................................................................48

4.4.2. L2TP/PPTP Client .......................................................................52

4.4.3. L2TP/PPTP Server .......................................................................53

4.5. VPN Users ............................................................................................55

4.6. Web Content Filtering .............................................................................56

4.6.1. Options ......................................................................................56

4.6.2. The Content Categories .................................................................58

4.7. Anti-Virus ............................................................................................65

4.8. IDP Options ..........................................................................................68

4.9. Traffic Shaping ......................................................................................71

4.10. Schedules ............................................................................................74

5. The Tools Menu ...............................................................................................77

5.1. Ping .....................................................................................................77

6. The Status Menu ...............................................................................................79

6.1. System Status ........................................................................................80

6.2. Logging Status .......................................................................................82

6.3. Anti-Virus Status ...................................................................................83

6.4. Web Content Filtering Status ....................................................................84

6.5. IDP Status ............................................................................................85

6.6. Connections Status .................................................................................86

6.7. Interfaces Status .....................................................................................87

6.8. IPsec Status ...........................................................................................89

6.9. User Authentication Status .......................................................................90

6.10. Routes ................................................................................................91

6.11. DHCP Server Status ..............................................................................92

7. The Maintenance Menu .....................................................................................94

7.1. The Update Center .................................................................................94

7.2. Licenses ...............................................................................................96

7.3. Backups ...............................................................................................98

7.4. Reset to Factory Defaults .........................................................................99

7.5. Upgrades ............................................................................................ 100

7.6. Technical Support ................................................................................ 101

8. The Console Boot Menu .................................................................................. 103

9. Troubleshooting ............................................................................................. 105

A. CLI Reference ............................................................................................... 107

4

User Manual

B. Windows XP IP Setup ..................................................................................... 121

C. Windows Vista IP Setup .................................................................................. 123

D. Windows 7 IP Setup ....................................................................................... 125

E. Apple Mac IP Setup ........................................................................................ 127

Alphabetical Index ............................................................................................. 129

5

Chapter 1. Product Overview

• The DFL-160 Solution, page 6

• Ethernet Interfaces, page 8

• The LED Indicators, page 10

1.1. The DFL-160 Solution

The NetDefend SOHO UTM product is a D-Link hardware/software solution designed for situations where a conventional IP router connected to the public Internet in a small organization or home environment does not have sufficient capabilities to provide the network security required to combat today's universe of potential external threats.

The DFL-160 and the NetDefendOS Software

The term DFL-160 refers to the physical hardware that is provided with the NetDefend SOHO UTM product. The operating system software that drives the hardware is a purpose built networking operating system called D-Link NetDefendOS. This operating system is also found in D-Link DFL firewall products designed for larger enterprises.

The NetDefendOS Management Interface

The principle management interface for the DFL-160 is through a web browser running on a separate computer. This computer acts as a management workstation and the DFL-160 acts as a web server, allowing the product to be managed through an intuitive set of web pages that are viewed through the web browser.

The DFL-160 Interfaces

The DFL-160 provides 10/100/1000 Mbps capable LAN (Local Area Network) and DMZ

(Demilitarized Zone) Ethernet interfaces for the internal, protected networks plus a 10/100 Mbps capable WAN (Wide Area Network) interface for connection to the public Internet. Further

information about all these can be found in Section 1.2, “Ethernet Interfaces”.

Additionally, a serial interface (the COM port) is provided for access to a Command Line Interface

(CLI).

Below is an image of the back of the DFL-160 unit showing all the connection ports.

6

1.1. The DFL-160 Solution Chapter 1. Product Overview

"Inside" and "Outside" Networks

The NetDefendOS provides the administrator with the ability to control and manage the traffic that flows between the trusted "inside" networks and the much more threatening public Internet that lies

"outside".

The "outside" Internet network is connected to the DFL-160's WAN interface and the trusted

"inside" network is connected to the LAN interface. As explained later, there are, in fact, four LAN interfaces connected together through an internal switch.

The network connected to the DMZ interface can be considered to also be "inside" but it is designed for a network where servers are situated which are accessed by external hosts and users on the public Internet. The DMZ therefore represents a place where threats such as server viruses can be isolated and kept separate from the more sensitive LAN network. For this reason, connections initiated from hosts and users on the DMZ network to the LAN network are never allowed.

Firewalling and UTM

NetDefendOS provides the NetDefend SOHO UTM product with the following important features to protect against external threats coming from the Internet:

• Extensive Firewalling Capabilities

NetDefendOS can block traffic which does not comply with security policies defined by the user. These policies can target traffic according to which protocol (such as HTTP or FTP) is arriving and leaving, and by which interface, as well as optionally determining when such traffic is allowed according to a time schedule.

There are three sets of basic traffic flow policies that can be defined:

1.

Traffic initiated by internal networks ("outbound traffic")

2.

Traffic initiated by external networks to hosts and users on the LAN network ("inbound

LAN traffic").

3.

Traffic initiated by external networks to hosts and users on the DMZ network ("inbound

DMZ traffic").

Note: No inbound traffic is initially allowed

When a DFL-160 is started for the first time, no inbound traffic is allowed so the administrator should decide what inbound traffic will be allowed as one of the first setup steps.

• Unified Threat Management (UTM)

UTM is performed by NetDefendOS through the following features:

1.

An Anti-Virus option to scan file downloads for viruses.

2.

Intrusion Detection and Prevention to scan all traffic connecting to internal servers.

3.

Web Content Filtering to implement policies on the types of web sites that can be accessed.

7

1.2. Ethernet Interfaces Chapter 1. Product Overview

1.2. Ethernet Interfaces

Physical Interface Arrangement

The DFL-160 has a number of physical Ethernet interfaces which can be used to plug into other

Ethernet networks. The image below shows these interfaces at the back of the hardware unit.

Interface Network Connections

The illustration below shows the typical usage of network connections to the DFL-160 interfaces.

Intended Interface Usage

The interfaces are intended to be used in the following ways:

• The LAN interfaces.

There are four physical LAN interfaces which are labelled: LAN1, LAN2, LAN3 and LAN4.

8

1.2. Ethernet Interfaces Chapter 1. Product Overview

These are intended for connection to local, internal networks which will be protected from the outside internet by the highest security available from the DFL-160.

Interfaces LAN1 to LAN4 are connected together via a switch fabric in the DFL-160 which means that traffic travelling between them will not be subject to the control of NetDefendOS.

All four are considered to be part of the single logical LAN interface.

This manual will refer to the LAN interface and by this will mean a connection to any of these 4 physical interfaces.

The management options for the LAN interface are described in Section 3.3, “LAN Settings”.

• The DMZ interface.

This is for connection to a local network which will be the Demilitarized Zone (DMZ). A DMZ is usually set aside to contain computers that regularly receive data from and send data to the public internet. An example might be a mail server. The intent with the DMZ interface is to provide a stage of security between the well protected, internal LAN networks and the public

Internet which is connected to the WAN interface.

If desired, the DMZ can be used like another LAN interface but does not share the common

LAN switch fabric mentioned above.

The management options for the DMZ interface are described in Section 3.4, “DMZ Settings”.

• The WAN interface.

This is intended for connection to an external network. In most cases this interface will be connected to the public Internet via your Internet Service Provider (ISP).

The basic management options for the WAN interface are described in Section 3.2, “Internet

Connection”.

Interface Link Speed Capabilities

The physical speed capabilities are as follows:

Ethernet Interface

LAN (1 to 4)

DMZ

WAN

Capability (Megabits/second)

10/100/1000 Mbps

10/100/1000 Mbps

10/100 Mbps

9

1.3. The LED Indicators Chapter 1. Product Overview

1.3. The LED Indicators

On the front portion of the DFL-160 casing are a set of indicator lights which show system status and Ethernet port activity.

Power and Status

The power light is illuminated when power is applied and the status light is illuminated after

NetDefendOS has completed start up or if the boot menu has been entered prior to complete startup

(the latter is described in Chapter 8, The Console Boot Menu).

Ethernet Ports

On the right hand side of the front of the DFL-160 there is a line of LED lights that show the status of the different Ethernet interfaces by showing a flashing or solid light in orange or green. The image below shows these LED status indicators.

The following table shows the meaning of the Ethernet port LED colors.

LED Status

Solid Amber

Blinking Amber

Solid Green

Blinking Green

Light off

Indicated Link Status

1000 Mbps link established

Data transmission over 1000 Mbps link

10/100 Mbps link established

Data transmission over 10/100 Mbps link

No data link exists

10

1.3. The LED Indicators Chapter 1. Product Overview

11

Chapter 2. Initial Setup

• Unpacking, page 12

• Web Browser Connection, page 14

• Browser Connection Troubleshooting, page 19

• Console Port Connection, page 20

2.1. Unpacking

Package Contents

Carefully open the product packaging and inside you will find the following:

• The DFL-160 hardware unit.

• The DFL-160 Quick Installation Guide.

• A plug-in 12 Volt/1.2 Amp power supply with connecting cable.

• One Category 5e Ethernet cable.

• One RS232 cable for connecting a console to the DFL-160 serial COM port.

• A CD ROM containing essential product documents and useful software utilities.

Location of the Hardware

The DFL-160 unit is designed for table mounting only. The product can be mounted on any appropriate stable, flat, level surface that can safely support the weight of the unit and its attached cables.

12

2.1. Unpacking Chapter 2. Initial Setup

Environmental and Operating Parameters

The following table lists the key environmental and operating parameters for the DFL-160 hardware.

Parameter

AC Input

Operating Temperature Range

Storage Temperature Range

Operational Humidity Range

Storage Humidity Range

Power Consumption

DFL-160 Value

100-240 VAC, 50/60 Hz, External supply

0°C to +50°C

-40°C to +70°C

10% to 90% RH

5% to 90% RH

Under 20 Watts

Heat Flow Considerations

The DFL-160 is a low power device that generates a modest amount of heat output during operation.

The following precautions should be taken to allow this heat to dissipate:

• Do not install the DFL-160 in an environment where the operating ambient temperature might come close to or go beyond the recommended operating temperature range (as stated in the table above, the operating range is from 0°C to +50°C).

• Make sure that airflow around the DFL-160 unit is not restricted.

• Do not place anything on top of the unit, including any other electronic devices.

Power Supply Precautions

The following is recommended in regard to the power supply:

• Make sure that any power source circuits are properly grounded, and use the power cord supplied with the DFL-160 to connect it to the power source.

• Ensure that the DFL-160 does not overload the power circuits, wiring and over-current protection. To determine the possibility of overloading the supply circuits, add together the ampere ratings of all devices installed on the same circuit as the DFL-160 and compare the total with the rating limit for the circuit. The maximum ampere ratings are usually printed on the devices near AC power connectors.

• If your installation requires any power cords other than the one supplied with the product, be sure to use a power cord displaying the logo of the safety agency that defines the regulations for power cords in your country. The logo is your assurance that the power cord can be used safely with the DFL-160.

• The purchase and use of a separate surge protection unit from a third party should be considered to protect against damage by electrical power surges. This is particularly recommended in geographic regions where lightning strikes might occur.

Software Installation

A copy of the NetDefendOS network operating system is already pre-installed on the DFL-160 unit.

When the unit is powered up, NetDefendOS will automatically start for the first time with the

factory default settings. Initial startup is described in Section 2.2, “Web Browser Connection”.

13

2.2. Web Browser Connection Chapter 2. Initial Setup

2.2. Web Browser Connection

This section describes the steps for accessing a DFL-160 for the first time through a web browser.

The user interface accessed in this way is known as the NetDefendOS Web Interface (or WebUI).

1. Connect the Cables

The DFL-160 and a management workstation (typically a Windows PC) running a web browser should be physically connected together so they are on the same Ethernet network. A connection can be made directly using a crossover Ethernet cable, or by connecting the management workstation and the firewall to the same switch.

One of the four LAN interfaces should be attached to the same Ethernet network as the management workstation (or a network accessible from the workstation via one or more routers). Typically the connection is made via a switch or hub in the network but can, instead, be done directly using a regular straight-through Ethernet cable.

For Internet connection, the WAN interface should be connected to your ISP.

2. Setting the Workstation Interface IP Address

Traffic will be able to flow between the designated workstation interface and the DFL-160 LAN interface because they are on the same IP network. If DHCP is enabled on the workstation (and this is usually the default) or DHCP is enabled on the device, such as a router, via which the connection is made then the workstation should not need further configuration. IP addresses are assigned automatically with DHCP and the reader can skip to step 3.

If, for some reason, DHCP is not available then manual configuration of the workstation interface IP address will be needed. There are a series of appendices at the back of this manual that describe how to do this, depending on the computer and operating system used:

Appendix B, Windows XP IP Setup

Appendix C, Windows Vista IP Setup

Appendix D, Windows 7 IP Setup

Appendix E, Apple Mac IP Setup

3. Connect the Power

NetDefendOS starts up as soon as the DFL-160 unit is connected to the power supply (there is no

On/Off switch). Power is connected by plugging the cable from the power supply into the unit's power plug socket and then plugging the supply into a normal wall socket.

Once power is connected, NetDefendOS will take a couple of seconds to boot up. When this process is complete, the Status front panel light is lit and the DFL-160 is ready to be managed through a web browser.

14

2.2. Web Browser Connection Chapter 2. Initial Setup

4. Connect to the DFL-160 by Surfing to the IP address 192.168.10.1

Using a web browser (Internet Explorer or Firefox is recommended), surf to the IP address

192.168.10.1. This can be done using either HTTP or the more secure HTTPS protocol in the URL.

These two alternatives are discussed next.

A. Using HTTP

Enter the address http://192.168.10.1 into the browser navigation window as shown below. This will send an initial browser request to the DFL-160.

If the browser does not respond, check that the web browser does not have a proxy server

configured. For possible problems with the network connection, consult Section 2.3, “Browser

Connection Troubleshooting”.

B. Using HTTPS

To connect with the added security of HTTPS instead, enter https://192.168.10.1 in the browser.

When responding to an https:// request, NetDefendOS sends a self-signed certificate which will not be initially recognized so it will be necessary to tell the browser to accept the certificate for this and future sessions. Different browsers handle this in slightly different ways. For example, in Microsoft

Internet Explorer the following error message will be displayed in the browser window.

To continue, tell the Windows IE browser to accept the certificate by clicking the following link which appears near the bottom of the browser window.

In FireFox, this procedure is called "Add a security exception" and is a similar process of telling the browser to accept the unsigned certificate.

5. Logging on to the DFL-160

NetDefendOS will next respond like a web server with the initial login dialog page as shown below.

15

2.2. Web Browser Connection Chapter 2. Initial Setup

The available management web interface language options are selectable at the bottom of this dialog. This defaults to the language set for the browser if NetDefendOS supports that language.

Now login with the username admin and the password admin. The full web interface will now appear as shown below and you are ready to begin setting up the initial DFL-160 configuration.

This initial web interface page after login always displays the System option in the Status menu, as shown above. As a first step, it is recommended to click on the different menus shown in the top menu bar to a get a feel where different options are located. This menu structure is duplicated in the layout of later chapters that describe the options.

During initial setup, the System menu is the only set of options that should need to be changed.

Logging Out

When you have finished working with the management web interface, it is recommended to always logout to prevent other with access to the workstation getting unauthorized access to the DFL-160.

Logout by clicking on the Logout link at the top right of the management web interface.

Automatic Logout

Logout will occur automatically after a period of 15 minutes management inactivity and this length

16

2.2. Web Browser Connection Chapter 2. Initial Setup of time is fixed. After automatic logout occurs, the next interaction with the management web interface will take the browser to the login page.

Connecting to the Internet

In the typical DFL-160 installation the next step is to connect to the public Internet. To do this the

WAN interface should be connected to your Internet Service Provider (ISP). This is usually done through other equipment such as a broadband modem.

The WAN interface is, by default, configured to use DHCP to automatically fetch the required external IP addresses from the ISP. If required, detailed WAN interface configuration is done by

going to the System > Internet Connection menu (these options are described in Section 3.2,

“Internet Connection”).

Once a connection to the Internet is established, web surfing from clients on networks attached to the LAN interfaces is then possible. This is not possible with the DMZ interface since connections on that interface are blocked until they are explicitly allowed.

Setting Firewall Security Policies

A key feature of the DFL-160 product is the ability to act as a firewall and impose security policies on what kinds of traffic can flow between interfaces and in what direction.

As a next step, it is recommended to go to the Firewall > Outbound LAN Traffic menu and decide what kinds of traffic can be initiated by internal hosts and users (these options are described in

Section 4.1, “Outbound LAN Traffic Options”).

By default, everything is allowed for outbound connections on the LAN interface but it is recommended to restrict this to the minimum necessary. For instance, allowing the HTTP and

HTTPS services may be sufficient for web surfing.

A corresponding set of firewall options exists for the DMZ interface (see Section 4.2, “Outbound

DMZ Traffic Options”) but on initial setup, no outbound traffic is allowed on this interface so

services must be explicitly allowed.

The Meaning of "Outbound"

Keep in mind that the term outbound refers to traffic that is initiated from "inside", behind the

DFL-160 (in other words, from hosts and clients connected to the LAN or DMZ interface). All web surfing traffic, no matter if it is a server request from a client or the reply to that request, is considered to be outbound (this point will be repeated later in the manual). Conversely, inbound traffic is exchanges that are initiated from the "outside", on the public Internet.

Using the DMZ for Management

By default, the DMZ interface is allocated the IP address 192.168.11.1 on the 192.168.11.0/24 network. However, the DMZ interface can't be used for initial connection with a browser because it is not enabled as a management interface.

Management access through the DMZ interface can be enabled after initial management connection through the LAN interface.

Going Further

At this point the DFL-160 product should be operational and acting as a secure barrier between internal networks and the public Internet. The next step for the administrator is to further explore the

17

2.2. Web Browser Connection Chapter 2. Initial Setup features of the product and bring into use those which meet the needs of a particular installation.

It is recommended that administrators familiarize themselves with the web interface by clicking on the main menu options and exploring the individual options available with each. The later part of this manual has a structure which reflects the naming and order of these menu options.

In most instances the web interface provides a helpful text description on the right hand side for how features are used as well as more detailed descriptions for individual fields and options.

18

2.3. Browser Connection

Troubleshooting

Chapter 2. Initial Setup

2.3. Browser Connection Troubleshooting

If the management interface does not respond after the DFL-160 has powered up and NetDefendOS has started, there are a number of simple steps to trouble shoot basic connection problems:

1. Check that the LAN interface is being used

The most obvious problem is that the wrong DFL-160 interface has been used for the initial connection. Only the LAN interface is enabled for management access for the initial connection from a browser after NetDefendOS starts for the first time.

2. Is the LAN interface properly connected?

Check the link indicator lights on the management interface. If they are dark then there may be a cable problem.

3. Check the cable type connected to the management interface.

If the management interface is connected directly to the management workstation or another router or host? In this case, an Ethernet "cross-over" cable may be needed for the connection, depending on the capabilities of the interface.

4. Using the ifstat CLI command

To investigate a connection problem further, connect a console to the RS232 port on the DFL-160

after NetDefendOS starts. The details of making this connection are described below in Section 2.4,

“Console Port Connection”.

When you press the enter key, NetDefendOS should respond with the standard CLI prompt:

DFL-160:/>

Now enter the following command a number of times:

DFL-160:/> ifstat lan

This will display a number of counters for the LAN interface.

If the Input counters in the hardware section of the output are not increasing then the error is likely to be in the cabling. However, it may simply be that the packets are not getting to the DFL-160 in the first place. This can be confirmed with a packet sniffer if it is available.

If the Input counters are increasing, the LAN interface may not be attached to the correct physical network. There may also be a problem with the routing information in any connected hosts or routers.

5. Using the arpsnoop CLI command

A final diagnostic test is to try using the console command:

DFL-160:/> arpsnoop -all

This will show the ARP packets being received on the different interfaces and confirm that the correct cables are connected to the correct interfaces.

19

2.4. Console Port Connection Chapter 2. Initial Setup

2.4. Console Port Connection

Initial setup of the DFL-160 can be done using only the web interface but DFL-160 also provides a

Command Line Interface (CLI) which can be used for certain administrative tasks. This is accessed through a console connected directly to the unit's RS232 COM port, which is shown below. All CLI

commands are listed in Appendix A, CLI Reference.

The console also provides the ability to interact directly with the firmware that controls the

operation of the DFL-160 (see Chapter 8, The Console Boot Menu).

Console Setup

When setting up a console connected directly to the DFL-160's RS232 port, the console can be a traditional "dumb" console device but is more typically a PC or other computer running console emulation software (such as the HyperTerminal software included with some Windows versions).

An included RS232 null modem cable is used to connect the console to the console port. This port is marked COM, as shown in the image above.

The connected console must have the following communication settings:

• 9600 bps.

• No parity.

• 8 bits.

• 1 stop bit.

• No flow control.

Entering the Boot Menu

The Boot Menu is another feature that can only be accessed through the console. It is a direct management interface to the DFL-160's firmware loader software which underlies the

NetDefendOS software. It allows the administrator to reset the DFL-160 unit as well as set a console password.

The boot menu is entered by pressing any console key between power up and NetDefendOS starting. The console will display the message Press any key to abort and load boot menu during

this interval. This feature is described further in Chapter 8, The Console Boot Menu.

Console Output Truncation

The only limitation with issuing CLI commands through the serial console is that there is a finite

20

2.4. Console Port Connection Chapter 2. Initial Setup buffer allocated for output. This buffer limit means that a single large volume of console output may be truncated. This happens rarely and only with certain commands.

The DFL-160 USB Port

Next to the RS232 port is a USB port. This port is not used with the current version of

NetDefendOS. The port is intended for use with features planned for future NetDefendOS versions and is provided so that no hardware upgrade will be required in order to make use of those features after a software upgrade.

21

2.4. Console Port Connection Chapter 2. Initial Setup

22

Chapter 3. The System Menu

• Administration, page 23

• Internet Connection, page 26

• LAN Settings, page 28

• DMZ Settings, page 31

• Logging, page 34

• Date and Time, page 36

• Dynamic DNS Settings, page 38

The System menu options allow the administrator to control and manage essential operating settings of the DFL-160.

The sections that follow describe the options in this menu in the order they appear.

3.1. Administration

The options on this page deal with administrator access to the DFL-160 through one of the Ethernet interfaces. The page is divided into 3 sections:

A. Management Settings

B. Administrator Settings

C. Management Ports

A. Management Settings

The principal purpose of these settings are to determine with which protocol and on what interfaces the administrator can manager the DFL-160 through a web browser using the web interface.

23

3.1. Administration Chapter 3. The System Menu

The recommendation is to restrict the interfaces which allow management access and to always use the HTTPS protocol to ensure that management communication is encrypted.

The only advantage in using HTTP for management access is to avoid the issue with certificates.

NetDefendOS sends an unsigned certificate to the browser when using HTTPS and this means there is an extra, small step involved to tell the browser to accept the certificate (the interaction to do this is slightly different depending on the browser).

Enabling Ping Requests

Another option in the management settings is to determine which interfaces will receive and respond to an ICMP ping request. Ping requests are a simple means to establish if a host is "alive" and consist of a simple sequence of an "are you there" ping request to an IP address followed by a "yes I am" response by the host.

It is often best to disallow responses to ping requests received from the public internet on the WAN interface which is why ping responses on WAN are disabled by default. Potential intruders often use pings to scan the internet for potential target IP addresses and it is therefore not recommended to expose the DFL-160s public IP address to this probing.

For troubleshooting purposes, however, it may be desirable to temporarily enable ping responses on the WAN interface.

B. Administrator Settings

By default, the administrator username admin with a password admin exists when a brand new

DFL-160 is started for the first time. It is recommended, at a minimum, to change the password

of this user as one of the first steps during initial setup.

If desired, the username admin can also be changed and this will also boost security for administrator access.

A second user with username audit is also defined but must be explicitly enabled by ticking the checkbox on the web interface page. The audit user has read-only access to the NetDefendOS. They can see the entire NetDefendOS web interface but cannot make any configuration changes. The default password for the audit user is audit and this also, as a minimum, should be changed as soon as possible if the audit user is enabled. If desired, the audit username can also be changed from audit to something else.

C. Management Ports

The default port numbers for HTTP and HTTPS management access can be changed. This must be done if normal inbound traffic is enabled for the same protocol that is used for management access.

24

3.1. Administration Chapter 3. The System Menu

For instance, if HTTPS is used for management access and HTTPS inbound traffic is enabled (this

is done in Section 4.3, “Inbound Traffic Options”) then both will use the port number 443 and there

will be a problem. The port number for management traffic and normal HTTPS traffic must be unique.

The solution is to change the HTTPS port that is used for administrator access. This could, for example, be changed to port 400. Then the administrator would surf to https://192.168.10.1:400/ in order to access the web management interface through a browser.

Important: Changing the port number may be necessary

Changing the port number must be done if there is a clash of port numbers after enabling inbound traffic.

Management Through the Serial Console

Some administration tasks can be carried out through a console device attached directly to the serial

port of the DFL-160 which is described in Section 2.4, “Console Port Connection”.

There are two administration options when using the console port:

• Using the boot menu

The boot menu can be accessed between power up and completion of NetDefendOS startup. It is used for performing a limited set of low level administration tasks and is described fully in

Chapter 8, The Console Boot Menu.

• Using CLI Commands

Once NetDefendOS has booted up and started, a set of CLI commands can be entered through

the console. These commands are listed and described in Appendix A, CLI Reference.

25

3.2. Internet Connection Chapter 3. The System Menu

3.2. Internet Connection

The options on this page allow the administrator to specify the communications protocol with which the WAN interface is connected to the public Internet via an Internet Service Provider (ISP).

Your ISP will provide details of their connection. The first task is to make a physical Ethernet connection between the DFL-160's WAN interface and the ISP. This might be typically done through some form of broadband modem and the relevant third party modem documentation should be consulted in order to have this link operational.

The possible connection protocol options are:

A. DHCP Setup

B. Static Connection

C. PPPoE Connection

D. PPTP Connection

A. DHCP Setup

The DHCP protocol is a means for a network device, such as the DFL-160, to retrieve all required

IP addresses automatically from a DHCP server. In this case, the ISP provides the IP addresses from its DHCP server, provided that the Ethernet connection to the ISP is functioning.

All required IP addresses will automatically be retrieved and no further configuration is normally required for this option. The only option is the MTU value that will be used for this connection but this normally doesn't need to be changed.

The MTU value appears as an option in all the different types of Internet connections described below. The MTU value affects the level of packet fragmentation in connections to the ISP. A lower

MTU value increases fragmentation with a resulting increase in processing overhead to re-assemble the packets. The default MTU value is 1500.

B. Static Connection

With this option the IP addresses required for the internet connection are entered manually.

Your ISP should provide all the information needed for this option. All fields need to be entered except for the Secondary DNS server field.

C. PPPoE Connection

With this option, the username and password supplied by your ISP for PPPoE connection should be entered. The Service field should be left blank unless the ISP supplies a value for it.

If the Dial-on-Demand option is enabled, the PPPoE connection will not be set up until traffic is actually sent.

26

3.2. Internet Connection Chapter 3. The System Menu

The Idle Timeout is the length of time with inactivity that passes before PPPoE disconnection occurs if the Dial-on-Demand is selected.

DNS servers are set automatically after connection with PPPoE.

D. PPTP Connection

With this option, the username and password supplied by your ISP for PPTP connection should be entered. If DHCP is to be used with the PPTP connection to the ISP then this should be selected, otherwise Static should be selected and the static IP addresses supplied by the ISP should be entered.

If the Dial-on-Demand option is enabled, the PPTP connection will not be set up until traffic is actually sent. This works in the same way as described above with a PPPoE connection.

The Idle Timeout is the length of time with inactivity that passes before PPTP disconnection occurs if the Dial-on-Demand is selected.

DNS servers are set automatically after connection with PPTP.

27

3.3. LAN Settings Chapter 3. The System Menu

3.3. LAN Settings

The settings in this part of the management web interface determine how the DFL-160's LAN interface operates. These settings are very similar to the corresponding page for the DMZ interface

(see Section 3.4, “DMZ Settings”).

The Logical LAN Interface

There are four physical interfaces in the DFL-160 hardware which are labelled: LAN1...LAN4. As

explained in Section 1.2, “Ethernet Interfaces”, these are connected together by a switch fabric in

the DFL-160 so they act as a single logical interface called LAN. This manual, therefore, refers only to the LAN logical interface and the rules applied to LAN apply to all four physical interfaces but not the traffic flowing between them.

LAN Interface Options

There are three sections on the web interface page relating to the LAN:

A. LAN Interface Settings

B. Mode

C. DHCP Server Settings

A. LAN Interface Settings

The IP address of the LAN interface is allocated here for NAT and Routing mode. Transparent mode does not require an IP address to be allocated, instead, the LAN interface automatically gets the same IP address as the WAN interface.

The presentation of the LAN interface options in the web interface is shown below:

The setting Enable DNS Relay relays DNS queries sent to the LAN interface IP. This should be enabled if, for example, web browsers running on LAN clients are going to be resolved using external DNS servers on the internet. Any other situation where URL resolution is required will also need to find a DNS server. These DNS servers should be manually configured, if this hasn't already been done automatically through DHCP when connecting to an ISP.

If the Enable DNS Relay option is not enabled then clients will communicate directly with the DNS servers that are configured for public Internet access and the DNS server will send responses directly back to the client through the firewall. Relaying will not take place.

B. Mode

There are three modes that are available with the LAN interface. The presentation of the mode options in the web interface is shown below.

28

3.3. LAN Settings Chapter 3. The System Menu

• NAT Mode

This mode enables Dynamic Network Address Translation (NAT) use between the LAN and

WAN interfaces. This means that the individual IP addresses of hosts on the LAN interface will be hidden from the public internet. All traffic coming from the public Internet to LAN hosts will be directed to the public IP address of the WAN interface and NetDefendOS will perform the necessary IP address translation.

Enabling NAT is a recommended way to shield the users and hosts on the LAN network from outside attack. It also means that a DFL-160 requires just a single public IP address to be allocated by the ISP.

• Router Mode

This is the mode used if NAT is not used. It means that each the individual hosts and users on the LAN network need their own public IP addresses if they are to communicate with the public

Internet.

Although not recommended when WAN is connected to the public internet, there may be situations where NAT cannot be applied and the individual LAN network addresses need to be exposed through the WAN interface.

In some scenarios, the WAN interface may be connected to another internal network and in this case NAT usage may also not be appropriate because there is no need to shield LAN addresses and there are lots of internal IP addresses that can be used.

• Transparent Mode

This mode is used if the DFL-160 is to be placed between the LAN and WAN interface in a transparent way. This means that no IP addresses need to be changed in either network, but the traffic flowing between the interfaces is still subject to the rules and controls imposed by

NetDefendOS.

In transparent mode, NetDefendOS works out from the traffic itself which networks can be found on the interfaces and creates the necessary entries in its routing table.

Note: The LAN and WAN IP addresses are the same

In transparent mode, the LAN interface takes on the same IP address as the WAN interface.

If both the LAN and DMZ interfaces have transparent mode enabled, traffic will flow transparently between all 3 of the DFL-160 interfaces.

In transparent mode, the additional option is provided that allows the relaying of DHCP requests.

C. DHCP Server Settings

29

3.3. LAN Settings Chapter 3. The System Menu

With this option enabled, a range of IP addresses can be allocated which can then be allocated out to hosts on the network that need them. The presentation of the DHCP server options in the web interface is shown below.

In most scenarios, the LAN network will be an "internal" network that does not require public IP addresses. However, if a range of public IP addresses are allocated by the ISP these could also be allocated using this feature.

NetDefendOS also allows a DHCP Reservations list to be created. These bind a certain IP address with a particular MAC address. When a request for a DHCP lease is received on the interface,

NetDefendOS checks the MAC address of the requesting DHCP client against the list. If a match is found, the IP address that has been associated with the MAC address is the one that is handed out.

The screenshot below shows how this option appears in the web interface. Combinations of IP address and MAC address can be added to the list. The red icon on the right of each entry can be clicked to delete the entry.

This feature allows the same IP address to be always allocated to a particular DHCP client.

Transparent Mode and the Interface IP Address

There are some considerations that should be noted with the LAN IP address when transparent mode is enabled:

• In transparent mode, the LAN interface will take on the same IP address as the WAN interface.

• If DHCP is enabled on the WAN interface and the IP address on WAN cannot be refreshed within its DHCP lease time then it will receive the IP address 0.0.0.0 and the LAN interface will also receive this IP address.

This will mean that it will not be possible for the administrator to connect through the LAN interface with a browser to perform management tasks while the LAN interface has the 0.0.0.0

IP address.

These IP address considerations are also true if transparent mode is enabled on the DMZ interface.

30

3.4. DMZ Settings Chapter 3. The System Menu

3.4. DMZ Settings

The settings in this part of the management web interface determine how the DFL-160's DMZ interface operates. These settings are very similar to the corresponding page for the LAN interface

(see Section 3.3, “LAN Settings”).

DMZ Interface Options

There are three sections on this page of the web interface:

A. DMZ Interface Settings

B. Mode

C. DHCP Server Settings

A. DMZ Interface Settings

The IP address of the DMZ interface is allocated here for NAT and Routing mode. Transparent mode does not require an IP address to be allocated. Instead, the LAN interface automatically gets the same IP address as the WAN interface.

The setting Enable DNS Relay relays DNS queries sent to the DMZinterface IP. This should be enabled if, for example, web browsers running on DMZ clients are going to be resolved using external DNS servers on the internet. Any other situation where URL resolution is required will also need to find a DNS server. These DNS servers should be manually configured, if this hasn't already been done automatically through DHCP when connecting to an ISP.

If the Enable DNS Relay option is not enabled then clients will communicate directly with the DNS servers that are configured for public Internet access and the DNS server will send responses directly back to the client through the firewall. Relaying will not take place.

B. Mode

There are three modes that are available with the LAN interface. The presentation of the mode options in the web interface is shown below.

• NAT Mode

This mode enables Dynamic Network Address Translation (NAT) use between the DMZ and

WAN interfaces. This means that the individual IP addresses of hosts on the DMZ interface will be hidden from the public internet. All traffic coming from the public Internet to DMZ hosts will be directed to the public IP address of the WAN interface and NetDefendOS will perform the necessary IP address translation.

31

3.4. DMZ Settings Chapter 3. The System Menu

Enabling NAT is a recommended way to shield the users and hosts on the DMZ network from outside users. It also means that a DFL-160 requires just a single public IP address to be allocated by the ISP.

• Router Mode

This is the mode used if NAT is not used. It means that each the individual hosts and users on the DMZ network need their own public IP addresses if they are to communicate with the public

Internet.

Although not recommended when WAN is connected to the public internet, there may be situations where NAT cannot be applied and the individual DMZ network addresses need to be exposed through the WAN interface.

In some scenarios, the WAN interface may be connected to another internal network and in this case NAT usage may also not be appropriate because there is no need to shield DMZ addresses and there are lots of internal IP addresses that can be used.

• Transparent Mode

This mode is used if the DFL-160 is to be placed between the DMZ and WAN interface in a transparent way. This means that no IP addresses need to be changed in either network, but the traffic flowing between the interfaces is still subject to the rules and controls imposed by

NetDefendOS.

In transparent mode, NetDefendOS works out from the traffic itself which networks can be found on the interfaces and creates the necessary entries in its routing table.

If both the LAN and DMZ interfaces have transparent mode enabled, traffic will flow transparently between all 3 of the DFL-160 interfaces.

In transparent mode, the additional option is provided that allows the relaying of DHCP requests.

C. DHCP Server Settings

With this option enabled, a range of IP addresses can be allocated which can then be allocated out to hosts on the network as they are needed. The presentation of the server options in the web interface is shown below.

In most scenarios, the DMZ network will be an "internal" network that does not require public IP addresses. However, if a range of public IP addresses are allocated by the ISP these could also be allocated using this feature.

NetDefendOS also allows a DHCP Reservations list to be created. These bind a certain IP address with a particular MAC address. When a request for a DHCP lease is received on the interface,

NetDefendOS checks the MAC address of the requesting DHCP client against the list. If a match is found, the IP address that has been associated with the MAC address is the one that is handed out.

The screenshot below shows how this option appears in the web interface. Combinations of IP address and MAC address can be added to the list. The red icon on the right of each entry can be

32

3.4. DMZ Settings clicked to delete the entry.

Chapter 3. The System Menu

This feature allows the same IP address to be always allocated to a particular DHCP client.

Transparent Mode and the Interface IP Address

There are some considerations that should be noted with the DMZ IP address when transparent mode is enabled:

• In transparent mode, the DMZ interface will take on the same IP address as the WAN interface.

• If DHCP is enabled on the WAN interface and the IP address on WAN cannot be refreshed within its DHCP lease time then it will receive the IP address 0.0.0.0 and the DMZ interface will also receive this IP address.

As a result, the administrator cannot connect through the DMZ interface to perform management tasks with a browser while the DMZ has the 0.0.0.0 IP address.

These IP address considerations are also true if transparent mode is enabled on the LAN interface.

33

3.5. Logging Chapter 3. The System Menu

3.5. Logging

NetDefendOS Log Messages

During NetDefendOS operation, log messages are routinely generated to indicate when certain events occur. These messages form an important audit trail that show what has occurred during system operation and can dealt with in various ways.

There are dozens of events for which event messages can be generated. The events range from high-level user events down to low-level system events. The conn_open event, for instance, is a typical high-level event that generates an event message whenever a new connection, such as a

TCP/IP link is established. An example of a low-level event would be the startup_normal event, which generates a mandatory event message as soon as the system starts up.

All event messages have a common format, with attributes that include category, severity and recommended actions. These attributes enable easy filtering and analysis of messages, either within

NetDefendOS or on an external SysLog server.

A list of all event messages can be found in the DFL-160 Log Reference Guide. That guide also describes the design of event messages, the meaning of severity levels and the various attributes available. The severity of each event is predefined and it can be, in order of severity, one of:

1 - Emergency (the most severe)

2 - Alert

3 - Critical

4 - Error

5 - Warning

6 - Notice

7 - Info

8 - Debug

By default all messages of severity Info and above are sent. The Debug category of messages is designed for troubleshooting only and is only used when troubleshooting a problem.

Logging Options

The Logging page of the web interface is divided into three option sections:

A. Syslog Settings

B. Audit Logging

C. Email Alerts

A. Syslog Settings

Syslog is a log message standard that is widely used for sending messages to a separate Syslog

Server. NetDefendOS supports this standard and up to two syslog servers can be configured to receive messages from NetDefendOS by specifying their IP addresses.

The Syslog Facility is a way of marking syslog messages with a specific source identifier. For instance, one DFL-160 might be given the syslog facility local0 while a second might be local1.

When messages are sent to the same syslog server, the messages from one unit can be distinguished from the messages of the other unit.

B. Audit Logging

When data connections are opened and closed, these events are not normally part of the log

34

3.5. Logging Chapter 3. The System Menu messages generated by NetDefendOS. By enabling this option, these log messages will be included.

C. Email Alerts

NetDefendOS can be configured to send emails to up to three email addresses when log messages are generated that are equal to or exceed a defined threshold. This threshold is referred to as the

sensitivity.

The sensitivity settings translate into the following values:

• Very High

Min Repeat Delay: 600 seconds

Hold Time: 120

Log Threshold: 0

• High

Min Repeat Delay: 600 seconds

Hold Time: 120

Log Threshold: 2

• Medium

Min Repeat Delay: 600 seconds

Hold Time: 120

Log Threshold: 3

• Low

Min Repeat Delay: 1800 seconds

Hold Time: 120

Log Threshold: 5

• Very Low

Min Repeat Delay: 3600 seconds

Hold Time: 120

Log Threshold: 10

The Log Threshold indicates the threshold severity for the log message generated. Every log message has a severity value that ranges from zero (the most severe) to 10 (the least severe).

An SMTP server should be specified that will be used to send the email messages. The SMTP server

MUST be specified using an IP address and cannot be specified using a domain name such as

dns:smtp.domain.com.

35

3.6. Date and Time Chapter 3. The System Menu

3.6. Date and Time

A variety of NetDefendOS functions depend on the system date and time being set correctly for the

DFL-160. It is therefore recommended to set the correct time and date as soon as possible. There are three time and date options:

A. General

B. Time zone and daylight saving time settings

C. Automatic time synchronization

A. General

The Set Date and Time button allows the current management workstation's computer's date and time to be used as the DFL-160's date and time.

B. Time zone and daylight saving time settings

The applicable time zone and applicable daylight saving time settings can be set in this part of the web page.

C. Automatic time synchronization

A number of publicly available time servers exist on the Internet which any host can query to get the current time and date. These can be used to automatically check and adjust the DFL-160 system clock. NetDefendOS can make use of one of two types of time server:

• D-Link own time servers.

• Public time servers.

The details of D-Link's own time servers are built into NetDefendOS and this option only has to be enabled for the servers to be used. If public time servers are used, the details for server access have to be entered manually and it recommended that more than one is defined for redundancy.

36

3.6. Date and Time Chapter 3. The System Menu

When usage of time servers is enabled, NetDefendOS will poll them on a regular basis and then adjust the DFL-160 system clock with the exact time.

If the time server and the current time differ by more than one hour (60 minutes) then the time server is ignored.

37

3.7. Dynamic DNS Settings Chapter 3. The System Menu

3.7. Dynamic DNS Settings

A DNS feature offered by NetDefendOS is the ability to explicitly inform DNS servers when the external IP address of the DFL-160 has changed. This is sometimes referred to as Dynamic DNS

(DDNS) and is useful where the DFL-160 has an external IP address that can change.

By enabling this option, NetDefendOS acts as a dynamic DNS client and every time it restarts, it will send a message so the dynamic DNS server is informed of the current IP address on the WAN interface. This messaging is also repeated at set intervals during normal operation.

The httpposter CLI Command

The CLI console command httpposter can be used to troubleshoot problems by showing what

NetDefendOS is sending and what a server is returning during dynamic DNS lookup.

All CLI commands are documented in Appendix A, CLI Reference.

Usage in VPN Scenarios

Dynamic DNS can also be useful in VPN scenarios where both ends of the tunnel have dynamic IP addresses. If only one side of the tunnel has a dynamic address then the NetDefendOS VPN keep-alive feature solves this problem.

Note: Queries should not be too frequent

Dynamic DNS services are often sensitive to repeated logon attempt over short periods of time and may blacklist IP addresses that are sending excessive requests. It is therefore not advisable to query these services too often otherwise they may cease to respond.

The D-Link DDNS Server

D-Link offers its own DDNS server which is a free service for D-Link customers. Registration is required and can be done by going to https://www.dlinkddns.com/login. This service is recommended but one of the other pre-defined services could be used instead.

38

3.7. Dynamic DNS Settings Chapter 3. The System Menu

39

Chapter 4. The Firewall Menu

• Outbound LAN Traffic Options, page 41

• Outbound DMZ Traffic Options, page 43

• Inbound Traffic Options, page 45

• VPN Options, page 47

• VPN Users, page 55

• Web Content Filtering, page 56

• Anti-Virus, page 65

• IDP Options, page 68

• Traffic Shaping, page 71

• Schedules, page 74

The options in the Firewall menu allow the administrator to control and manage the features of the

DFL-160 that are specific to a firewall. A firewall, as the name suggests, is a capability that provides a protective barrier against a range of potential threats that can be transported by the public

Internet towards sensitive internal networks.

Using the DFL-160 as a Firewall

The firewalling capabilities of NetDefendOS allow the administrator to impose various security restrictions on the traffic flowing through the interfaces of the DFL-160. In summary, the firewalling options are:

• The types of traffic that are allowed to flow between interfaces can be specified and also in what direction they are allowed to flow.

• Secure VPN connections can be specified for traffic flowing through interfaces.

• Policies can be set for the URLs to which web surfing is allowed.

40

4.1. Outbound LAN Traffic Options Chapter 4. The Firewall Menu

• Anti-Virus scanning can be enabled for file downloads.

• Intrusion Detection and Prevention (IDP) can be enabled to search streams of traffic for threats against internal resources.

• Time schedules can be set up which can be then used to specify the times when security policies are applied.

• Lists of users that are allowed to access protected resources can be specified.

The sections that follow describe the options in this menu in the order they appear.

4.1. Outbound LAN Traffic Options

The Meaning of Outbound

These options determine what types of traffic can pass between the LAN network on the protected

"inside" of the DFL-160 and the WAN interface when the connection is initiated by a client or host on the LAN network.

For instance, the retrieval of data from a web server on the public Internet is still considered part of outbound traffic if the retrieval request is initiated by a web surfer sitting on the LAN network.

Allowing Services

A Service refers to a higher level protocol such as the HTTP protocol used for web surfing and is a convenient way of identifying different types of data traffic. The presentation of the first few choices in the web interface is shown below.

By default, all services are allowed, that is to say, no connections initiated from the LAN network are blocked.

It is recommended, however, to try and impose restrictions that match the expected needs of the clients and hosts on the LAN network. For instance, selecting only the HTTP and HTTPS protocols allows only web surfing to take place from the LAN network and other protocols such as FTP will not be allowed.

Connections from the LAN to the DMZ

Connections initiated from the LAN network to hosts on the DMZ network are always allowed.

However, the opposite is never true: connections initiated by hosts on the DMZ network are never allowed to the LAN network.

This arrangement prevents a host that becomes infected on the DMZ spreading the problem to the

LAN network.

Specifying Custom Traffic

41

4.1. Outbound LAN Traffic Options Chapter 4. The Firewall Menu

By clicking the Custom Traffic tab and then selecting Add > Custom Traffic it is possible to allow through a protocol not specified in the pre-defined list.

For a custom protocol it is necessary to specify if the protocol uses TCP or UDP connections or both and to specify the port number the protocol will try and connect to at the other end of the connection.

Specifying a Schedule

A named Schedule can be defined through the Firewall > Schedules menu option and this can then be used with any individual protocol allowed for outgoing traffic from the LAN interface.

Schedules specify a period of time when a particular selection is valid. For example, the administrator might decide to not allow web surfing during working hours. The HTTP and HTTPS protocols could then have the appropriate schedule associated with them to achieve this.

More details can be found in Section 4.10, “Schedules”.

42

4.2. Outbound DMZ Traffic Options Chapter 4. The Firewall Menu

4.2. Outbound DMZ Traffic Options

The Meaning of Outbound

These options determine what types of traffic can pass between the DMZ network and the WAN interface when the connection is initiated by a client or host on the DMZ network.

For instance, the retrieval of data from a web server on the public Internet is still considered part of outbound traffic if the retrieval request is initiated by a web surfer sitting on the DMZ network.

The options on the page of the web interface follow the same pattern described for the LAN

interface described in Section 4.1, “Outbound LAN Traffic Options” although there are some

differences.

Allowing Services

A Service refers to a higher level protocol such as the HTTP protocol used for web surfing and is a convenient way of identifying different types of data traffic. The presentation of the first few choices in the web interface is shown below.

By default, all services are allowed, that is to say, no connections initiated from the DMZ network are blocked.

It is recommended, however, to try and impose restrictions that match the expected needs of the clients and hosts on the DMZ network.

Connections from the DMZ to the LAN

Connections initiated from the DMZ network to hosts on the LAN network are never allowed.

However, the opposite is always true: connections initiated by hosts on the LAN network are always allowed to the DMZ network.

This arrangement prevents a host that becomes infected on the DMZ spreading the problem to the

LAN network. This implements one of the prime purposes of the DMZ which is to be a network where hosts which receive connections from the public Internet can be placed.

Specifying Custom Traffic

By clicking the Custom Traffic tab and then selecting Add > Custom Traffic, it is possible to allow through a protocol not specified in the pre-defined list.

For a custom protocol it is necessary to specify if the protocol uses TCP or UDP connections or both and to specify the port number that the protocol will try and connect to at the other end of the connection. The presentation of the new custom rule options in the web interface is shown below.

43

4.2. Outbound DMZ Traffic Options Chapter 4. The Firewall Menu

Specifying a Schedule

A named Schedule can be defined through the Firewall > Schedules menu option and this can then be used with any individual protocol allowed for outgoing traffic from the LAN interface.

Schedules specify a period of time when a particular selection is valid. For example, the administrator might decide to not allow web surfing during working hours. The HTTP and HTTPS protocols could then have the appropriate schedule associated with them to achieve this.

More details can be found in Section 4.10, “Schedules”.

44

4.3. Inbound Traffic Options Chapter 4. The Firewall Menu

4.3. Inbound Traffic Options

This set of NetDefendOS options deals using firewalling to protect against inbound traffic. The term

inbound refers to connections that are initiated from the public Internet on the WAN interface.

These connections are typically made to access some resource that sits behind the DFL-160, such as an HTTP server that is sitting on the DMZ network. By default, NO SUCH CONNECTIONS

ARE ALLOWED and the administrator must explicitly allow individual protocols by ticking one or more of the checkboxes on this page of the web interface.

This page of the web interface is divided into 3 parts:

A. Inbound Traffic

B. Inbound Multicast

C. Custom Traffic

A. Inbound Traffic

A pre-defined list is displayed on this page of all the most common protocols. Ticking the checkbox against a protocol name means that inbound traffic of just that protocol type will be allowed through. The presentation of the first few checkboxes in the web interface is shown below.

The IP address for each service must be entered. Default IP addresses are already entered but these probably need to be changed. The IP address entered would be a private IP address of the internal host if NAT is being used or a public IP address if it is not.

If there are two IP addresses for a particular service (for instance 2 web servers) then the inbound traffic to one could be allowed by ticking the box here and the inbound traffic to the other could be allowed by creating a Custom Traffic rule as described below. If NAT is being used then the port numbers for each server must be different (otherwise NAT cannot function).

Important: Changing the management access port number

Note that if HTTP or HTTPS is allowed then management access that uses the same protocol must have the default port number changed. This is explained more fully in

Section 3.1, “Administration”.

A named Schedule can be defined and then associated with any protocol for inbound traffic.

Schedules specify times when a particular protocol is allowed. Schedules can also be defined for

outbound traffic protocols. More details can be found in Section 4.10, “Schedules”.

B. Inbound Multicast

Multicast is an IP networking technique that allows a single host to broadcast messages to multiple receiving clients. If such inbound traffic is allowed then the allowed IP address range can also be specified.

Multimedia applications sometimes make use of multicast and the administrator should check with the needs of internal users to determine if this option should be enabled. For example, "IP-TV" is an

45

4.3. Inbound Traffic Options application that typically makes use of multicast data transfers.

Chapter 4. The Firewall Menu

C. Custom Traffic

If a particular protocol does not appear in the standard list of protocols then a Custom Traffic "rule" can be created which allows incoming TCP or UDP traffic through on a specified port.

As explained above, the custom rule must have a destination IP address specified which either an internal IP address if NAT is being used of a public IP if NAT is not being used. The port number must be different from any other rule for the same protocol if NAT is being used. The presentation of the new custom inbound rule options in the web interface are shown below.

46

4.4. VPN Options Chapter 4. The Firewall Menu

4.4. VPN Options

VPN Usage

The Internet is increasingly used as a means to connect together computers since it offers efficient and inexpensive communication. The requirement therefore exists for data to traverse the Internet to its intended recipient without another party being able to read or alter it.

VPN allows the setting up of a tunnel between two devices known as tunnel endpoints. All data flowing through the tunnel is then secure. The mechanism that provides tunnel security is

encryption.

There are two common scenarios where VPNs are used:

1.

LAN to LAN connection - Where two internal networks need to be connected together over the internet. In this case, each network is protected by an individual DFL-160 and the VPN tunnel is set up between them.

2.

Client to LAN connection - Where many remote clients need to connect to an internal network over the internet. In this case, the internal network is protected by the DFL-160 to which the client connects and the VPN tunnel is set up between them.

47

4.4.1. IPsec Chapter 4. The Firewall Menu

In summary, a VPN allows the public Internet to be used for setting up secure communications or

tunnels between DFL-160s or between a DFL-160 and other security gateway devices or clients.

VPN with the DFL-160

NetDefendOS supports setting up tunnels using the following types of tunnel protocols for secure communication:

• IPsec tunnels.

• L2TP tunnels.

Using L2TP tunnels the DFL-160 can either be:

1.

An L2TP client - which connects to an L2TP server.

2.

Or an L2TP server - to which L2TP clients connect.

• PPTP tunnels.

Using PPTP tunnels the DFL-160 can either be:

1.

A PPTP client - which connects to a PPTP server.

2.

Or a PPTP server - to which PPTP clients connect.

Pressing the Add button on the initial VPN page of the web interface allows the administrator to define a tunnel based on one of these protocols. The following sections explore these options in greater depth.

In the web interface, the L2TP and PPTP setup options are grouped together into the same pages.

This is because of their similarity. L2TP is a protocol that has superseded PPTP but PPTP is still used in some scenarios.

4.4.1. IPsec

This section explains the IPsec options available when setting up an IPsec based VPN tunnel.

An IPsec Overview

Internet Protocol Security (IPsec) is a standardized set of protocols that provide highly secure data transportation. IPsec is made up of two parts:

• The Internet Key Exchange protocol (IKE)

• IPsec protocols (AH and ESP)

The first part, IKE, is the initial negotiation phase, where two VPN tunnel endpoints agree on which methods will be used to provide transportation and security for the data traffic. IKE manages connections by creating a set of Security Associations (SAs) for each tunnel. An SA is unidirectional so there are usually at least two for each IPsec connection.

The second part is the actual data transfer and this is done using the encryption and authentication methods agreed upon in the IKE negotiation.

The flow of events for IPsec can be summarized as follows:

48

4.4.1. IPsec Chapter 4. The Firewall Menu

• IKE negotiates how IKE should be protected.

• IKE negotiates how IPsec should be protected.

• An IPsec tunnel is established which is used to securely transport data.

The following sections are used in the web interface for IPsec setup:

A. General

B. Authentication

C. Tunnel Type

D. Advanced

A. General

Here, a textual Name for the tunnel is specified. This is used only for identifying the tunnel for management purposes in the web interface.

The Local Network is the network attached to the LAN or DMZ interface which will communicate through the IPsec tunnel.

B. Authentication

This is the Pre-shared Key (PSK) that provides the initial means to set up the tunnel. The key should be the same for both end points of the tunnel for communication to succeed.

A PSK can be any alphanumeric character string.

Security using digital certificates is not possible with the DFL-160 but is possible with higher-end

D-Link NetDefend products.

C. Tunnel Type

An IPsec tunnel can be one of two types:

• Roaming Users.

If clients will be connecting through the tunnel via the WAN port then this option should be enabled. If XAuth is required then this means a user must give a username and password listed in

the user database (see Section 4.5, “VPN Users”).

• Lan-to-Lan.

If the tunnel is being used to connect a remote network on the WAN interface to a local network on the LAN or DMZ

The tunnel's remote endpoint may require XAuth authentication in which case a valid username

49

4.4.1. IPsec and password must be specified.

Chapter 4. The Firewall Menu

Note: Fully qualified domain names

If fully qualified DNS names (FQDN) are used, for example vpn.example.com, then the prefix dns: must be used when these are entered. For this example:

dns:vpn.example.com (a DNS server must also be configured either manually or automatically for resolution to an IP address to succeed).

LAN-to-LAN tunnel establishment can also optionally require a username and password pair for authentication using XAuth. This can be optionally specified.

Advanced

The advanced options provide a way to customize some of the parameters used by IPsec. This may be necessary in certain scenarios where the DFL-160 must communicate with an IPsec peer that expects certain conventions to be used.

The advanced options are as follows:

A. Lifetimes

B. IKE Settings

C. Perfect Forward Secrecy

D. Dead Peer Detection

E. Keep-Alive

A. Lifetimes

Both the IKE and the IPsec connections have limited lifetimes and are described both in terms of time (seconds). These lifetimes prevent a connection from being used too long, which is desirable from a crypto-analysis perspective.

The IPsec lifetime must be shorter than the IKE lifetime. The difference between the two must be a minimum of 5 minutes. This allows for the IPsec connection to be re-keyed simply by performing

50

4.4.1. IPsec Chapter 4. The Firewall Menu another phase-2 negotiation. There is no need to do another phase-1 negotiation until the IKE lifetime has expired.

It is recommended that the lifetimes not be shorter than the following:

• IKE lifetime - 600 seconds (10 minutes)

• IPsec lifetime - 300 seconds (5 minutes)

B. IKE Settings

Internet Key Exchange is the IPsec protocol used to set up an IPsec tunnel between two computers.

• IKE Mode

The options for the mode are Main or Aggressive. Aggressive Mode provides faster tunnel setup because fewer negotiation messages are exchanged but with the tradeoff that tunnel security is reduced. Main Mode is the default and is the recommended option.

• DH Group

Diffie Hellman (DH) is a method used to establish a mutually agreed secret key between two computers without a third party who monitors the exchange being able to work out the key. The

DH group value selects the strength of the DH algorithm being used. The options are 1, 2 and 5.

C. Perfect Forward Secrecy

Perfect Forward Secrecy (PFS) ensures that the session key derived from public and private keys is not compromised if one of the private keys is compromised.

If PFS is selected then the PFS DH Group drop-down box becomes enabled and the Diffie Hellman group can be selected for PFS. The DH group options for PFS are also 1, 2 and 5.

D. Dead Peer Detection

DPD monitors the aliveness of the tunnel by looking for traffic coming from the peer at the other end of the tunnel. If no message is seen within a set length of time then NetDefendOS sends

DPD-R-U-THERE messages to the peer to determine if it is still reachable and alive.

If the peer does not respond to DPD-R-U-THERE messages during a set period of time then the peer is considered dead and the tunnel is taken down. NetDefendOS will then automatically try to

51

4.4.2. L2TP/PPTP Client Chapter 4. The Firewall Menu re-establish the tunnel after a set period of time.

E. Keep-Alive

The IPsec Keep-alive option ensures that the tunnel remains established at all possible times even if no traffic flows. It does this by continuously sending ICMP Ping messages through the tunnel. If replies to the ping messages are not received then the tunnel link is assumed to be broken and an attempt is automatically made to re-establish the tunnel. This feature is only useful for LAN to LAN tunnels.

With the Manual option, a specific source IP address and/or a destination IP address for the pings can optionally be specified. It is recommended to specify a destination IP of a host which is known to being able to reliably respond to ICMP messages.

If the Auto option is chosen and a destination IP is therefore not specified, NetDefendOS will use the first IP address on the remote network for sending messages.

Listing IPsec Tunnels

Currently established IPsec tunnels can be listed and their usage examined through the IPsec option

in the Status menu (see Section 6.8, “IPsec Status”).

4.4.2. L2TP/PPTP Client

This option allows a tunnel to be set up where the DFL-160 acts as a L2TP or PPTP client. In this mode, a tunnel is set up where the DFL-160 connects to an L2TP or PPTP server.

In this mode, users and hosts on the DFL-160 LAN and DMZ interfaces can connect securely to resources at the other end of the tunnel. Unlike pure IPsec VPN where separate VPN tunnels are set up for each user or host, only one L2TP tunnel is set up and all traffic flows through it.

The following sections appear in the web interface for setup:

A. General

B. Authentication

C. IPsec Encryption

D. Security Authentication

E. MPPE

F. Dial-on-Demand

A. General

In this section, the tunnel is named and the protocol (L2TP or PPTP is chosen).

The Remote endpoint is the IP address of the other end of the tunnel (the server's IP address). It can be specified as a URI such as gw.domain.com but if it is then the prefix dns: must be added so the full entry would be dns:gw.domain.com.

52

4.4.3. L2TP/PPTP Server Chapter 4. The Firewall Menu

The Remote Network is the network behind the server to which the client will communicate.

B. Authentication

The client will need a username and password for authentication.

C. IPsec Encryption

L2TP usually uses IPsec as its encryption method.

D. Security Authentication

This section specifies how authentication is done when connecting to the server.

E. MPPE

Microsoft Point to Point Encryption (MPPE) is an optional encryption method usually used only by

PPTP. The method chosen must be compatible with the method chosen on the server.

F. Dial-on-Demand

If this option is enabled, the tunnel will not be set up until traffic is actually sent.

The Idle Timeout is the length of time with inactivity that passes before tunnel disconnection occurs.

4.4.3. L2TP/PPTP Server

This option allows VPN tunnels to be set up based on the L2TP protocol, where the DFL-160 acts as a L2TP or PPTP server, receiving connection requests from external clients. Such clients are sometimes called roaming clients since they might not have a fixed IP address and might connect through temporary connection to a remote network.

Secure VPN connections by external clients could also be achieved, as described previously, using

IPsec tunnels. However, IPsec requires special IPsec client software be installed on the client computer which can increase the overall complexity and expense of VPN. On many computers, such as all Microsoft Windows PCs, L2TP and PPTP client software exists as a standard component which means VPN is much simpler to implement.

The following sections appear in the web interface for setup:

A. General

B. IP Pool Settings

C. Authentication

D. MPPE

D. Idle Timeout

A. General

In this section of the page, the type of tunnel is selected (L2TP or PPTP) and if the tunnel uses IPsec encryption (this is usually only the case for L2TP tunnels).

53

4.4.3. L2TP/PPTP Server Chapter 4. The Firewall Menu

B. IP Pool Settings

The IP Pool is a range of IP numbers that can be handed out to clients as they connect to the

DFL-160 using this tunnel.

Relaying of DNS queries means that URL resolution requests are relayed to a DNS server. This will require that the DFL-160 to have at least one DNS server defined.

C. Authentication

This section specifies how authentication is done with connecting clients.

D. MPPE

Microsoft Point to Point Encryption (MPPE) is an optional encryption method usually used only by

PPTP. The method chosen must be compatible with that used by connecting clients.

E. Idle Timeout

The Idle Timeout is the length of time with inactivity that passes before tunnel disconnection occurs.

54

4.5. VPN Users Chapter 4. The Firewall Menu

4.5. VPN Users

The User Database

This page in the web interface allows the administrator to enter the details of new users into the

NetDefendOS user database and to also administer these users by making deletions or changes.

There is no limit on the database size.

The NetDefendOS user authentication database is used only with VPN. When external clients connect through a VPN link to resources protected by the DFL-160, they can be required to provide a unique combination of a userid and a password (access without any authentication is also possible).

For a description of how to set up VPN connections with the DFL-160, see Section 4.4, “VPN

Options”.

VPN Types That Use VPN Authentication

The exact types of VPN actions that rely on this user database are:

• Access by an external client through an IPsec tunnel through the WAN interface (see

Section 4.4.1, “IPsec”).

• Access by an external client through an L2TP tunnel through the WAN interface, where the

DFL-160 is acting as an L2TP server (see Section 4.4.3, “L2TP/PPTP Server”).

Note: User databases

The users in the user database have no connection with the usernames and associated passwords used for the system administration and system audit functions. Those are

described in Section 3.1, “Administration”.

55

4.6. Web Content Filtering Chapter 4. The Firewall Menu

4.6. Web Content Filtering

4.6.1. Options

The Web Content Filtering (WCF) options allow control over the types of web surfing allowed by clients on the LAN or DMZ. When web browsers try to access a URL on the public Internet through the WAN interface, NetDefendOS checks the URL against a D-Link URL database to find out what category it is. For instance, a URL for web site like CNN might belong to the News category.

The administrator can set up policies to determine what categories are permitted or denied for web surfing. A company's internal surfing policy might be, for example, to only allow access to news and e-banking sites but not to any other type of site.

The sections of the WCF page in the web interface are:

A. Subscription

B. Web Content Filter

C. Categories

D. Options

E. URL Filters

A. Subscription

WCF is a subscription based service and a one year subscription can be purchased as a license add-on from your D-Link agent. The buy license link here will open a D-Link window in your browser so that you can find your local agent. Alternatively you can click the link here: http://security.dlink.com.tw/wheretobuy.asp.

56

4.6.1. Options Chapter 4. The Firewall Menu

B. Web Content Filter

The option here is to enable or disable web content filtering. Note that HTTP and HTTPS traffic (or all traffic) should be allowed in the outgoing traffic options for the LAN or DMZ interfaces for clients on those networks to able to reach the public Internet.

C. Categories

The administrator adds the categories that are to be blocked from the choices in the left table to the selected list in the right. In most cases the category description should be self-explanatory.

D. Options

There are three further options which can be selected when WCF is enabled as shown below.

• Non-Managed Action

If a URL is not found in the WCF database (and is therefore not "classified") then the default action is allow access anyway. The administrator can decide, however, to block any unclassified

URLs.

• Allow Override

With this option, a web page is displayed to the user to indicate that they are trying to access a

URL which has been "flagged" by the WCF database. There is a link on the page, however, which allows them to continue on to the URL.

This option is useful to draw users attention to the fact that their web surfing is being monitored but not is still intrusive enough to totally block their surfing.

Blocking all flagged URLs in all undesirable categories at once can sometimes result in strong protests from an internal web surfing community and it is therefore often advisable to introduce blocking gradually.

• Allow Reclassification

This option displays a web page that shows a URL has been "flagged" by the WCF database and gives the user a link to request "reclassification" of the URL. This option provides users a way to give feedback when they believe the WCF subsystem is incorrectly classifying URLs.

E. Static URL Filters

57

4.6.2. The Content Categories Chapter 4. The Firewall Menu

It is possible to explicitly allow or explicitly block certain URLs by adding one or more Static URL

Filters. This is also referred to as whitelisting and blacklisting and the URLs specified in such filters are not looked up by the WCF subsystem.

When defining a URL filter it is important to note that wildcarding can be used when specifying the

URL. The wildcard character "*" can represent any sequence of characters in the URL.

For example, the URL filter blacklist *.blocked_site.com will block all pages with URLs that end with blocked_site.com.

If we want to now explicitly allow one particular page in this domain then this can be done using a whitelist URL filter of the form ok_page.blocked_site.com. The blacklisting URL filter above will not prevent this page from being reachable since the whitelist has precedence.

Monitoring WCF

The log messages generated by WCF can be viewed through the Status menu and this is described in

Section 6.4, “Web Content Filtering Status”. A graphical summary of WCF activity, shown below,

can be found in the initial display screen which is described in Section 6.1, “System Status”.

4.6.2. The Content Categories

Below is a list of all the categories used with WCF and with a description of the purpose of each category.

Category 1: Adult Content

A web site may be classified under the Adult Content category if its content includes the description or depiction of erotic or sexual acts or sexually oriented material such as pornography. Exceptions to this are web sites that contain information relating to sexuality and sexual health, which may be classified under the Health Sites Category (21). Examples might be:

• www.naughtychix.com

• www.fullonxxx.com

Category 2: News

A web site may be classified under the News category if its content includes information articles on recent events pertaining to topics surrounding a locality (for example, town, city or nation) or culture, including weather forecasting information. Typically this would include most real-time

58

4.6.2. The Content Categories Chapter 4. The Firewall Menu online news publications and technology or trade journals. This does not include financial quotes, refer to the Investment Sites category (11), or sports, refer to the Sports category (16). Examples might be:

• www.newsunlimited.com

• www.dailyscoop.com

Category 3: Job Search

A web site may be classified under the Job Search category if its content includes facilities to search for or submit online employment applications. This also includes resume writing and posting and interviews, as well as staff recruitment and training services. Examples might be:

• www.allthejobs.com

• www.yourcareer.com

Category 4: Gambling

A web site may be classified under the Gambling category if its content includes advertisement or encouragement of, or facilities allowing for the partaking of any form of gambling; For money or otherwise. This includes online gaming, bookmaker odds and lottery web sites. This does not include traditional or computer based games; refer to the Games Sites category (10). Examples might be:

• www.blackjackspot.com

• www.pickapony.net

Category 5: Travel / Tourism

A web site may be classified under the Travel / Tourism category if its content includes information relating to travel activities including travelling for recreation and travel reservation facilities.

Examples might be:

• www.flythere.nu

• www.reallycheaptix.com.au

Category 6: Shopping

A web site may be classified under the Shopping category if its content includes any form of advertisement of goods or services to be exchanged for money, and may also include the facilities to perform that transaction online. Included in this category are market promotions, catalogue selling and merchandising services. Examples might be:

• www.megamall.com

• www.buy-alcohol.se

Category 7: Entertainment

A web site may be classified under the Entertainment category if its content includes any general

59

4.6.2. The Content Categories Chapter 4. The Firewall Menu form of entertainment that is not specifically covered by another category. Some examples of this are music sites, movies, hobbies, special interest, and fan clubs. This category also includes personal web pages such as those provided by ISPs. The following categories more specifically cover various entertainment content types, Pornography / Sex (1), Gambling (4), Chatrooms (8), Game Sites (10),

Sports (16), Clubs and Societies (22) and Music Downloads (23). Examples might be:

• www.celebnews.com

• www.hollywoodlatest.com

Category 8: Chatrooms

A web site may be classified under the Chatrooms category if its content focuses on or includes real-time on-line interactive discussion groups. This also includes bulletin boards, message boards, online forums, discussion groups as well as URLs for downloading chat software. Examples might be:

• www.thetalkroom.org

• chat.yazoo.com

Category 9: Dating Sites

A web site may be classified under the Dating Sites category if its content includes facilities to submit and review personal advertisements, arrange romantic meetings with other people, mail order bride / foreign spouse introductions and escort services. Examples might be:

• adultmatefinder.com

• www.marriagenow.com

Category 10: Game Sites

A web site may be classified under the Game Sites category if its content focuses on or includes the review of games, traditional or computer based, or incorporates the facilities for downloading computer game related software, or playing or participating in online games. Examples might be:

• www.gamesunlimited.com

• www.gameplace.com

Category 11: Investment Sites

A web site may be classified under the Investment Sites category if its content includes information, services or facilities pertaining to personal investment. URLs in this category include contents such as brokerage services, online portfolio setup, money management forums or stock quotes. This category does not include electronic banking facilities; refer to the E-Banking category (12).

Examples might be:

• www.loadsofmoney.com.au

• www.putsandcalls.com

Category 12: E-Banking

60

4.6.2. The Content Categories Chapter 4. The Firewall Menu

A web site may be classified under the E-Banking category if its content includes electronic banking information or services. This category does not include Investment related content; refer to the

Investment Sites category (11). Examples might be:

• www.nateast.co.uk

• www.borganfanley.com

Category 13: Crime / Terrorism

A web site may be classified under the Crime / Terrorism category if its content includes the description, promotion or instruction in, criminal or terrorist activities, cultures or opinions.

Examples might be:

• www.beatthecrook.com

Category 14: Personal Beliefs / Cults

A web site may be classified under the Personal Beliefs / Cults category if its content includes the description or depiction of, or instruction in, systems of religious beliefs and practice. Examples might be:

• www.paganfed.demon.co.uk

• www.cultdeadcrow.com

Category 15: Politics

A web site may be classified under the Politics category if its content includes information or opinions of a political nature, electoral information and including political discussion groups.

Examples might be:

• www.democrats.org.au

• www.political.com

Category 16: Sports

A web site may be classified under the Sports category if its content includes information or instructions relating to recreational or professional sports, or reviews on sporting events and sports scores. Examples might be:

• www.sportstoday.com

• www.soccerball.com

Category 17: www-Email Sites

A web site may be classified under the www-Email Sites category if its content includes online, web-based email facilities. Examples might be:

• www.coldmail.com

• mail.yazoo.com

61

4.6.2. The Content Categories Chapter 4. The Firewall Menu

Category 18: Violence / Undesirable

A web site may be classified under the Violence / Undesirable category if its contents are extremely violent or horrific in nature. This includes the promotion, description or depiction of violent acts, as well as web sites that have undesirable content and may not be classified elsewhere. Examples might be:

• www.itstinks.com

• www.ratemywaste.com

Category 19: Malicious

A web site may be classified under the Malicious category if its content is capable of causing damage to a computer or computer environment, including malicious consumption of network bandwidth. This category also includes "Phishing" URLs which designed to capture secret user authentication details by pretending to be a legitimate organization. Examples might be:

• hastalavista.baby.nu

Category 20: Search Sites

A web site may be classified under the Search Sites category if its main focus is providing online

Internet search facilities. Refer to the section on unique categories at the start of this document.

Examples might be:

• www.zoogle.com

• www.yazoo.com

Category 21: Health Sites

A web site may be classified under the Health Sites category if its content includes health related information or services, including sexuality and sexual health, as well as support groups, hospital and surgical information and medical journals. Examples might be:

• www.thehealthzone.com

• www.safedrugs.com

Category 22: Clubs and Societies

A web site may be classified under the Clubs and Societies category if its content includes information or services of relating to a club or society. This includes team or conference web sites.

Examples might be:

• www.sierra.org

• www.walkingclub.org

Category 23: Music Downloads

62

4.6.2. The Content Categories Chapter 4. The Firewall Menu

A web site may be classified under the Music Downloads category if it provides online music downloading, uploading and sharing facilities as well as high bandwidth audio streaming. Examples might be:

• www.onlymp3s.com

• www.mp3space.com

Category 24: Business Oriented

A web site may be classified under the Business Oriented category if its content is relevant to general day-to-day business or proper functioning of the Internet, for example Web browser updates. Access to web sites in this category would in most cases not be considered unproductive or inappropriate.

Category 25: Government Blocking List

This category is populated by URLs specified by a government agency, and contains URLs that are deemed unsuitable for viewing by the general public by way of their very extreme nature. Examples might be:

• www.verynastystuff.com

• www.unpleasantvids.com

Category 26: Educational

A web site classified under the Educational category may belong to other categories but has content that relates to educational services or has been deemed of educational value, or to be an educational resource, by educational organizations. This category is populated by request or submission from various educational organizations. Examples might be:

• highschoolessays.org

• www.learn-at-home.com

Category 27: Advertising

A web site may be classified under the Advertising category if its main focus includes providing advertising related information or services. Examples might be:

• www.admessages.com

• www.tripleclick.com

Category 28: Drugs/Alcohol

A web site may be classified under the Drugs/Alcohol category if its content includes drug and alcohol related information or services. Some URLs categorized under this category may also be categorized under the Health category. Examples might be:

• www.the-cocktail-guide.com

• www.stiffdrinks.com

63

4.6.2. The Content Categories Chapter 4. The Firewall Menu

Category 29: Computing/IT

A web site may be classified under the Computing/IT category if its content includes computing related information or services. Examples might be:

• www.purplehat.com

• www.gnu.org

Category 30: Swimsuit/Lingerie/Models

A web site may be categorized under the Swimsuit/Lingerie/Models category if its content includes information pertaining to, or images of swimsuit, lingerie or general fashion models. Examples might be:

• www.vickys-secret.com

• sportspictured.cnn.com/features/2002/swimsuit

Category 31: Spam

A web site may be classified under the Spam category if it is found to be contained in bulk or spam emails. Examples might be:

• kaqsovdij.gjibhgk.info

• www.pleaseupdateyourdetails.com

Category 32: Non-Managed

Unclassified sites and sites that do not fit one of the other categories will be placed in this category.

It is unusual to block this category since this could result in most harmless URLs being blocked.

64

4.7. Anti-Virus Chapter 4. The Firewall Menu

4.7. Anti-Virus

Overview

The NetDefendOS Anti-Virus module protects against malicious code carried in file downloads.

Files may be downloaded as part of a web-page in an HTTP transfer or in an FTP download or perhaps as an attachment to an email delivered through SMTP. Malicious code in such downloads can have different intents ranging from programs that merely cause annoyance to more sinister aims such as sending back passwords, credit card numbers and other sensitive information. The term

"Virus" can be used as a generic description for all forms of malicious code carried in files.

Combining with Client Virus Scanning

Unlike IDP, which is primarily directed at attacks against servers, Anti-Virus scanning is focused on downloads by clients. NetDefendOS Anti-Virus is designed to be a complement to the standard antivirus scanning normally carried out locally by specialized software installed on client computers. IDP is not intended as a complete substitute for local scanning but rather as an extra shield to boost client protection. Most importantly, it can act as a backup for when local client antivirus scanning is not available.

The Scanning Mechanism

As a file transfer is streamed through the DFL-160, NetDefendOS will scan the data stream for the presence of viruses if the Anti-Virus module is enabled. Since files are being streamed and not being read completely into memory, a minimum amount of memory is required and there is minimal effect on overall throughput.

The inspection process is based on pattern matching against a database of known virus patterns and can determine, with a high degree of certainty, if a virus is in the process of being downloaded to a user behind the DFL-160. Once a virus is recognized in the contents of a file, the download can be terminated before it completes.

Types of File Downloads Scanned

Anti-Virus scanning can scan file downloads associated with the HTTP, FTP, SMTP and POP3 protocols. More specifically:

• Any uncompressed file type transferred for these protocols can be scanned.

• If the file has been compressed, ZIP and GZIP file downloads will be scanned although the maximum allowed compression ratio is 1:20 (if the ratio exceeds this, the file will be dropped and logged).

The reason for the compression ratio limit is that when scanning compressed files, NetDefendOS must apply decompression to examine the file's contents. Some types of data can result in very high compression ratios where the compressed file is a small fraction of the original uncompressed file size. This can mean that a comparatively small compressed file attachment might need to be uncompressed into a much larger file which can place an excessive load on

NetDefendOS resources and noticeably slowdown throughput.

The Virus Signature Database

NetDefendOS Anti-Virus scanning is implemented by pattern matching against a virus signature database maintained locally in the DFL-160's memory. This database is the "SafeStream" virus signature database which is created and maintained by Kaspersky, a company which is a world

65

4.7. Anti-Virus Chapter 4. The Firewall Menu leader in the field of virus detection. The database provides protection against virtually all known virus threats including trojans, worms, backdoor exploits and others. The database is also thoroughly tested to provide near zero false positives.

NetDefendOS Anti-Virus scanning is a subscription based service and yearly subscriptions can be purchased from your local D-Link agent. After purchase, you will receive a code which is then used for activating IDP.

A subscription means that the SafeStream database is updated on a daily basis from D-Link servers with any new virus signatures that become available. Older signatures are seldom retired but instead are replaced with more generic signatures covering several viruses.

Anti-Virus Settings

The NetDefendOS Anti-Virus feature provides the option to scan any file downloads for viruses.

The downloads that are scanned are those that pass through the WAN interface.

The page in the web interface for Anti-Virus scanning is divided into 3 sections:

A. Anti-Virus Database

B. Anti-Virus Scanning

C. Scan Exclusion Control

A. Anti-Virus Database

This section of the user interface shows the current status of the virus database which is discussed previously in this section.

B. Anti-Virus Scanning

This part of the interface is where virus scanning is enabled. Any combination of the HTTP, FTP,

SMTP or POP3 protocols can be selected. If none is selected, no virus scanning will take place.

C. Scan Exclusion Control

It is possible to explicitly exclude some file types from virus scanning. Virus scanning takes up processing resources so expanding this list can help increase throughput. Some filetypes are excluded by default.

When using the Add button, the filetype should not have a leading period. In other words, if adding

PDF files, specify pdf and not .pdf.

File Type Checking

Some viruses can try to hide inside files by using a misleading name. For example, a file might pretend to be a .pdf file by using the name myfile.pdf but actually contain a virus. If .pdf files are on

66

4.7. Anti-Virus Chapter 4. The Firewall Menu the exclusion list such a file might not be scanned. To avoid this situation, NetDefendOS always performs MIME checking where it looks inside the file to determine what the true filetype of the data is. Only if the filetype determined by MIME checking is on the exclude list is virus scanning skipped.

67

4.8. IDP Options Chapter 4. The Firewall Menu

4.8. IDP Options

The Intrusion Threat

Computer servers can sometimes have vulnerabilities which leave them exposed to attacks carried by network traffic. Worms, trojans and backdoor exploits are examples of such attacks which, if successful, can potentially compromise or take control of a server. A generic term that can be used to describe these server orientated threats are Intrusions.

Intrusion Detection

Intrusions differ from viruses in that a virus is normally contained in a single file download and this is normally downloaded to a client system. An intrusion manifests itself as a malicious pattern of

Internet data aimed at bypassing server security mechanisms. Intrusions are not uncommon and they can constantly evolve since their creation can be automated by the attacker.

With the DFL-160, servers that are accessed from the public Internet are typically situated on the network connected to the DMZ interface. This provides one form of defense against intrusions by isolating any server infection away from the most sensitive "inside" network which is usually connected to the LAN interface. However, it is much better to take steps to prevent these infections ever occurring.

The IDP Solution

Intrusion Detection and Prevention (IDP) is a NetDefendOS feature that is designed to detect and neutralize such intrusion attempts. When IDP is enabled, it functions by monitoring network traffic as it passes through the DFL-160's WAN interface from the public Internet, searching for patterns that indicate an intrusion is being attempted. When such a pattern is detected, NetDefendOS IDP can then neutralize the attempt by dropping the traffic containing the threat.

The IDP Database and Subscribing

NetDefendOS IDP uses a locally held database of threat patterns which is routinely updated by downloads from external D-Link servers with the latest threat information as they become available.

NetDefendOS IDP is a subscription based service and yearly subscriptions can be purchased from your local D-Link agent. After purchase, you will receive a code which is then used for activating

IDP.

68

4.8. IDP Options Chapter 4. The Firewall Menu

Enabling IDP for a Protocol

The IDP page of the NetDefendOS web interface lists a set of protocols which can be scanned by the IDP subsystem. Selecting any of the protocols switches on IDP scanning.

Dropping Connections or Only Logging

When IDP is enabled, the administrator has two options for how detected intrusions are dealt with:

• Log only.

• Log and drop connection.

The Log only option can be useful to first examine what traffic IDP would block if it was fully enabled.

Select the Minimum Number of Protocols

It is recommended to scan the minimum number of protocols required. For example, if there is only an SMTP server in the DMZ network, then enabling the SMTP checkbox only is recommended.

IDP scanning can consume the processing resources of the DFL-160 and it is therefore best to keep the scanning requested to a minimum.

The Scanners Category

The Scanners IDP category is not protocol specific and is an additional precaution against attempted connections coming from the public Internet which randomly search for hosts that will respond.

Often, these try and make connections on different port numbers that might allow access to a host.

The Worms and Malware Category

69

4.8. IDP Options Chapter 4. The Firewall Menu

This category is similar to Scanners in that it is not protocol specific but provides an additional

"catch all" protection against intrusion attempts that are not specific to a particular protocol.

With both Worms and Malware and Scanners, it is important to use them with caution since they will use more processing resources by increasing the scanning load. Both can be particularly useful when used for periods of time in log only mode to determine if IDP is indicating that a DFL-160 installation is being targeted by external intrusions.

70

4.9. Traffic Shaping Chapter 4. The Firewall Menu

4.9. Traffic Shaping

Traffic Shaping allows the administrator to control the level of flows for different types of traffic between the public Internet connected to the WAN interface and hosts on the LAN and DMZ networks.

For example, we may want to specify how much of the available bandwidth is used for FTP downloads from the internet. Traffic shaping allows us to do this by setting up a rule that triggers on

FTP traffic and that has the desired maximum specified.

Instead of, or as well as, specifying a maximum we can also use traffic shaping to specify a guarantee for how much of the total bandwidth will be available for a particular traffic type. For example, we could guarantee that FTP download traffic will always get at least a tenth of the total bandwidth if it is needed. As explained later, Priorities help to resolve competing guarantees.

Setting Up traffic Shaping

After selecting the Traffic Shaping menu option in the Firewall menu, we must first click the box that enables the option.

Specifying WAN Capacity

Next, it is necessary to specify the total available maximum downstream and upstream capacity of the Internet link connected to the WAN interface.

Important: The total capacity should be correctly specified

It is important to specify the total capacity on the WAN interface as accurately as possible. Failure to do so may result in unexpected behaviour.

Adding Rules

After specifying the total capacity, we next must add Traffic Shaping Rules each of which identify a particular type of traffic to shape and what amount of bandwidth that traffic is allowed and/or what amount is to be guaranteed.

Click the Rules tab to begin adding individual traffic shaping rules.

When the Add button is pushed, the dialog for entering a traffic shaping rule is displayed.

71

4.9. Traffic Shaping Chapter 4. The Firewall Menu

Specifying Rules

Each rule is given a name for display purposes and then the Service associated with the rule can be specified. The Service corresponds to a protocol such as FTP. The predefined services are shown below.

Either one of the predefined services can be used or a new service can be specified in terms of the lower level protocol (for example, TCP) and the port number associated with it.

Tip: Specifying all services

It is not possible to explcitly specify all services. However, it is possible to specify a custom service with a port range that is zero to a very large number. A port range could therefore be specified as 1-65535 for all ports.

Specifying Rule Bandwidth

In the Bandwidth part of the rule definition we can specify the desired traffic limits and/or guarantees for the type of traffic that triggers this rule.

The possible types combinations that can be specified for the rule are:

Max - Specify the maximum bandwidth only.

72

4.9. Traffic Shaping Chapter 4. The Firewall Menu

Guarantee - Specify the guaranteed bandwidth only.

Max and Guarantee - Specify both the maximum and guaranteed bandwidth.

The entry fields for the bandwidth are enabled in the interface according to the option chosen. The term Upstream means traffic leaving the WAN interface going towards the public Internet. The term

Downstream is the opposite, which is traffic arriving from the public Internet.

Guarantee Priorities

If guarantees are specified then a Priority is also specified and this can take a value from 1 up to 4

(1=low, 2=normal, 3= high, 4=critical). These priorities apply when the guarantee cannot be met because of competing guarantees. The guarantee with the highest priority is met first and remaining bandwidth is used to meet guarantees with lower priorities.

Specifying Networks

If required, the traffic shaping rule can apply to a specific local network (on LAN or DMZ) and/or a specific remote network on the Internet.

If specified, the source and/or destination networks provide an alternate condition for the traffic shaping rule to trigger. The IP addresses specified can either be in one of the following forms:

• A network. For example, 192.168.10.0/24.

• An individual IP address. For example, 192.168.10.10.

• A network range. For example, 192.168.10.10-192.168.10.20.

Rules Summary

After adding a number of rules, a summary can be displayed of the defined rules and is shown as a table under the Rules tab.

Tip: Sharing the Total Bandwidth

Keep in mind when specifying a rule maximum that it should be less than the total capacity we have specified for WAN otherwise there is no reason to specify a maximum.

Similarly, a guarantee should be just a portion of the entire WAN bandwidth since the aim is to guarantee a minimum level of service for a particular type of traffic.

73

4.10. Schedules Chapter 4. The Firewall Menu

4.10. Schedules

Schedules are used to determine when certain features in NetDefendOS are enabled.

For instance, it may be decided to allow web surfing from clients on the LAN interface only at certain times of the day. In this case, we would create a schedule that contained the times when surfing is allowed and then associate the schedule with the enabled HTTP option of Outbound LAN

Traffic in the Firewall menu options.

Schedule Usage

When creating a schedule, the administrator gives the schedule a name and it is then possible to associate the schedule with a feature using the name. The principle usage for schedules is to control when certain inbound and outbound traffic services are allowed and this is described further in:

Section 4.1, “Outbound LAN Traffic Options”.

Section 4.2, “Outbound DMZ Traffic Options”.

Section 4.3, “Inbound Traffic Options”.

Predefined Schedules

By default, a number of predefined schedules are provided that provide commonly used time arrangements.

Custom Schedules

When creating a new schedule, a grid of checkboxes is displayed which correspond to each hour in each days of the week (24 times 7 checkboxes). The left-hand checkbox is the first hour of the day

(midnight to one o'clock) and so on. Clicking the checkbox indicates that the hour is to a have the associated feature enabled. An example is shown below with the first three hours of Monday checked.

A range of dates can also be specified. If no range is specified then the schedule will apply continuously once it is associated with a feature.

Adding Comments

74

4.10. Schedules Chapter 4. The Firewall Menu

The comments field allows some text explanation to be added to the schedule. It serves only as a reminder to the administrator what the schedule was intended for.

75

4.10. Schedules Chapter 4. The Firewall Menu

76

Chapter 5. The Tools Menu

• Ping, page 77

The Tools menu provides access to features which can be helpful in overall system operation.

The sections that follow describe the options in this menu in the order they appear.

5.1. Ping

The ICMP ping protocol provides a simple query/response tool to determine if a particular network component is alive. A ping request asks the question "are you there" on a given IP address and the response is either "yes I am" or there is no response and the request times out.

The ping page in the NetDefendOS web interface provides a simple way to issue a ping command to any IP address and also to repeat the ping request a certain number of times with a certain size of packet. The image below shows the ping dialog while waiting for a response.

The response from a ping is expressed as the percentage of packet loss. Packet loss is 100% if no response is received as shown below.

In the case of NetDefendOS, a response to a ping request on a particular interface depends on if the

administrator has enabled ping responses or not. This is discussed further in Section 3.1,

“Administration”.

Initiating Ping Requests from the CLI

An alternative method of issuing ping requests is to use the CLI ping command. This command is

described in Appendix A, CLI Reference.

77

5.1. Ping Chapter 5. The Tools Menu

78

Chapter 6. The Status Menu

• System Status, page 80

• Logging Status, page 82

• Anti-Virus Status, page 83

• Web Content Filtering Status, page 84

• IDP Status, page 85

• Connections Status, page 86

• Interfaces Status, page 87

• IPsec Status, page 89

• User Authentication Status, page 90

• Routes, page 91

• DHCP Server Status, page 92

The Status menu of the DFL-160 web interface provides various views of the current status, performance and loading of the various subsystems that make up NetDefendOS.

Filtering Output

Where the status output could consist of a large number of lines of output, the web interface provides the ability to impose a filter on the output so only those lines that are of interest are displayed.

Where a large number of lines could be displayed, the convention in the web interface is to break these into 100 entry blocks and to have available up to 500 entries in total.

Status Screens are a Snapshot

It should also be kept in mind that the status screens are providing a snapshot of the system status and history at a given point in time. In many screens, a Refresh button is provided to force the status display to be updated.

The sections that follow describe the options in this menu in the order they appear.

79

6.1. System Status Chapter 6. The Status Menu

6.1. System Status

The System Status page is the default page that is shown when the web interface opens after logging in to NetDefendOS as administrator.

The status display is divided into three parts:

A. System Resources

B. UTM Statistics

C. Log History

A. System Resources

Various graphical displays and numerical values show the current status of the DFL-160 system and how its resources are being used.

B. UTM Statistics

Unified Threat Management (UTM) consists of the 3 components: Anti-Virus, IDP and Web

Content Filtering. If any of these features are enabled, this section gives an overview of the throughput statistics for the features.

The configuration options for setting up the different aspects of UTM can be found in Chapter 4,

The Firewall Menu.

C. Log History

This table shows the last few log events generated by NetDefendOS (an example of this is shown below).

80

6.1. System Status Chapter 6. The Status Menu

Clicking the More... link in the display will take you to the Logging option in the System menu for a more complete list of recent events and the filters to analyze them.

The details of NetDefendOS logging can be found in Section 3.5, “Logging”.

81

6.2. Logging Status Chapter 6. The Status Menu

6.2. Logging Status

Various events that occur in NetDefendOS cause log messages to created. All possible log messages generated are documented in the accompanying DFL-160 Log Reference Guide. An external SysLog

server can be configured to receive these events, as described in Section 3.5, “Logging”. That

section also describes setting up email alerts for certain events.

As events occur, the last 500 log general messages are kept in local memory and this store is known as the NetDefendOS MemLog. Along with these 500, the last 500 from each of the Anti-Virus, Web

Content Filtering and IDP subsystems are also kept in memory and these can be viewed separately.

The MemLog Display

The most recent 500 log messages from all sources (including AV, WCF and IDP) can be viewed through the Logging page of the Status menu.

Log messages are visible in 100 message blocks on the page and tools are also provided for filtering out messages of interest based on various criteria. The dialog for entering the search criteria are shown below.

Some typical log output for the Anti-Virus subsystem is shown below.

82

6.3. Anti-Virus Status Chapter 6. The Status Menu

6.3. Anti-Virus Status

This page of the web interface provides the ability to view and filter out the last 500 log messages generated by just the Anti-Virus subsystem.

These same messages can also appear mixed in with other messages in the Logging page in the

Status menu (described in Section 6.2, “Logging Status”).

Log messages are visible in 100 message blocks on the page and tools are also provided for filtering out messages of interest based on various criteria.

These messages can provide valuable feedback from the Anti-Virus system on any files being dropped because of viruses being detected.

A full description of the NetDefendOS Anti-Virus feature can be found in Section 4.7, “Anti-Virus”.

83

6.4. Web Content Filtering Status Chapter 6. The Status Menu

6.4. Web Content Filtering Status

This page of the web interface provides the ability to view and filter out the last 500 log messages generated by just the Web Content Filtering (WCF) subsystem.

These same messages can also appear mixed in with other messages in the Logging page in the

Status menu (described in Section 6.2, “Logging Status”).

Log messages are visible in 100 message blocks on the page and tools are also provided for filtering out messages of interest based on various criteria.

These messages can provide valuable feedback from the WCF subsystem on the surfing habits of internal users and which URL accesses are being denied..

A full description of the NetDefendOS Web Content Filtering feature can be found in Section 4.6,

“Web Content Filtering”.

84

6.5. IDP Status Chapter 6. The Status Menu

6.5. IDP Status

This page of the web interface provides the ability to view and filter out the last 500 log messages generated by just the IDP subsystem.

These same messages can also appear mixed in with other messages in the Logging page in the

Status menu (described in Section 6.2, “Logging Status”).

Log messages are visible in 100 message blocks on the page and tools are also provided for filtering out messages of interest based on various criteria.

These messages can provide valuable feedback from the IDP system on what kinds of threats are being detected.

A full description of the NetDefendOS IDP feature can be found in Section 4.8, “IDP Options”.

85

6.6. Connections Status Chapter 6. The Status Menu

6.6. Connections Status

A connection in NetDefendOS refers to either a normal TCP/IP connection set up to perform a transfer of data or a UDP packet based "connection", where a stream of packets is being sent from a sender to a receiver (such as in a streaming video transfer).

This page of the web interface shows the currently established connections. The list shows the protocol (TCP or UDP), the source IP address and the destination IP address of the connection. A example of the information displayed is shown below.

Where the source of destination address is marked as core this means that it is NetDefendOS itself that is dealing with the connection.

The ability to filter the connections is possible based on specific combinations of source/destination

IP address/interface.

86

6.7. Interfaces Status Chapter 6. The Status Menu

6.7. Interfaces Status

This option can show the current status for each of the DFL-160 interfaces. When one of the interfaces is selected from a drop-down box in this page, information about the interface's status is displayed, both in numerical and graphical form. The sections displayed for the chosen interface are:

A. Interface Status

B. Driver Information/Hardware Statistics

C. Throughput Statistics

A. Interface Status

The general information for the chosen interface is displayed. The example below is for the DMZ interface.

B. Driver Information/Hardware Statistics

This section of the display shows summary performance values for the chosen interface. An example of the typical output is shown below.

C. Throughput Statistics

The throughput statistics over the last 24 hours are shown in graphical form as shown below. First, are the statistics for sent (outgoing) traffic. An example of this is shown below (the image is truncated on the right side).

87

6.7. Interfaces Status Chapter 6. The Status Menu

Secondly, the statistics for received (incoming) traffic are shown over the last 24 hours. An example is shown below (the image is also truncated on the right side).

88

6.8. IPsec Status Chapter 6. The Status Menu

6.8. IPsec Status

List VPN Interfaces

This option (the default) shows all the currently established VPN tunnels (also known as VPN

interfaces). An example of this display is shown below.

List all active IKE SAs

An IKE Security Association (SA) is an entity that defines the encryption methods and other parameters that will be used for data flowing from one end of an IPsec tunnel to the other. SAs are set up after the two ends of a VPN tunnel use the Internet Exchange Protocol (IKE) to agree how they will communicate. A single SA applies to data flowing in only one direction and for that reason an IPsec tunnel usually has two SAs set up.

An example of the SA status display is shown below.

89

6.9. User Authentication Status Chapter 6. The Status Menu

6.9. User Authentication Status

This page of the web interface displays the users who have been authenticated and are using a VPN tunnel. An example of the user authentication display is shown below.

The Forcibly Logout Option

For each user, the administrator has the option to force a logout of a user with this option. This can be useful if suspicious activity is seen coming from a particular logged in user.

90

6.10. Routes Chapter 6. The Status Menu

6.10. Routes

A Brief Overview of Routing

A list of all routes are maintained by NetDefendOS in its internal routing table. The routing table indicates which networks can be found on which interface. When traffic arrives at the DFL-160 on one interface, the routing table is consulted by NetDefendOS to determine on which interface the traffic should be forwarded so it gets to its intended destination. When the routing table is consulted, the route chosen is the one that has the narrowest match to the destination IP address being looked up (this is explained further below).

The traffic forwarding function performed with the help of the routing table is the primary task of any device which is called a router. It is also one of the primary tasks of the DFL-160 and in most cases the routes in the NetDefendOS routing table are created automatically without intervention from the administrator.

The image below shows a typical example of the status display for the NetDefendOS routing table.

The 0.0.0.0/0 Route

When NetDefendOS looks up the routing table, it searches for a route which is the closest match possible for the IP address it is trying to find a route to. The routing table always contains a "catch all" route which points to the IP address 0.0.0.0/0 which is a special IP address that means "all networks". This route is, by default, assigned to the WAN interface since if NetDefendOS cannot find an IP address on the LAN or DMZ interface, then it must be on the public Internet.

The Route Metric

Routing metrics are one of the criteria routing algorithms use to compute the "best" route to a destination. A routing protocol relies on one or several metrics to evaluate links across a network and to determine the optimal path.

91

6.11. DHCP Server Status Chapter 6. The Status Menu

6.11. DHCP Server Status

As explained in Section 3.3, “LAN Settings” and Section 3.4, “DMZ Settings”, the LAN and DMZ

interfaces can be configured to act as DHCP servers, allocating IP addresses from a predefined IP range to any users or hosts that require them.

This option in the Status menu allows the administrator to see which DHCP servers are configured and the status of these servers. Each line is the display shows the current usage of a DHCP server and provides the ability to drill down to show the current Leases and Mappings for that server.

92

6.11. DHCP Server Status Chapter 6. The Status Menu

93

Chapter 7. The Maintenance Menu

• The Update Center, page 94

• Licenses, page 96

• Backups, page 98

• Reset to Factory Defaults, page 99

• Upgrades, page 100

• Technical Support, page 101

The Maintenance menu options deal with routine administrative tasks such as backups and software upgrades.

The sections that follow describe the options in this menu in the order they appear.

7.1. The Update Center

The Update Center refers to the external network of D-Link servers that supply updates for the

Anti-Virus and IDP databases. This portion of the web interface is divided into 3 tabs:

A. General

B. Update Interval

C. History

A. General

This section of the user interface allows the administrator to enable or disable the automatic updating of the IDP and Anti-Virus databases.

The Register at D-Link's Portal button opens a web browser window at the page for registering for the IDP or Anti-Virus service after purchase from a D-Link agent.

B. Update Interval

These options allow the frequency of the update interval to be determined. The recommendation is to select a time during a day when there is little user activity through the DFL-160. Typically, this might be in the early hours of the morning.

94

7.1. The Update Center Chapter 7. The Maintenance Menu

The default interval is Daily and this is recommended to keep the databases updated with the latest releases. It is not often that the databases are updated more than once in a day.

C. History

This tab shows the history of recent database updates and can also indicate if there were problems with server access or downloading.

95

7.2. Licenses Chapter 7. The Maintenance Menu

7.2. Licenses

The license page shows information about the current license installed in the DFL-160. When the

DFL-160 is initially delivered it comes with a standard license preinstalled which determines the capabilities of the system.

Add On Services

It is possible to expand the capabilities of the DFL-160 by purchasing a license for any of the following features:

• Anti-Virus

This option enables NetDefendOS to scan for viruses in any files downloaded to the unit, such as those that might be contained in HTTP or FTP downloads.

• Intrusion Detection and Prevention (IDP)

This option enables NetDefendOS to scan traffic for patterns that indicate attempted network intrusions. These are most often directed against internal servers.

• Web Content Filtering

The option enables NetDefendOS to check the URLs requested during web surfing to see if the content type at the URL is allowed by administrator defined policies.

Activating a Service

After buying a subscription to a new service from your D-Link distributor or sales office, an activation code is received which can then be entered into the license page to activate the service.

License Properties

Each DFL-160 comes pre-installed with a standard NetDefendOS license. This page of the web interface shows the contents of the current license. The license determines the maximum capabilities of the system and the parameters in a license are as follows:

• Connections

This is the number of connections that can exist between interfaces in the NetDefendOS. A

connection refers to a logical concept in the state engine of the NetDefendOS software. A single

TCP based transfer can be regarded as a single connections but a UDP based data stream, such as used with VOIP data transfers, can also be viewed as consisting of a connection.

The connection restriction can result in limitations on the total number of client users that can be accessing Internet based facilities at the same time.

• Rules

This is the maximum number of IP rules that can be created by NetDefendOS. An IP rule determines what protocols can flow between what interfaces in the DFL-160. The default value is normally sufficient.

• IPsec Tunnels

The maximum number of IPsec tunnels which terminate at the WAN interface that can be created.

96

7.2. Licenses Chapter 7. The Maintenance Menu

• PPP Tunnels

The maximum number of PPP tunnels which terminate at the WAN interface that can be created.

To expand the capabilities of the standard product license, consult with your local D-Link representative.

97

7.3. Backups Chapter 7. The Maintenance Menu

7.3. Backups

The administrator has the ability to take a snapshot of a NetDefendOS system at a given point in time and restore it when necessary. The snapshot can be of two types:

• A configuration backup which does not include the installed NetDefendOS version. This is a recommended precaution to allow the configuration at a given point in time to be restored provided the NetDefendOS version does not change.

• A system backup which is a complete backup of both the configuration and the installed

NetDefendOS software. This is a recommended precaution if both the configuration is to be changed and the NetDefendOS version is upgraded.

To restore a backup file, the administrator should upload a backup file to the DFL-160. The name of the file does not really matter since NetDefendOS will read a header in the file to determine what it is.

Backups Do Not Contain Everything

Backups include only static information from the NetDefendOS configuration. Dynamic information such as the DHCP server lease database or Anti-Virus/IDP databases will not be backed up.

Operation Interruption

Backups can be created at any time without disturbing NetDefendOS operation. After restoring a backup it is necessary to perform an Activate to make the restored configuration/system active.

Restoring and activating a configuration-only backup should not, in most cases, disturb system operation. Complete system restore, however, is more involved and will require that NetDefendOS reinitializes, with the loss of all existing connections. Initialization may require some seconds to complete depending on the hardware type and normal operation will not be possible during this time.

98

7.4. Reset to Factory Defaults Chapter 7. The Maintenance Menu

7.4. Reset to Factory Defaults

Reset Through Software

A restore to factory defaults can be applied so that it is possible to return to the original hardware state that existed when the DFL-160 was shipped by D-Link. When a restore is applied in this way, all configuration data is lost and the IDP and Ant-Virus databases are lost which means they must be reloaded.

Performing a Reset Manually

An alternative way to reset the DFL-160 is to push in the reset button at the rear of the unit for 10 to

15 seconds while powering it on. After that, release the reset button and the unit will continue to load and start up in default mode as though it were brand new and had never been configured. A simple tool such as the tip of a pencil or pen could be used to hold the reset button in.

Warning: Do not abort a reset to factory defaults

DO NOT STOP THE RESET TO FACTORY DEFAULTS PROCESS PREMATURELY.

If the factory default reset process is interrupted, the DFL-160 can cease to function properly since its memory may be left in an inconsistent internal state.

End of Life Procedures

The restore to factory defaults option should also be used as part of the end of life procedure when a

DFL-160 is taken out of operation and will no longer be used. As part of the decommissioning procedure, a restore to factory defaults should always be run in order to remove all sensitive information such as VPN settings.

As a further precaution at the end of the product's life, it is also recommended that the memory media in a DFL-160 is destroyed and certified as destroyed by a suitable provider of computer disposal services.

99

7.5. Upgrades Chapter 7. The Maintenance Menu

7.5. Upgrades

New releases of NetDefendOS are routinely made available by NetDefendOS. These releases are available as a single file which can be uploaded to the DFL-160 through this page in the web interface.

NetDefendOS upgrades can be downloaded for free from your local D-Link site or from the D-Link

NetDefend Center at http://security.dlink.com.tw.

100

7.6. Technical Support Chapter 7. The Maintenance Menu

7.6. Technical Support

This section of the web interface allows the user to easily download a file of useful troubleshooting information that can be emailed to technical support personnel.

After clicking on the button Download support file, a file is automatically generated by the

NetDefendOS and downloaded to the web interface and can be saved to the local disk.

The techsupport CLI Command

This file contains the same information that can also be generated on a console with the CLI command:

DFL-160:/> techsupport

101

7.6. Technical Support Chapter 7. The Maintenance Menu

102

Chapter 8. The Console Boot Menu

The NetDefendOS loader is the base software on top of which NetDefendOS runs and the administrator's direct interface to this is called the console boot menu (also known simply as the

boot menu). This section discusses the boot menu options.

Accessing the Console Boot Menu

The boot menu is only accessible through a console device attached directly to the serial console

located on the DFL-160 (see Section 2.4, “Console Port Connection”).

The boot menu can be accessed through the console port after the DFL-160 is powered up and before NetDefendOS is ready. After powering up, there is a 3 second interval before NetDefendOS fully starts up and in that time the message Press any key to abort and load boot menu is displayed, as shown below.

If any console key is pressed during these 3 seconds then NetDefendOS startup pauses and the

console boot menu is displayed.

Initial Boot Menu Options without a Password Set

When NetDefendOS is started for the first time with no console password set for console access then the full set of boot menu options are displayed as shown below.

The options available in the boot menu are:

1.

Start firewall

This initiates the complete startup of the NetDefendOS software on the DFL-160.

2.

Reset unit to factory defaults

This option will restore the hardware to its initial factory state. The operations performed if this option is selected are the following:

• Remove console security so there is no console password.

• Restore default NetDefendOS executables along with the default configuration.

3.

Revert to default configuration

This will only reset the configuration to be the original, default NetDefendOS configuration file. Other options, such as console security, will not be affected.

4.

Set console password

103

Chapter 8. The Console Boot Menu

A password should be set for console access. If a password is not set, anyone can use the console. After it is set, the console will prompt for the password before access is allowed to either the boot menu or the command line interface (CLI) (more on the CLI can be found in

Appendix A, CLI Reference).

Initial Options with a Console Password Set

If a console password is set then the initial options that appear when NetDefendOS loading is interrupted with a key press are shown below.

The Start firewall option re-continues the interrupted NetDefendOS startup process. If the Login option is chosen, the console password must be entered and the full boot menu described above is entered.

Removing the Console Password

Once the console password is set it can be removed by selecting the Set console password option in the boot menu and entering nothing as the password and just pressing the Enter key to the prompt.

The Console Password is only for the Console

The password set for the console is not connected to the management passwords used for administrator access through a web browser. It is valid only for console access.

104

Chapter 9. Troubleshooting

When the DFL-160 does not behave as expected, the following CLI tools are available to troubleshoot problems.

The stat CLI Command

If a serious NetDefendOS problem is suspected then the first step should be to use the console command:

> stat

The stat command will indicate the date and time of the last system shutdown and can indicate if there has been a serious error in NetDefendOS operation. It should be remembered however that the buffer which stat uses is cleared by certain operations such a reconfigure and the output will not therefore show what occurred prior to buffer clearance.

The dconsole CLI Command

The next step if to use the console command:

> dconsole

This can be abbreviated to:

> dcon

The dconsole command provides a list of important events in NetDefendOS operation and can help to establish the date, time and nature of events leading up to a serious problem occurring. The output might look similar like the following:

Showing diagnose entries since 2008-05-22:

2008-06-21 11:54:58 Start (2.27.00-0:131)

2008-06-21 11:56:16

2008-06-21 11:56:21

2008-06-21 11:57:29

Stop (RECONFIGURE)

Start (2.27.00-0:131)

Stop (RECONFIGURE)

2008-06-21 11:59:31

2008-06-21 11:59:49

'

'

Start (2.27.00-0:131)

Stop (NORMAL)

dconsole output above may include a dump of the system memory in the case of serious runtime errors. This will look similar like the following:

'

'

Reason: Exception 'DataAbort' occurred at address 0x7aaea34

Generation date/time: 2008-07-04 14:23:56 List of loaded PE-modules: fwloader(1.07.04): BA:0x00100000, EP:0x00101028, SS:0x0, IS:0xe7000 fwcore(82.27.00-2336): BA:0x07761038, EP:0x0007c630 Register dump:

---------------------------------------------------r0 : 0xe1a0003c, r1 : 0x07c685dc, r2 : 0x00000004, r3 : 0x50013700, r4 : 0x06cb2d04, r5 : 0x0753a740, r6 : 0x050ce1f8, r7 : 0x00000000, r8 : 0x0753a79c, r9 : 0x050ce1f8, r10: 0x00000000, r11: 0x0775ff34, r12: 0x00000004, sp : 0x0775fcec, lr : 0x079de7e4 Stack dump:

5da89306 c33613f4 c330cfc5 04411507 45515a49 86619f8b c0db0a81

4e395861 cb25b796 e3108934 932766c5 4dcff9e9 711c3463 b9cd5d1e

52149961 9324dea3 d340dc25 15458610 63582ded 689a0c54 dfb43131

02c7d971 a0ebb72c bfaae832 db216923 08ba693b 95e4de97 98d121a2

105

Chapter 9. Troubleshooting

'

'

Although dconsole output may be difficult to interpret by the administrator, it can be emailed to

D-Link support representatives for further investigation. The dconsole command supersedes the

crashdump command found in earlier versions of NetDefendOS.

Restarting

If a system is in a non-functional "frozen" state then system restart can offer a simple way to clear all error conditions. This can take a few minutes and while restart occurs no traffic can flow through the unit. All connections will be lost, including any VPN tunnels, and these will have to be re-established after restart.

Restarting can be regarded as a last resort when dealing with system problems but is perhaps the only solution when all other methods of troubleshooting are exhausted.

106

Appendix A. CLI Reference

This section summarizes in alphabetical order the command set that can be entered through a console connected to the RS232 console port on the DFL-160.

Details of how to connect up a console device to the console COM port on the DFL-160 can be

found in Section 2.4, “Console Port Connection”. Once the connection is made and NetDefendOS

has started up, pressing the Enter key on the console should get a CLI prompt response on the console:

DFL-160:/>

About

It is advisable to use the Boot Menu to place a password on access through the console port to

prevent unauthorized access. How to do this is described in Chapter 8, The Console Boot Menu.

Display information about the version of NetDefendOS currently running on the DFL-160.

Syntax: about

ARP

Displays ARP entries for the specified interface(s). Published, static as well as dynamic items are shown.

Syntax: arp [options] <interface pattern>

Options:

-ip <pattern> - Display only IP addresses matching <pattern>.

-hw <pattern> - Display only hardware addresses matching <pattern>.

-num <n> - Display only the first <n> entries per iface (default: 20).

-hashinfo - Display information on hash table health.

-flush - Flush ARP cache of ALL interfaces.

-flushif - Flush ARP cache of an iface.

Example:

DFL-160:/> arp wan

ARP cache of iface wan

Dynamic 194.2.1.1 = 0020:d216:5eec Expire=141

ARPSnoop

Toggles the on-screen display of ARP queries. This command can be of great help in configuring the hardware, since it shows which IP addresses are heard on each interface.

Syntax: arpsnoop <interface pattern>

Toggle snooping on given interfaces.

Syntax: arpsnoop all

Snoop all interfaces.

Syntax: arpsnoop none

Disable all snooping.

107

Buffers Appendix A. CLI Reference

Example:

DFL-160:/> arpsnoop all

ARP snooping active on interfaces: lan wan dmz

ARP on wan: gw-world requesting wan_ip

ARP on lan: 192.168.123.5 requesting lan_ip

Buffers

This command can be useful for troubleshooting. For example, if an unexpectedly large number of packets begin queuing or when traffic does not seem to be flowing for an unknown reason. By analyzing the contents of the buffers, it is possible to determine whether such traffic is making it to the DFL-160 at all.

Syntax: buffers

Brings up a list of most recently freed buffers.

Example:

DFL-160:/> buff

Displaying the 20 most recently freed buffers wan lan wan lan wan lan lan lan lan lan

RecvIf Num Size Protocol Sender Destination

------- ---- ---- -------- --------------- ---------------wan lan wan wan lan

1224

395

419

121 UDP

837 131 UDP

474 112 UDP

91 UDP

142 UDP

192.168.3.183

192.168.123.137

192.168.123.137 192.168.3.183

192.168.3.183

192.168.123.137

192.168.3.183

192.168.123.137

192.168.123.137 192.168.3.183

wan lan lan wan lan

543

962 60 UDP

687 60 ARP

268

249

322 UDP

88 UDP

101 UDP

194.2.1.50

192.168.123.182

192.168.123.182 194.2.1.50

0080:ad87:e592 ffff:ffff:ffff

192.168.3.183

192.168.123.137

192.168.123.137 192.168.3.183

219

647 60 ARP

1185 98 UDP

912 98 UDP

682 112 UDP

544 60 TCP

633 60 TCP

447

645

643

60 TCP

60 TCP

60 TCP

123 UDP

193.12.33.105

192.168.123.23

192.168.123.12

0010:a707:dd31 ffff:ffff:ffff

192.168.3.183

192.168.123.137

192.168.123.137 192.168.3.183

192.168.3.183

192.168.123.137

192.168.123.12

194.2.1.50

192.168.123.26

194.2.1.50

192.168.123.25

194.2.1.50

194.2.1.50

192.168.123.137 192.168.3.183

Syntax: buffer <number>

Shows the contents of the specified buffer.

Example:

DFL-160:/> buff 1059

Decode of buffer number 1059 lan: Enet 0050:dadf:7bbf > 0003:325c:cc00 type 0x0800 len 1058

IP 192.168.123.10 -> 193.13.79.1 IHL:20

DataLen:1024 TTL:254 Proto:ICMP

ICMP Echo reply ID:6666 Seq:0

Syntax: buffer

108

CfgLog Appendix A. CLI Reference

Shows the contents of the most recently used buffer.

Example:

DFL-160:/> buff .

Decode of buffer number 1059 lan: Enet 0050:dadf:7bbf > 0003:325c:cc00 type 0x0800 len 1058

IP 192.168.123.10 -> 193.13.79.1 IHL:20

DataLen:1024 TTL:254 Proto:ICMP

ICMP Echo reply ID:6666 Seq:0

CfgLog

Shows the results of the most recent reconfiguration or start up of the firewall. This text is the same as is shown on-screen during reconfiguration or start up.

Syntax: cfglog

Example:

DFL-160:/> cfglog

Configuration log:

Configuring from FWCore_N.cfg

Configuration done

Configuration "FWCore_N.cfg" (v153) verified for bi-directional communication

Connections

Shows the last 20 connections opened through the DFL-160. Connections are created when traffic is permitted to pass via Allow or NAT rules. Traffic permitted to pass under FwdFast is not included in this list. Each connection has two timeout values, one in each direction. These are updated when the firewall receives packets from each end of the connection. The value shown in the Timeout column is the lower of the two values.

Possible values in the State column include:

SYN_RECV TCP packet with SYN flag received.

SYNACK_S TCP packet with SYN + ACK flags sent.

ACK_RECV TCP packet with ACK flag received.

TCP_OPEN TCP packet with ACK flag sent.

FIN_RECV TCP packet with FIN / RST flag received.

PING The connection is an ICMP ECHO connection.

UDP The connection is a UDP connection.

RAWIP The connection uses an IP protocol other than TCP, UDP or ICMP.

Syntax: connections

Example:

DFL-160:/> conn

State Prot Source Destination Time

TCP_OPEN TCP wan:60.20.37.6:5432 dmz:wwwsrv:80 3600

SYN_RECV TCP wan:60.20.37.6:5433 dmz:wwwsrv:80 30

UDP_OPEN UDP lan:10.5.3.2:5433 dmz:dnssrv:53 50

Crashdump

109

Dconsole Appendix A. CLI Reference

Displays the contents of the file crashdump.dmp stored by NetDefendOS. The file contains critical diagnostic information which can help determine the reason for a critical system event.

Syntax: crashdump

Dconsole

Displays a list of event information that is useful in pinpointing the occurrence of critical system errors.

Syntax: dconsole

DHCP

Syntax: dhcp [options] <interface>

Options:

-renew - Force interface to renew its lease.

-release - Force interface to release its lease.

Example:

DFL-160:/> dhcp -renew wan

DHCPServer

Show the contents of the DHCP server configuration section and active DHCP leases.

Syntax: dhcpserver [options]

Options:

-rules - Shows dhcp server rules.

-leases - Shows dhcp server leases.

-mappings - Shows dhcp server IP=>MAC mappings.

-release - Releases an active or blacklisted IP.

Example:

DFL-160:/> dhcpserver

Contents of the DHCP-Server rule set; default action is IGNORE

# Source Pool Gateway DNS1 LTime

- ------ ----------------------- -------------- -------------- -----

1 lan 192.168.32.1-.39.1, ... 192.168.39.254 192.168.39.253 10800

1

1

1

1

Active DHCP sessions:

Rule Iface Client MAC Client IP Expire

---- ----- -------------- -------------------

1

1 lan 000f:3d0f:797a 192.168.32.212

10746 lan 0050:8df5:24a3 192.168.37.88

10700 lan 000f:3d3f:c409 192.168.34.96

10678 lan 000d:8802:61cd 192.168.34.175

10574 lan 000f:3d1f:a3cc 192.168.34.154

10549 lan 0030:f12e:587f 192.168.38.220

10529

DNS

Show what external DNS servers are configured for domain name lookups. Up to 3 servers can be configured.

110

Frags Appendix A. CLI Reference

Syntax: dns

Options:

-list - List pending DNS queries.

-query=<domain-name> - Resolve domain name.

-remove - Remove all pending DNS queries.

Example:

DFL-160:/> dns

DNS client is initialized.

Using servers:

DNS Server 0 : 10.5.0.19

DNS Server 1 : Not set

DNS Server 2 : Not set

Frags

Shows the 20 most recent fragment reassembly attempts. This includes both ongoing and completed attempts.

Syntax: frags

Example:

DFL-160:/> frags

RecvIf Num State Source Destination Proto Next Timeout lan 2 Done 10.5.3.2 26.23.5.4 ICMP 2000 58 wan 8 Accept 23.3.8.4 10.5.3.2 ICMP 1480 60

HTTPPoster

Show the configured httpposter URLs and status.

Syntax: httpposter [options]

Options:

-repost - Re-post all URLs now.

Example:

DFL-160:/> httpposter

HTTPPoster_URL1:

Host : ""

Port : 0

Path : ""

Post : ""

User : ""

Pass : ""

Status: (not configured)

HTTPPoster_URL2:

Host : ""

Port : 0

Path : ""

Post : ""

User : ""

Pass : ""

Status: (not configured)

111

IfStat Appendix A. CLI Reference

HTTPPoster_URL3:

Host : ""

Port : 0

Path : ""

Post : ""

User : ""

Pass : ""

Status: (not configured)

IfStat

Syntax: ifstat

Shows a list of the interfaces installed.

Example:

DFL-160:/> ifstat

Configured interfaces:

Iface IP Address

----- ----------

PBR membership Interface type

----------------------------------core 127.0.0.1

mgmt 10.9.0.36

<all>

<all> wan 172.16.87.252 <all> lan 192.168.121.1 <all> pptp 10.10.240.131 <all>

Null (sink)

Builtin e100 - Intel(R) 8255..

Builtin e100 - Intel(R) 8255..

Builtin e100 - Intel(R) 8255..

PPTP tunnel to 192.168.23.1

Syntax: ifstat <interface>

Shows hardware and software statistics for the specified NIC.

Example:

DFL-160:/> ifstat lan

Iface lan

Builtin e1000 - Intel(R) PRO/1000 T Server Adapter Slot 2/1 IRQ 5

Media : "1000BaseTx"

Speed : 1000 Mbps Full Duplex

MTU : 1500

Link Partner :

10BASE-T, 10BASE-T FD, 100BASE-TX, 100BASE-TX FD, 1000BASE-TX F

Bus Type : PCI 64-bit/33MHz

IP Address : 192.168.123.1

Hw Address : 00-03-47-ab-ea-25

Software Statistics:

Soft received : 193075 Soft sent : 212480 Send failures : 0

Dropped : 0 IP Input Errs : 0

Hardware statistics:

IN : packets= 193074 bytes=36524718 errors= 10 dropped= 10

OUT: packets= 212646 bytes=208065794 errors= 0 dropped= 0

Collisions : 0

In : Length Errors : 0

In : Overruns : 0

In : CRC Errors : 0

In : Frame Errors : 0

In : FIFO Overruns : 0

In : Packets Missed : 0

Out: Sends Aborted : 0

Out: Carrier Errors : 0

Out: FIFO Underruns : 0

Out: SQE Errors : 0

Out: Late Collisions : 0

112

Ikesnoop Appendix A. CLI Reference

The Dropped counter in the software section states the number of packets discarded as the result of structural integrity tests or rule set drops. The IP Input Errs counter in the software section specifies the number of packets discarded due to checksum errors or IP headers broken beyond recognition.

The latter is most likely the result of local network problems rather than remote attacks.

Ikesnoop

Ikesnoop is used to diagnose problems with IPsec tunnels.

Syntax: ikesnoop

Display current ikesnoop status.

Syntax: ikesnoop -off

Turn IKE snooping off.

Syntax: ikesnoop -on [ipaddr]

Turn IKE snooping on, if an IP is specified then only IKE traffic from that IP will be shown.

Syntax: ikesnoop -verbose [ipaddr]

Enable verbose output, if an IP is specified then only IKE traffic from that IP will be shown.

IPsecstats

Display connected IPsec VPN gateways and remote clients.

Syntax: ipsecstats <options>

Options:

-u - Append SA usage.

-num <connection-number> - Show this connection number.

Example:

DFL-160:/> ipsecstats

--- IPsec SAs:

Displaying one line per SA-bundle

VPN Tunnel Local net Remote net Remote GW

---------- ---------------------------------------vpn-home 192.168.123.0/24 192.168.1.2/32 192.168.1.2/32

IPsectunnels

Display configured IPsec VPN connections.

Syntax: ipsectunnels

Example:

DFL-160:/> ipsectunnel

No Name Local Net Remote Net Remote GW

-- ---------------------------------------------

1 vpn-home 192.168.123.0/24 0.0.0.0

0.0.0.0/0

113

License Appendix A. CLI Reference

Killsa

Kills all IPsec and IKE SAs for the specified IP-address.

Syntax: killsa <ipaddr>

Example:

DFL-160:/> killsa 192.168.0.2

Destroying all IPsec & IKE SAs for remote peer 192.168.0.2

License

Shows the content of the license-file.

Syntax: license

Lockdown

Sets local lockdown on or off. During local lockdown, only traffic from admin nets to NetDefendOS itself is allowed. Everything else is dropped. Note: If local lockdown has been set by NetDefendOS itself due to licensing or configuration problems, this command will NOT remove the lock.

Syntax: lockdown [ on | off ]

Logout

Only works on the serial or local console, it is used to logout the current user and enable the password.

Syntax: logout

Memory

Displays core memory consumption. Also displays detailed memory use of some components and lists.

Syntax: memory

Ping

Sends a specified number of ICMP Echo Request packets to a given destination. All packets are sent in immediate succession rather than one per second and this behavior is best suited for diagnosing connectivity problems. Pinging can optionally be done on specific ports using UDP or TCP.

Syntax: ping <IPAddr> [<options>] [<# of packets> [<size>]

Options:

-r <recvif> - Run through the rule set, simulating that the packet was received by <recvif>.

-s <srcip> - Use this source IP.

-p <table> - Route using the specified PBR table.

-v - Verbose ping.

-t <ipaddress> -p <port> - Ping the specified IP address on the specified port using TCP.

-u <ipaddress> -p <port> - Ping the specified IP address on the specified port using UDP.

Example:

DFL-160:/> ping 192.168.12.1

Sending 1 ping to 192.168.12.1 from 192.168.14.19

114

ReConfigure Appendix A. CLI Reference using PBR table "main".

Echo reply from 192.168.12.1 seq=0 time= 10 ms TTL=255

DFL-160:/> ping 192.168.12.1 -v

Sending 1 ping to 192.168.12.1 from 192.168.14.19

using PBR table "main".

... using route "192.168.12.0/22 via wan, no gw" in PBR table "main"

Echo reply from 192.168.12.1 seq=0 time=<10 ms TTL=255

ReConfigure

Reinitializes NetDefendOS.

Syntax: reconfiure

Example:

DFL-160:/> reconfigure

Shutdown RECONFIGURE. Active in 1 second.

Shutdown reason: Reconfigure due to CLI command

Routes

Displays information about the routing tables, contents of a (named) routing table or a list of routing tables, along with a total count of route entries in each table, as well as how many of the entries are single-host routes. Note that "core" routes for interface IP addresses are not normally shown, use the

-all switch to show core routes also. In the "Flags" field of the routing tables, the following letters are used:

M: Route is Monitored.

A: Published via Proxy ARP.

D: Dynamic (from, for example, IPsec, L2TP/PPP servers, etc).

Syntax: routes [<options>] [<table name>]

Options:

-all - Also show routes for interface addresses.

-num <n> - Limit display to <n> entries (default: 20).

-nonhost - Do not show single-host routes.

-lookup <ip> - Lookup the route for the given IP address.

-v - Verbose.

Example:

DFL-160:/> routes

Flags Network Iface Gateway Local IP Metric

----- --------------------------- -------- -------

192.168.12.0/22 lan 0

194.2.1.0/24

0.0.0.0/0 wan wan 194.2.1.1

0

0

DFL-160:/> routes -lookup 193.1.2.3

Looking up 193.1.2.3 in routing table "main":

Matching route: 0.0.0.0/0

Routing table : main

Send via iface: wan

Gateway : 194.2.1.1

115

Rules Appendix A. CLI Reference

Proxy ARP on :

Local IP : (use iface IP in ARP queries)

Metric : 0

Flags :

Rules

Shows the contents of the Rules configuration section.

Syntax: rules [<options>] [<range>]

Options:

-schedule - Filter out rules that are not currently allowed by selected schedules.

-type - Type of rules to display.

-verbose - show all parameters of the rules.

The range parameter specifies which rules to include in the output of this command.

Settings

Shows the contents of the Settings configuration section.

Syntax: settings

Shows available groups of settings.

Example:

DFL-160:/> sett

Available categories in the Settings section:

IP - IP (Internet Protocol) Settings

TCP

ICMP

ARP

- TCP (Transmission Control Protocol) Settings

- ICMP (Internet Control Message Protocol) Settings

- ARP (Address Resolution Protocol) Settings

State - Stateful Inspection Settings

ConnTimeouts - Default Connection timeouts

LengthLim

Frag

VLAN

SNMP

DHCP

Log

Misc

- Default Length limits on Sub-IP Protocols

- Fragmentation Settings

- VLAN Settings

- SNMP Settings

- DHCP (Dynamic Host Configuration Protocol) Settings

- Log Settings

- Miscellaneous Settings

Syntax: settings <group_name>

Shows the settings of the specified group.

Example:

DFL-160:/> settings arp

ARP (Address Resolution Protocol) Settings

ARPMatchEnetSender : DropLog

ARPQueryNoSenderIP : DropLog

ARPSenderIP : Validate

UnsolicitedARPReplies : DropLog

ARPRequests

ARPChanges

StaticARPChanges

ARPExpire

: Drop

: AcceptLog

: DropLog

: 900

116

Shutdown Appendix A. CLI Reference

ARPExpireUnknown

ARPMulticast

ARPBroadcast

ARPCacheSize

ARPHashSize

ARPHashSizeVLAN

: 15

: DropLog

: DropLog

: 4096

: 512

: 64

Shutdown

Instructs NetDefendOS to perform a shutdown in a given number of seconds. It is not necessary to perform a shutdown before the system is powered off.

Syntax: shutdown <seconds>

If the <seconds> parameter is not specified then the default value is 5 seconds.

Options:

-normal - Perform a normal shutdown (the default).

-reboot - A reboot occurs automatically.

Example:

DFL-160:/> shutdown

Shutdown NORMAL. Active in 5 seconds.

Shutdown reason: Shutdown due to console command

Stats

Shows various vital stats and counters.

Syntax: stats

Example:

DFL-160:/> stats

Uptime

Last shutdown

CPU Load

Connections

Fragments

: 10 days, 23:11:59

: 2008-10-06 16:49:22

: 6%

: 4919 out of 32768

: 17 out of 1024 (0 lingering)

Buffers allocated : 1252

Buffers memory : 1252 x 2292 = 2802 KB

Fragbufs allocated : 16

Fragbufs memory : 16 x 10040 = 156 KB

Out-of-buffers : 0

Sysmsgs

Show the contents of the OS sysmsg buffer.

Syntax: sysmsgs

Example:

DFL-160:/> sysmsg

Contents of OS sysmsg buffer:

2003-04-24 00:03:46 Boot device number is 0x80

2003-04-24 00:03:46 Available LowPoolMemory: 360424 Bytes

117

Techsupport Appendix A. CLI Reference

(LBlock: 360424 bytes)

2003-04-24 00:03:46 Available KernelPoolMemory: 1048560 bytes

(LBlock: 1048560 bytes)

2003-04-24 00:03:46 Available UserPoolMemory: 198868948 bytes

2003-04-24 00:03:46 Drive 0x00 present: (C/H/S/SC/M):

(0x50/0x2/0x12/0x24/0xb3f)

2003-04-24 00:03:46 Drive 0x80 present: (C/H/S/SC/M):

(0x3f2/0x10/0x33/0x330/0xc935f)

2003-04-24 00:03:46 Drive 0x80 is using a FAT-16 filesystem

2003-04-24 00:03:46 Firewall loader up and running!

Techsupport

Displays extensive system information that can be used for trouble shooting. This information is designed to be sent to technical support for problem diagnosis. This command's output is actually a concatenation of the output from several other commands.

Syntax: techsupport

Time

Displays the system date and time

Syntax: time <options>

Options:

-set <arg> - Set system local time (YYYY-MM-DD HH:MM:SS).

-sync - Synchronize time with timeserver(s) (specified in settings).

-force - Force synchronization regardless of the MaxAdjust setting.

Uarules

Shows configured user authentication rules.

Syntax: uarules

Updatecenter

Displays Anti-Virus/IDP version and update information.

Syntax: updatecenter [options]

Options:

-update [av|idp] - force a database update now.

-status [av|idp] - show update status.

-removedb av|idp - delete the specified database.

-servers - show information about autoupdate servers.

-debugtestidp - invokes IDP test code (CAUTION: this sometimes may cause the hardware to freeze).

Example:

DFL-160:/> updatecenter -status

Antivirus Signature Database

Database Version: 2 2008-01-22 15:02:27

HW Support: lc2350a

Hardware DB Version: Latest Full:2008-01-22 15:02:27 Patch:N/A

Status: Update server available

Next update scheduled for: 2008-01-25 05:11:00

IDP Signature Database

118

Urlcache Appendix A. CLI Reference

Database Version: 2 2006-10-04 10:13:18

HW Support: lc2350a

Hardware DB Version: Latest Full:2006-10-04 10:13:18 Patch:N/A

Status: Update server available

Next update scheduled for: 2008-01-25 05:11:00

Urlcache

Displays information related to the URL cache used by the Web Content Filtering function.

Syntax: urlcache [options]

Options:

-v - Verbose option to list all information.

-c - Display the cache count.

-hash - Display information regarding the hashing.

-num <value> - List <value> entries in the cache.

-serverstatus - Web Content Filtering server status.

-connectserver - Connect to the Web Content Filtering Server. Provides a way to check connection.

-disconnectserver - Disconnect from the Web Content Filtering server, provides a way to explicitly disconnect.

Userauth

Display information about authenticated users, known privileges.

Syntax: userauth [options]

Options:

-l - Displays a list of all authenticated users.

-p - Displays a list of all known privileges (usernames and groups).

-r <ip> - Removes an authenticated user (=logout).

Example:

DFL-160:/> userauth -l

Login IP Address Interface Timeouts Privileges

--------------- --------------- ---------- ---------- ---------user1 user2

192.168.4.56

192.168.4.44

xauthtunnel none/28m xauthtunnel none/27m

Userdb

Syntax: Userdb <dbname> [<wildcard> or <username>]

Display user databases and their contents. If <dbname> is specified users configured in that user database will be shown. A wildcard can be used to only show users matching that pattern or if a username is specified information regarding that user will be shown.

Options:

-num - Displays the specified number of users (default 20).

Example:

DFL-160:/> userdb

Configured user databases:

Name #users

---------- ------

119

Userdb

LocalUsers 2

DFL-160:/> userdb LocalUsers

Contents of user database LocalUsers:

Username Groups Static IP Remote Networks

--------- ------- --------- --------------bob alice sales tech

DFL-160:/> userdb LocalUsers bob

Information for bob in database LocalUsers:

Username : bob

Groups : sales

Networks :

Appendix A. CLI Reference

120

Appendix B. Windows XP IP Setup

A Microsoft Windows PC can be used as the management workstation for initial setup of a

DFL-160. Usually explicit configuration of the IP address of the PC's chosen Ethernet interface should not be needed since the DFL-160 automatically assigns the workstation's address using

DHCP.

If DHCP cannot be used, the workstation IP address should be configured manually and this section describes the steps to do that.

Traffic must be able to flow between the designated PC Ethernet interface and the DFL-160 LAN interface so they must be on the same IP network. This means the PC's interface should be assigned the following static IP addresses:

IP address: 192.168.10.30

Subnet mask: 255.255.255.0

Default gateway: 192.168.10.1

To configure these settings on a Windows XP system, perform the following steps:

1.

Click the Windows Start button.

2.

Right click on My Network Places and select Properties.

3.

Right click the chosen Ethernet interface and select Properties.

4.

Select Internet Protocol (TCP/IP) and click Properties.

5.

Enter the IP addresses given above and click OK.

121

Appendix B. Windows XP IP Setup

The assigned IP address 192.168.10.30 could, in fact, be another address from the 192.168.10.0/24 network. However, 192.168.10.30 is normally used by D-Link as a convention.

122

Appendix C. Windows Vista IP Setup

A Windows Vista based PC can be used as the management workstation for setup of a DFL-160.

Usually, configuration of the IP address of the PC's chosen Ethernet interface should not be needed since the DFL-160 automatically assigns the address using DHCP. If DHCP cannot be used, the workstation IP address should be configured manually. The steps to do this with Windows Vista are as follows:

1.

Press the Windows Start button.

2.

Select the Control Panel from the start menu.

3.

Select Network & Sharing Center from the control panel.

4.

Select the Manage network connections option.

5.

A list of the Ethernet interface connections will appear. Select the interface that will connect to the firewall.

6.

The properties for the selected interface will appear.

123

Appendix C. Windows Vista IP Setup

Select and display the properties for Internet Protocol Version 4 (TCP/IPv4).

7.

In the properties dialog, select the option Use the following IP address and enter the following values:

IP Address: 192.168.10.30

Subnet mask: 255.255.255.0

Default gateway: 192.168.10.1

DNS addresses can be entered later once Internet access is established.

8.

Click OK to close this dialog and close all the other dialogs opened since step (1).

124

Appendix D. Windows 7 IP Setup

A Windows 7 based PC can be used as the management workstation for setup of a DFL-160.

Usually, configuration of the IP address of the PC's chosen Ethernet interface should not be needed since the DFL-160 automatically assigns the address using DHCP. If DHCP cannot be used, the workstation IP address should be configured manually. The steps to do this with Windows 7 are as follows:

1.

Press the Windows Start button.

2.

Select the Control Panel from the start menu.

3.

Select Network & Sharing Center from the control panel.

4.

Select the Change adapter settings option.

5.

A list of adapters will appear and will include the Ethernet interfaces. Select the interface that will connect to the firewall.

6.

The properties for the selected interface will appear.

125

Appendix D. Windows 7 IP Setup

Select and display the properties for Internet Protocol Version 4 (TCP/IPv4).

7.

In the properties dialog, select the option Use the following IP address and enter the following values:

IP Address: 192.168.10.30

Subnet mask: 255.255.255.0

Default gateway: 192.168.10.1

DNS addresses can be entered later once Internet access is established.

8.

Click OK to close this dialog and close all the other dialogs opened since step (1).

126

Appendix E. Apple Mac IP Setup

An Apple Mac can be used as the management workstation for setup of a DFL-160. Usually configuration of the IP address of the MAC's chosen Ethernet interface should not be needed since the DFL-160 automatically assigns the address using DHCP. If DHCP cannot be used, the workstation IP address should be configured manually. The steps to do this with MacOS X are as follows:

1.

Go to the Apple Menu and select System Preferences.

2.

Click on Network.

3.

Select Ethernet from the left sidebar menu.

4.

Select Manually in the Configure pull down menu.

127

5.

Now set the following values:

IP Address: 192.168.10.30

Subnet Mask: 255.255.255.0

Router: 192.168.10.1

Appendix E. Apple Mac IP Setup

6.

Click Apply to complete the static IP setup.

Note: Different MacOS versions

Some versions of MacOS may differ slightly from the screenshots shown above but the setup should be almost the same.

128

Alphabetical Index

A about CLI command, 107 administration, 23 username, 24 anti-virus, 65 status, 83 apple MAC IP setup, 127 arp CLI command, 107 arpsnoop CLI command, 107 audit username, 24 automatic logout, 16

B backups, 98 boot menu, 20, 103 browser connection, 14 buffers CLI command, 108

C certificate based IPsec, 49 cfglog CLI command, 109

CLI command reference, 107 connecting cables, 14 connecting power, 14 connections CLI command, 109 connections status, 86 console output truncation, 20 port connection, 20 console boot menu (see boot menu) console commands (see CLI) content filtering phishing, 62 spam, 64 contents delivered, 12 crashdump CLI command, 109

D date and time options, 36 dconsole CLI command, 105, 110 dhcp CLI command, 110 dhcpserver CLI command, 110

DHCP server status, 92 dial on demand, 26, 27, 53

DMZ interface, 8, 31

DMZ settings, 31 dns CLI command, 110 dynamic DNS settings, 38

E end of life procedures, 99 environmental parameters, 13

Ethernet port LEDs, 10

129

F

FireFox usage, 15 firewall menu, 17, 40 frags CLI command, 111

H heat flow considerations, 13 httpposter CLI command, 38, 111

I

IDP options, 68 status, 85 ifstat CLI command, 112 ikesnoop CLI command, 113 inbound connections, 17 inbound traffic options, 45 interfaces, 8 interfaces status, 87 internet connection, 26

Internet Explorer usage, 15 intrusion detection and prevention (see IDP)

IPsec, 48, 89 aggresive mode, 51 dead peer detection, 51

DH groups, 51 keep-alive, 52 lifetimes, 50 main mode, 51 perfect forward secrecy, 51 ipsecstats CLI command, 113 ipsectunnels CLI command, 113

K killsa CLI command, 113

L

L2TP client, 52 server, 53

LAN interface, 8, 28

LAN settings, 28

LED indicators, 10 license CLI command, 114 licenses, 96 location for hardware, 12 lockdown CLI command, 114 logging, 34 status, 82 logging in as administrator, 15 logging out, 16 automatic, 16 logout CLI command, 114

M maintenance menu, 94 memory CLI command, 114

MTU setting, 26

O operating parameters, 13 outbound connections, 17 outbound DMZ traffic options, 43 outbound LAN traffic options, 41

P phishing (see content filtering) ping, 77 ping CLI command, 77, 114 power LED, 10

PPTP client, 52 server, 53 pre-shared key with IPsec, 49

R reconfigure CLI command, 115 reset to factory defaults, 99 restoring a backup, 98 routes, 91 metrics, 91 routes CLI command, 115 rules CLI command, 116

S schedules, 74 with inbound traffic, 45 with outbound dmz traffic, 44 with outbound lan traffic, 42 self-signed browser certificate, 15 settings CLI command, 116 setup, 12 shutdown CLI command, 117 spam (see content filtering) stat CLI command, 105 static URL filters, 57 stats CLI command, 117 status LED, 10, 14 status menu, 79 sysmsgs CLI command, 117 system menu, 23 system status, 80

T technical support, 101 techsupport CLI command, 118 time CLI command, 118 time servers, 36 tools menu, 77 traffic shaping, 71 transparent mode with DMZ interface, 31 with LAN interface, 29 troubleshooting, 105 troubleshooting setup connection, 19

U uarules CLI command, 118 unpacking, 12 update center, 94 updatecenter CLI command, 118 upgrades, 100 urlcache CLI command, 119

USB port, 21 userauth CLI command, 119 user authentication status, 90 user database, 55 userdb CLI command, 119

W

WAN interface, 8 web content filtering, 56 categories, 58 status, 84 wildcarding in URLs, 57 windows workstation setup, 121

V virtual private networks (see VPN)

VPN, 47

IPsec, 48

L2TP, 52 user authentication database, 55

Alphabetical Index

130

advertisement

Key Features

  • Firewall
  • Unified Threat Management (UTM)
  • Anti-Virus
  • Intrusion Detection and Prevention
  • Web Content Filtering
  • VPN Support

Frequently Answers and Questions

What is the DFL-160?
The DFL-160 is a D-Link hardware/software solution designed for situations where a conventional IP router connected to the public Internet in a small organization or home environment does not have sufficient capabilities to provide the network security required to combat today's universe of potential external threats.
What are the key features of the DFL-160?
The DFL-160 provides extensive firewalling capabilities, unified threat management (UTM) through anti-virus, intrusion detection and prevention, and web content filtering, as well as VPN support.
How do I connect to the DFL-160 for the first time?
Connect the DFL-160 to your network using an Ethernet cable. Then, open a web browser on a computer connected to the same network and surf to the IP address 192.168.10.1. You will be prompted to log in with the username "admin" and password "admin".

Related manuals

Download PDF

advertisement

Table of contents