forward statefull
This commit is contained in:
parent
0b2d669ce8
commit
a3f13ff8da
1 changed files with 4 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ table inet filter {
|
||||||
|
|
||||||
iif lo accept comment "Accept any localhost traffic"
|
iif lo accept comment "Accept any localhost traffic"
|
||||||
ct state invalid drop comment "Drop invalid connections"
|
ct state invalid drop comment "Drop invalid connections"
|
||||||
ct state established,related accept comment "Accept traffic originated from us"
|
ct state established,related accept comment "Accept established (statefull)"
|
||||||
|
|
||||||
ip6 nexthdr icmpv6 accept comment "Accept ICMPv6"
|
ip6 nexthdr icmpv6 accept comment "Accept ICMPv6"
|
||||||
ip protocol icmp accept comment "Accept ICMP"
|
ip protocol icmp accept comment "Accept ICMP"
|
||||||
|
|
@ -45,6 +45,9 @@ table inet filter {
|
||||||
type filter hook forward priority 0;
|
type filter hook forward priority 0;
|
||||||
policy {{ firewall.policies.forward }};
|
policy {{ firewall.policies.forward }};
|
||||||
|
|
||||||
|
ct state invalid drop comment "Drop invalid connections"
|
||||||
|
ct state established,related accept comment "Accept established (statefull)"
|
||||||
|
|
||||||
{{ nftchain('forward') }}
|
{{ nftchain('forward') }}
|
||||||
|
|
||||||
counter comment "Count dropped"
|
counter comment "Count dropped"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue