General

1. What is a network firewall?
2. What makes P-334WH secure?
3. What are the basic types of firewalls?
4. What kind of firewall is the P-334WH?
5. Why do you need a firewall when your router has packet filtering and NAT built-in?
6. What is Denials of Service (DoS)attack?
7. What is Ping of Death attack?
8. What is Teardrop attack?
9. What is SYN Flood attack?
10. What is LAND attack?
11. What is Brute-force attack?
12. What is IP Spoofing attack?
13. Why traffic redirect/static/policy route be blocked by P-334WH?

Log and Alert

1. When does the P-334WH generate the firewall log?
2. What is contained in P-334WH firewall log ?
3. How do I view the firewall log?
4. When does the P-334WH generate the firewall alert?
5. What does the alert show to us?
6. What is the difference between the log and alert?

1. What is a network firewall?

A firewall is a system or group of systems that enforces an access-control policy between two networks. It may also be defined as a mechanism used to protect a trusted network from an untrusted network. The firewall can be thought of two mechanisms- One to block the traffic, and the other to permit traffic.

2. What makes P-334WH secure?

The P-334WH is pre-configured to automatically detect and thwart Denial of Service (DoS) attacks such as Ping of Death, SYN Flood, LAND attack, IP Spoofing, etc. It also uses stateful packet inspection to determine if an inbound connection is allowed through the firewall to the private LAN. The P-334WH supports Network Address Translation (NAT), which translates the private local addresses to one or multiple public addresses. This adds a level of security since the clients on the private LAN are invisible to the Internet.

3. What are the basic types of firewalls?

Conceptually, there are three types of firewalls:

1. Packet Filtering Firewall
2. Application-level Firewall
3. Stateful Inspection Firewall

Packet Filtering Firewalls generally make their decisions based on the header information in individual packets. These header information include the source, destination addresses and ports of the packets.

Application-level Firewalls generally are hosts running proxy servers, which permit no traffic directly between networks, and which perform logging and auditing of traffic passing through them. A proxy server is an application gateway or circuit-level gateway that runs on top of general operating system such as UNIX or Windows NT. It hides valuable data by requiring users to communicate with secure systems by mean of a proxy. A key drawback of this device is performance.

Stateful Inspection Firewalls restrict access by screening data packets against defined access rules. They make access control decisions based on IP address and protocol. They also 'inspect' the session data to assure the integrity of the connection and to adapt to dynamic protocols. The flexible nature of Stateful Inspection firewalls generally provides the best speed and transparency, however, they may lack the granular application level access control or caching that some proxies support.

4. What kind of firewall is the P-334WH?

1. The P-334WH's firewall inspects packets contents and IP headers. It is applicable to all protocols that understand data in the packet is intended for other layers, from network layer up to the application layer.
2. The P-334WH's firewall performs stateful inspection. It takes into account the state of connections it handles so that, for example, a legitimate incoming packet can be matched with the outbound request for that packet and allowed in. Conversely, an incoming packet masquerading as a response to a nonexistent outbound request can be blocked.
3. The P-334WH's firewall uses session filtering, i.e., smart rules, that enhance the filtering process and control the network session rather than control individual packets in a session.
4. The P-334WH's firewall is fast. It uses a hashing function to search the matched session cache instead of going through every individual rule for a packet.
5. The P-334WH's firewall provides email service to notify you for routine reports and when alerts occur.

5. Why do you need a firewall when your router has packet filtering and NAT built-in?

With the spectacular growth of the Internet and online access, companies that do business on the Internet face greater security threats. Although packet filter and NAT restrict access to particular computers and networks, however, for the other companies this security may be insufficient, because packets filters typically cannot maintain session state. Thus, for greater security, a firewall is considered.

6. What is Denials of Service (DoS)attack?

Denial of Service (DoS) attacks are aimed at devices and networks with a connection to the Internet. Their goal is not to steal information, but to disable a device or network so users no longer have access to network resources.

There are four types of DoS attacks:

1. Those that exploits bugs in a TCP/IP implementation such as Ping of Death and Teardrop.
2. Those that exploits weaknesses in the TCP/IP specification such as SYN Flood and LAND Attacks.
3. Brute-force attacks that flood a network with useless data such as Smurf attack.
4. IP Spoofing

7. What is Ping of Death attack?

Ping of Death uses a 'PING' utility to create an IP packet that exceeds the maximum 65535 bytes of data allowed by the IP specification. The oversize packet is then sent to an unsuspecting system. Systems may crash, hang, or reboot.

8. What is Teardrop attack?

Teardrop attack exploits weakness in the reassemble of the IP packet fragments. As data is transmitted through a network, IP packets are often broken up into smaller chunks. Each fragment looks like the original packet except that it contains an offset field. The Teardrop program creates a series of IP fragments with overlapping offset fields. When these fragments are reassembled at the destination, some systems will crash, hang, or reboot.

9. What is SYN Flood attack?

SYN attack floods a targeted system with a series of SYN packets. Each packet causes the targeted system to issue a SYN-ACK response, While the targeted system waits for the ACK that follows the SYN-ACK, it queues up all outstanding SYN-ACK responses on what is known as a backlog queue. SYN-ACKs are moved off the queue only when an ACK comes back or when an internal timer (which is set a relatively long intervals) terminates the TCP three-way handshake. Once the queue is full , the system will ignore all incoming SYN requests, making the system unavailable for legitimate users.

10. What is LAND attack?

In a LAN attack, hackers flood SYN packets to the network with a spoofed source IP address of the targeted system. This makes it appear as if the host computer sent the packets to itself, making the system unavailable while the target system tries to respond to itself.

