2021-05-31 11:14:16 +00:00
|
|
|
#!/usr/sbin/nft -f
|
|
|
|
|
|
|
|
flush ruleset
|
|
|
|
|
|
|
|
table inet filter {
|
2021-06-14 16:14:14 +02:00
|
|
|
chain input {
|
|
|
|
type filter hook input priority 0;
|
|
|
|
}
|
|
|
|
chain forward {
|
|
|
|
type filter hook forward priority 0; policy accept
|
2021-06-15 11:52:48 +02:00
|
|
|
ip daddr 172.17.0.0/30 tcp dport { 80 } accept;
|
|
|
|
tcp dport { 0-65535 } reject;
|
|
|
|
udp dport { 0-65535 } reject;
|
2021-06-14 16:14:14 +02:00
|
|
|
accept
|
|
|
|
}
|
|
|
|
chain output {
|
|
|
|
type filter hook output priority 0;
|
|
|
|
}
|
2021-05-31 11:14:16 +00:00
|
|
|
}
|