Firewall

From UntangleWiki

Jump to: navigation, search

Untangle Server User's Guide

Contents

About Firewall

Firewall provides traditional firewall functionality, blocking traffic based on rules. However, the Firewall can both monitor and block traffic. Rules are based on a combination of the following:

For more information, go to Blocking or Passing Network Traffic by Protocol and Port.


About Port Scanning

Because of the way many port scanners work, a port scan of the Untangle Server's Firewall yields deceptive results, making many ports appear to be open when they aren't. This is the Attack Blocker doing its job. To protect the Untangle Virtual Machine, this feature is running even when Attack Blocker is turned off.

Once the scanning computer gets a bad reputation, Attack Blocker starts requiring the scanner to ack the first syn before letting it connect to prevent syn floods. The effect makes ports appear open that are not.

To see the real open port list, turn the scan speed down to very slow.

Top

Protecting Your Network by Securing Ports

Computers and routers use numbered connections—ports, to differentiate one type of network traffic from another. For data to pass to or from the Internet, there must be an open port for that traffic on your Untangle Server.

For usability, the Untangle Server's Firewall ships with all ports open. However, unlike other firewalls, the Untangle Server provides robust Software Products to protect your network when ports are open. Moreover, when the Untangle Server is your router, it is usually performing NAT, and NAT protects you from most threats. When the Untangle Server is a bridge, the Untangle Server is already behind a firewall, and a firewall protects you from most threats.

To protect your network choose one of two approaches:

Approach How
Start with all ports open, then secure ports.
  1. Ensure that all ports are open. Untangle Server opens all ports by default. Go to Opening All Ports on Untangle Server.
  2. Protect the ports that are open:
Start with all ports closed, then open ports.
  1. Close all ports. Go to Closing All Ports on Untangle Server.
  2. Open the ports that your company needs to use. Common ports include 80, 25, 21, and 110. Go to Blocking or Passing Network Traffic by Protocol and Port.


Top

Opening All Ports on Untangle Server

As outlined in Protecting Your Network by Securing Ports, you might want to protect your network by opening all ports, then closing specific ports that your company does not use. For usability, the Untangle Server's Firewall ships with all ports open.

To open all ports:

  1. From Firewall, click the Show Settings button.
  2. Click the General Settings tab.
  3. Select the Pass radio button, and click the Save Settings button.

Next Step: To close specific ports, go to Blocking or Passing Network Traffic by Protocol and Port.

Top

Closing All Ports on Untangle Server

As outlined in Protecting Your Network by Securing Ports, you might want to protect your network by closing all ports, then opening specific ports that your company uses.

To close all ports:

  1. From Firewall, click the Show Settings button.
  2. Click the General Settings tab.
  3. Select the Block radio button, and click the Save Settings button.

Next Step: To open specific ports, go to Blocking or Passing Network Traffic by Protocol and Port.

Top

Blocking or Passing Network Traffic by Protocol and Port

Firewall matches the connection to each rule based on the rule's criteria, which consists of the protocol (traffic type), as well as client and server interfaces, and source and destination addresses and ports. See the table below for detail values.

To block or pass network traffic:

Before You Begin:

  1. From Firewall, click the Show Settings button.
  2. Click the Rule List tab. The Rule List is an ordered list of rules. The relative order of the rules can be determined by observing the # column. Firewall evaluates its rules in the order that they are listed.
  3. Do one of the following:
    • Choose to modify one of the default rules.
    • (Recommended) Click the plus (add) button to create a new rule.
  4. In the table row for the rule, select or clear the enable rule check box.
  5. In the action drop-down list, select either block or pass.
  6. (Optional) If you want to log this type of traffic in the Event Logs or Untangle Reports, select the log check box.
  7. Specify the criteria:
  8. traffic type The traffic type criteria selects the protocol to be matched. Valid values are TCP, UDP, both TCP & UDP, or any.
    client interface The client's interface. The client is the host that initiates the request. Your choices are any (all), External, DMZ, VPN, Internal, Less Trusted or More Trusted Interfaces.

    If one of your interfaces doesn't appear in the list, go to Adding Network Cards or Testing Internet Connection.

    server interface The server's interface. The server is the host that services the request. Your choices are any (all), External, DMZ, VPN, Internal, Less Trusted or More Trusted Interfaces.

    If one of your interfaces doesn't appear in the list, go to Adding Network Cards or Testing Internet Connection.

    source address The IP address of the host which initiated the connection. Addresses are specified in IP Matcher format, which can be simple addresses, address ranges (address-address), or subnets with CIDR (address/subnet) notation.
    destination address The IP address of the host which received the connect request. Addresses are specified in IP Matcher format, which can be simple addresses, address ranges (address-address), or subnets with CIDR (address/subnet) notation.
    source port The port of the connection source. Valid values are in Port Matcher format.
    destination port The port of the connection destination. Valid values are in Port Matcher format.
  9. (Optional) Change the order in which Firewall evaluates its rules by editing the number in the # text box.
  10. (Optional) If you know what the significance of the Category property is, please update the wiki here. ;)

Top


Example: Blocking FTP Traffic on Port 21

The following example shows an Untangle Server that has all ports open, but blocks FTP traffic for inbound traffic on port 21. One might create such a rule to prevent employees from downloading files from the Internet.

Note: Although you can use the Firewall to achieve your goal, consider using the Protocol Control. Protocol Control does not require that you know the ports on which applications communicate. Moreover, you don't need to create a rule. You need only select one check box to achieve your goal. Of course, for those that are used to a traditional firewall, Untangle's Firewall offers the typical features, including port blocking.

Figure, Blocking File Downloads
Figure, Blocking File Downloads

Top

About Firewall Event Logs

Use the following terms and definitions to understand Firewall Event Log:

timestamp The time the event took place.
action The action that was taken on the traffic. Valid values are block and pass.
client The client IP address of the traffic.
reason for action The rule that was applied to the traffic.
server The intended server IP address of the traffic.

Top

Firewall FAQs

Personal tools