@ TO:
Mit einem "nft list ruleset" kannst du dir den aktuellen Zustand
deiner nft Firewall ja mal anzeigen lassen.
Bleibt zu hoffen, dass die Default Policies der weiter nicht
benutzten Firewall auch auf ACCEPT stehen.
Ich bin ganz unfreiwillig :) auch nftables Benutzer geworden.
Die Kostprobe eines "nft -a list ruleset":
table inet fw4 { # handle 1
chain input { # handle 1
type filter hook input priority filter; policy drop;
iifname "lo" accept comment "!fw4: Accept traffic from loopback" # handle 70
ct state established,related accept comment "!fw4: Allow inbound established and related flows" # handle 71
tcp flags syn / fin,syn,rst,ack jump syn_flood comment "!fw4: Rate limit TCP syn packets" # handle 72
iifname "br-lan" jump input_lan comment "!fw4: Handle lan IPv4/IPv6 input traffic" # handle 73
jump handle_reject # handle 74
}
chain forward { # handle 2
type filter hook forward priority filter; policy drop;
ct state established,related accept comment "!fw4: Allow forwarded established and related flows" # handle 75
iifname "br-lan" jump forward_lan comment "!fw4: Handle lan IPv4/IPv6 forward traffic" # handle 76
jump handle_reject # handle 77
}
chain output { # handle 3
type filter hook output priority filter; policy accept;
oifname "lo" accept comment "!fw4: Accept traffic towards loopback" # handle 78
ct state established,related accept comment "!fw4: Allow outbound established and related flows" # handle 79
oifname "br-lan" jump output_lan comment "!fw4: Handle lan IPv4/IPv6 output traffic" # handle 80
}
chain prerouting { # handle 4
type filter hook prerouting priority filter; policy accept;
iifname "br-lan" jump helper_lan comment "!fw4: Handle lan IPv4/IPv6 helper assignment" # handle 81
}
chain handle_reject { # handle 5
meta l4proto tcp reject with tcp reset comment "!fw4: Reject TCP traffic" # handle 82
reject comment "!fw4: Reject any other traffic" # handle 83
}
chain syn_flood { # handle 6
limit rate 25/second burst 50 packets return comment "!fw4: Accept SYN packets below rate-limit" # handle 84
drop comment "!fw4: Drop excess packets" # handle 85
}
chain input_lan { # handle 7
jump accept_from_lan # handle 86
}
chain output_lan { # handle 8
jump accept_to_lan # handle 87
}
chain forward_lan { # handle 9
jump accept_to_wan comment "!fw4: Accept lan to wan forwarding" # handle 88
jump accept_to_lan # handle 89
}
chain helper_lan { # handle 10
}
chain accept_from_lan { # handle 11
iifname "br-lan" counter packets 158 bytes 15410 accept comment "!fw4: accept lan IPv4/IPv6 traffic" # handle 90
}
chain accept_to_lan { # handle 12
oifname "br-lan" counter packets 124 bytes 19424 accept comment "!fw4: accept lan IPv4/IPv6 traffic" # handle 91
}
chain input_wan { # handle 13
meta nfproto ipv4 udp dport 68 counter packets 0 bytes 0 accept comment "!fw4: Allow-DHCP-Renew" # handle 92
icmp type echo-request counter packets 0 bytes 0 accept comment "!fw4: Allow-Ping" # handle 93
meta nfproto ipv4 meta l4proto igmp counter packets 0 bytes 0 accept comment "!fw4: Allow-IGMP" # handle 94
meta nfproto ipv6 udp dport 546 counter packets 0 bytes 0 accept comment "!fw4: Allow-DHCPv6" # handle 95
ip6 saddr fe80::/10 icmpv6 type . icmpv6 code { mld-listener-query . no-route, mld-listener-report . no-route, mld-listener-done . no-route, mld2-listener-report . no-route } counter packets 0 bytes 0 accept comment "!fw4: Allow-MLD" # handle 96
icmpv6 type { destination-unreachable, time-exceeded, echo-request, echo-reply, nd-router-solicit, nd-router-advert } limit rate 1000/second counter packets 0 bytes 0 accept comment "!fw4: Allow-ICMPv6-Input" # handle 97
icmpv6 type . icmpv6 code { packet-too-big . no-route, parameter-problem . no-route, nd-neighbor-solicit . no-route, nd-neighbor-advert . no-route, parameter-problem . admin-prohibited } limit rate 1000/second counter packets 0 bytes 0 accept comment "!fw4: Allow-ICMPv6-Input" # handle 98
jump reject_from_wan # handle 99
}
chain output_wan { # handle 14
jump accept_to_wan # handle 100
}
chain forward_wan { # handle 15
icmpv6 type { destination-unreachable, time-exceeded, echo-request, echo-reply } limit rate 1000/second counter packets 0 bytes 0 accept comment "!fw4: Allow-ICMPv6-Forward" # handle 101
icmpv6 type . icmpv6 code { packet-too-big . no-route, parameter-problem . no-route, parameter-problem . admin-prohibited } limit rate 1000/second counter packets 0 bytes 0 accept comment "!fw4: Allow-ICMPv6-Forward" # handle 102
meta l4proto esp counter packets 0 bytes 0 jump accept_to_lan comment "!fw4: Allow-IPSec-ESP" # handle 103
udp dport 500 counter packets 0 bytes 0 jump accept_to_lan comment "!fw4: Allow-ISAKMP" # handle 104
jump reject_to_wan # handle 105
}
chain accept_to_wan { # handle 16
}
chain reject_from_wan { # handle 17
}
chain reject_to_wan { # handle 18
}
chain dstnat { # handle 19
type nat hook prerouting priority dstnat; policy accept;
}
chain srcnat { # handle 20
type nat hook postrouting priority srcnat; policy accept;
}
chain srcnat_wan { # handle 21
meta nfproto ipv4 masquerade comment "!fw4: Masquerade IPv4 wan traffic" # handle 106
}
chain raw_prerouting { # handle 22
type filter hook prerouting priority raw; policy accept;
}
chain raw_output { # handle 23
type filter hook output priority raw; policy accept;
}
chain mangle_prerouting { # handle 24
type filter hook prerouting priority mangle; policy accept;
}
chain mangle_postrouting { # handle 25
type filter hook postrouting priority mangle; policy accept;
}
chain mangle_input { # handle 26
type filter hook input priority mangle; policy accept;
}
chain mangle_output { # handle 27
type route hook output priority mangle; policy accept;
}
chain mangle_forward { # handle 28
type filter hook forward priority mangle; policy accept;
}
}