Firewallrule

From Wiki of WFilter NG Firewall
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 12: Line 12:
 
** "Inbound", packet targets to the NGF device.
 
** "Inbound", packet targets to the NGF device.
 
** "Forward", packet being forwarded.
 
** "Forward", packet being forwarded.
* '''Source IP''': packet source ip address. You can define IP as "Any", "Single" and "Range".  
+
* '''Source''': packet source. You can define IP as "Any", "Single", "Range" and "Customize".  
 
** For "Single", a single ip or subnet is allowed(for example: 192.168.1.10 or 192.168.1.0/24).  
 
** For "Single", a single ip or subnet is allowed(for example: 192.168.1.10 or 192.168.1.0/24).  
 
** For "Range", you need to input an ip range.
 
** For "Range", you need to input an ip range.
* '''Target IP''': packet target ip address, same syntax as the "Source IP".
+
* '''Target''': packet target, can be "Any", "Single", "Range" and "Customize".
 +
* '''Source Port''': packet source port, can be a single port or a port range,
 
* '''Target Port''': packet target port, can be a single port or a port range, Syntax:
 
* '''Target Port''': packet target port, can be a single port or a port range, Syntax:
 
** One port: 8000
 
** One port: 8000
Line 21: Line 22:
 
** Multiple ports: 80 8000
 
** Multiple ports: 80 8000
 
** Port and ranges: 80 8000:9000
 
** Port and ranges: 80 8000:9000
 +
** Empty matches all ports
 
* '''Protocol'''
 
* '''Protocol'''
 
** All: means all protocols, including TCP, UDP, ICMP and other IP protocols.
 
** All: means all protocols, including TCP, UDP, ICMP and other IP protocols.
Line 29: Line 31:
 
** "Allow": allow packet
 
** "Allow": allow packet
 
* You may use '''time''', '''from-to''' and '''effective on''' to define a time period for this rule to be applied.
 
* You may use '''time''', '''from-to''' and '''effective on''' to define a time period for this rule to be applied.
 +
 +
== Customize IP ==
 +
 +
Upon "Customize", you can block ip, subnets, countries and regions, domains and domain categories. For domains, WFilter will add dns replied ip addresses into the deny/allow list.
 +
 +
[[File: ros_firewall_dstip01.png|650px]]
 +
 +
[[File: ros_firewall_dstip02.png|650px]]
 +
 +
[[File: ros_firewall_dstip03.png|650px]]
 +
 +
[[File: ros_firewall_dstip04.png|650px]]
 +
 +
IP, subnet or domain per line, for example:
 +
 +
192.168.1.1
 +
 +
192.168.1.0/24
 +
 +
*.imfirewall.com
 +
 +
[[File: ros_firewall_dstip05.png|650px]]
  
 
== Processing Order for Rules ==
 
== Processing Order for Rules ==
Line 38: Line 62:
  
 
== Advanced Settings ==
 
== Advanced Settings ==
Some advanced options, recommended to enable.
 
  
* '''Drop Invalid Packets'''.
+
In "Advanced Settings", you can setup default policies for ZONEs. Two Zones(LAN and WAN) are supported in default.
* '''SYN Flood Protection''': Kind of DDos attack.
+
 
* '''Allow Ping on WAN Interfaces''': Allow ICMP ping to the WAN interface from external network.
+
[[File: Firewall_advanced_en.png|600px]]
  
[[File: Firewall_advanced_en.jpg|400px]]
+
[[File: Firewall_advanced_en02.png|600px]]
  
 
[[Category:Firewall]]
 
[[Category:Firewall]]

Latest revision as of 17:01, 20 January 2022


"Firewall Rules" block or allow traffic based on IP and ports. If you need "URL filter", "application control" and so on, you need to check modules in "Access Policy".

Contents

[edit] 1 New Rule

Firewall set en.png

New a firewall rule, descriptions:

  • Interface: "LAN" or "WAN". WAN interface is invalid in bridge mode.
  • Type: packet direction.
    • "Inbound", packet targets to the NGF device.
    • "Forward", packet being forwarded.
  • Source: packet source. You can define IP as "Any", "Single", "Range" and "Customize".
    • For "Single", a single ip or subnet is allowed(for example: 192.168.1.10 or 192.168.1.0/24).
    • For "Range", you need to input an ip range.
  • Target: packet target, can be "Any", "Single", "Range" and "Customize".
  • Source Port: packet source port, can be a single port or a port range,
  • Target Port: packet target port, can be a single port or a port range, Syntax:
    • One port: 8000
    • A port range: 8000:9000
    • Multiple ports: 80 8000
    • Port and ranges: 80 8000:9000
    • Empty matches all ports
  • Protocol
    • All: means all protocols, including TCP, UDP, ICMP and other IP protocols.
    • TCP+UDP: both TCP and UDP.
  • Action:
    • "Reject": the rejected clients will get a RST packet immediately.
    • "Drop": packets will be dropped, the clients will wait for connection timeout.
    • "Allow": allow packet
  • You may use time, from-to and effective on to define a time period for this rule to be applied.

[edit] 2 Customize IP

Upon "Customize", you can block ip, subnets, countries and regions, domains and domain categories. For domains, WFilter will add dns replied ip addresses into the deny/allow list.

Ros firewall dstip01.png

Ros firewall dstip02.png

Ros firewall dstip03.png

Ros firewall dstip04.png

IP, subnet or domain per line, for example:

192.168.1.1

192.168.1.0/24

  • .imfirewall.com

Ros firewall dstip05.png

[edit] 3 Processing Order for Rules

Rules are always processed from the top of a list down, first match wins. Understanding this order is especially important. You may drag the re-order icon to re-order rules.

Ros firewall 01.png

[edit] 4 Advanced Settings

In "Advanced Settings", you can setup default policies for ZONEs. Two Zones(LAN and WAN) are supported in default.

Firewall advanced en.png

Firewall advanced en02.png

Personal tools
Namespaces

Variants
Actions
Navigation
Tools