11 What is Brute-force attack?

A Brute-force attack, such as 'Smurf' attack, targets a feature in the IP specification known as directed or subnet broadcasting, to quickly flood the target network with useless data. A Smurf hacker flood a destination IP address of each packet is the broadcast address of the network, the router will broadcast the ICMP echo request packet to all hosts on the network. If there are numerous hosts, this will create a large amount of ICMP echo request packet, the resulting ICMP traffic will not only clog up the 'intermediary' network, but will also congest the network of the spoofed source IP address, known as the 'victim' network. This flood of broadcast traffic consumes all available bandwidth, making communications impossible.

12. What is IP Spoofing attack?

Many DoS attacks also use IP Spoofing as part of their attack. IP Spoofing may be used to break into systems, to hide the hacker's identity, or to magnify the effect of the DoS attack. IP Spoofing is a technique used to gain unauthorized access to computers by tricking a router or firewall into thinking that the communications are coming from within the trusted network. To engage in IP Spoofing, a hacker must modify the packet headers so that it appears that the packets originate from a trusted host and should be allowed through the router or firewall.

13. Why traffic redirect/static/policy route be blocked by P-334WH?

P-334WH is a secure gateway for all data passing between the Internet and the LAN. For some reasons (load balance or backup line), users may want traffic to be re-routed to another Internet access devices while still be protected by Prestige. In such case, the network topology is the most important issue. Here is a common example that people mis-deploy the LAN traffic redirect and static route.

The above figure indicates the "triangle route" topology. It works fine if you turn off firewall function on P-334WH box. By default, your connection will be blocked by firewall because of the following reason.

Step 1. Being the default gateway of PC, P-334WH will receive all "outgoing" traffic from PC.

Step 2. And because of Static route/Traffic Redirect/Policy Routing, P-334WH forwards the traffic to another gateway (ISDN/Router) which is in the same segment as P-334WH's LAN.

Step 3. However the return traffic won't go back to P-334WH, in stead, the "another gateway (ISDN/Router)" will send back the traffic to PC directly. Because the gateway (say, P201) and the PC are in the same segment.

By default, P-334WH will check the outgoing traffic by ACL and create dynamic sessions to allow return traffic to go back. To achieve Anti-DoS, P-334WH will send RST packets to the PC and the peer since it never receives the TCP SYN/ACK packet. Thus the connection will always be reset by P-334WH.

Solutions.

(A) Deploying your second gateway in IP alias segment is a better solution. In this way, your connection can be always under control of firewall. And thus there won't be Triangle Route problem.

(B) Deploying your second gateway on WAN side.

(C) To resolve this conflict, we add an option for users to allow/disallow such Triangle Route topology in both CI command and Web configurator . You can issue this command, "sys firewall ignore triangle all on" , to allow firewall bypass triangle route checking. In Web GUI, you can find this option in firewall setup page.

But we would like to notify that if you allow Triangle Route, any traffic will be easily injected into the protected network through the unprotected gateway. In fact, it's a security hole in protected your network.

1. When does the P-334WH generate the firewall log?

The P-334WH generates the log immediately when DOS attack is detected.

2. What is contained in P-334WH firewall log ?

By default, P-334WH pre-configures 4 ACLs, 1)LAN-to-WAN (SET1) 2)WAN-to-LAN (SET2) 3) LAN-to-LAN/P324 (SET7) 4) WAN-to-WAN/P324(SET8). Default policy of set 1 is "forward" and default policy of set 2 is "block".

There are three types including No Log, Log Forward, and Log All options which users can choose which packets to log via WEB Configurator. Both set 7 & 8 are invisible to the users. Default policy of set 7 is "forward" and default policy of set 8 is "block". The log mechanism of set 8 will follow the same configuration as that of set 2.

3. How do I view the firewall log?

The log keeps 128 entries, and the new entries will overwrite the old entries when the log has over 128 entries. The firewall log can be displayed via Web Configurator.

All logs generated in P-334WH, including firewall logs and system logs are migrated to centralized logs. So you can view firewall logs in Centralized logs.

Before you can view firewall logs, there are two steps you need to do,

1. Enable log function in Centralized logs setup via either one of the following methods,

- Web configuration: Maintenance/Logs/Log Settings, check Active Log and Alert options depending on your real situation.
- CI command: sys logs category [access | attack]

2. Enable log function in firewall default policy or in firewall rules.

After the above two steps, you can view firewall logs via

1. Web Configurator: Maintenance /Logs
2. View the log by CI command: sys logs disp

You can also view Centralized logs via mail or syslog, please configure mail server or Unix Syslog server in Maintenance /Logs/Log Settings.

4. When does the P334WH generate the firewall alert?

The P334WH generates the alert when an attack is detected by the firewall and sends it via Email. So, to send the alert you must configure the mail server and Email address using Web Configurator. You can also specify how frequently you want to receive the alert via Web Configurator.

5. What does the alert show to us?

The alert shown in the Email is actually the evens of the attack. So, the Reason column shows Attack and the attack type. Please see the example shown below.

`# Time Packet Information Reason Action` `127|Mar 15 0 |From:192.168.1.1 To:192.168.1.1 |`attack`|block` `| 03:04:54|ICMP type:00008 code:00000 |`land`|`

6. What is the difference between the log and alert?

A log entry is just added to the log inside the P-334WH and e-mailed together with all other log entries at the scheduled time as configured. An alert is e-mailed immediately after an attacked is detected.

All contents copyright (c) 2006 ZyXEL Communications Corporation.