PfSense 开放端口以连接互联网

PfSense 开放端口以连接互联网

我从 Ubuntu 切换到 pfsense。哪些端口以及如何打开互联网才能工作?如果我这样做any(最后一条规则有效)但这不是我想要的。我只想打开(53,80,443)

普福斯 在此处输入图片描述

Ubuntu iptables 我在 ubuntu 上打开了这些端口,互联网正常运行(80,53,443)

-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -m limit --limit 25/min --limit-burst 100 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

答案1

我的错。我把源端口改成了目标端口。现在一切正常了。

相关内容