iptables規則的添加刪除

添加

iptables -A OUTPUT -p tcp --dport 110 -j DROP

刪除

iptables -L ONPUT --line-numbers

iptables -D INPUT 1

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
DROP       tcp  --  anywhere             anywhere            tcp dpt:pop3 


Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         


Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章