用iptables過濾防火牆TCP包

在終端中運行以下命令
iptables -A INPUT -p tcp --tcp-flags RST RST -j DROP
service iptables save 
第一條命令是忽略RST包
第二條是保存iptables


啓動及關閉iptables  
 設置iptables開機啓動
  chkconfig iptables on
  chkconfig iptables off
  即時啓動iptables
  service iptables start
  即時關閉iptables
  service iptables stop


iptables -I INPUT -p tcp --tcp-flags ACK,RST,URG,PSH RST -j DROP
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章