iptables簡記

一直使用system-config-firewall來管理linux下的防火牆功能,但iptables一直不懂。這裏記錄一下使用的腳本:linux

iptables -I INPUT 7 -p tcp -m state --state NEW -m tcp --dport 12345 -j ACCEPT

另外能夠直接編輯/etc/sysconfig/iptables文件來管理,語法差很少。tcp

相關文章
相關標籤/搜索