安装iptables
Ubuntu:
sudo apt-get update
sudo apt-get install iptables
Centos:
sudo yum install iptables
开启:service iptables start
关闭:service iptables stop
dpkg -l | grep iptables --查看iptables 是否安装
Ubuntu:
sudo apt-get update
sudo apt-get install iptables
Centos:
sudo yum install iptables
开启:service iptables start
关闭:service iptables stop
dpkg -l | grep iptables --查看iptables 是否安装