我直接套了个模板
```
root@v6:~# sudo nft list ruleset
table inet filter {
chain input {
type filter hook input priority filter; policy accept;
tcp dport { 22, 80, 443 } accept
iifname "lo" accept
icmp type echo-request counter packets 0 bytes 0 drop
icmpv6 type echo-request drop
icmpv6 type { nd-router-solicit, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert } accept
ct state established,related accept
counter packets 2 bytes 714 reject
}
chain forward {
type filter hook forward priority filter; policy accept;
}
chain output {
type filter hook output priority filter; policy accept;
}
}
root@v6:# systemctl restart nftables#
root@v6:
```
但是外网curl是不通的,浏览器访问也是直接显示 拒绝了连接,怎么办啊啊
0
10
10 条回复
排序