iptables

1. 清除規則

    iptables -F 


2. 查看規則

    iptables -nvL


3 查看規則ID

    iptables -nL --line-number


4. 追加規則

    Chain INPUT區域

    iptables -I INPUT 3  -s 1.1.1.1 -d 2.2.2.2 -p tcp --sport 100 --dport 200 -j ACCEPT/DROP


5. 插入規則

    Chain INPUT區域

    iptables -I INPUT 3  -s 1.1.1.1 -d 2.2.2.2 -p tcp --sport 100 --dport 200 -j ACCEPT/DROP

    Chain IN_public_allow區域

     firewall-cmd --zone=public --add-port=8088/tcp --permanent

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