ruleset: reorder declarations & output tweaks
[project/firewall4.git] / tests / 03_rules / 01_direction
index 7c6dd600aeae23978b3815e50597ff5d870a30b2..7751a2328839073ad92245f0268e5a0950341b4e 100644 (file)
@@ -50,11 +50,6 @@ table inet fw4
 flush table inet fw4
 
 table inet fw4 {
-       #
-       # Set definitions
-       #
-
-
        #
        # Defines
        #
@@ -97,6 +92,10 @@ table inet fw4 {
                counter comment "!fw4: @rule[2]"
        }
 
+       chain prerouting {
+               type filter hook prerouting priority filter; policy accept;
+       }
+
        chain handle_reject {
                meta l4proto tcp reject with tcp reset comment "!fw4: Reject TCP traffic"
                reject with icmpx type port-unreachable comment "!fw4: Reject any other traffic"
@@ -117,7 +116,7 @@ table inet fw4 {
 
 
        #
-       # Raw rules (notrack & helper)
+       # Raw rules (notrack)
        #
 
        chain raw_prerouting {
@@ -146,7 +145,7 @@ table inet fw4 {
        }
 
        chain mangle_output {
-               type filter hook output priority mangle; policy accept;
+               type route hook output priority mangle; policy accept;
        }
 
        chain mangle_forward {