1. 程式人生 > >Iptables防火墻配置

Iptables防火墻配置

dport -m nts enter 火墻 pop lis input net

Iptables防火墻配置
安裝防火墻
sudo apt-get install iptables
查看狀態
sudo iptables --list
技術分享

sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP
瀏覽器不能上網
技術分享

清除防火墻設置
Sudo iptables -F
Sudo iptables -D OUTPUT 1
5.sudo iptables -A INPUT -p tcp --dport 80 -m/state --state NEW,ESTABLISHED -j ACCEPT
技術分享


技術分享

6.iptables -A OUTPUT -p icmp -m state --state NEW,ESTABLISHED -j DROP


技術分享




Iptables防火墻配置