
ptables是一个linux的基础组件,主要应用于防火墙应用,例如禁止某IP访问,或者禁止一些端口,提升网站的安全性。一般情况下,系统默认就会安装,如果没有安装,可自行安装:
yum install iptables #centos系统
apt-get install iptables #debian/ubuntu系统
一、先说一下几个常用命令:
service iptables -status #查看iptables是否运行
iptables -F #大写F,清空当前所有规则
...