config: drop input traffic by default
[project/firewall4.git] / tests / 01_configuration / 01_ruleset
index c4fd5b48bdff32fe0bae205bdd5962619a26d590..43ed9dfac710686004bdebb9831866a94cf0337e 100644 (file)
@@ -107,7 +107,7 @@ table inet fw4 {
        #
 
        chain input {
-               type filter hook input priority filter; policy accept;
+               type filter hook input priority filter; policy drop;
 
                iifname "lo" accept comment "!fw4: Accept traffic from loopback"
 
@@ -115,6 +115,7 @@ table inet fw4 {
                tcp flags & (fin | syn | rst | ack) == syn jump syn_flood comment "!fw4: Rate limit TCP syn packets"
                iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic"
                iifname "pppoe-wan" jump input_wan comment "!fw4: Handle wan IPv4/IPv6 input traffic"
+               jump handle_reject
        }
 
        chain forward {