1.写死ip地址
auto eth0
iface eth0 inet static
address 10.32.10.235
netmask 255.255.252.0
gateway 10.32.8.1
2.开放端口并保存
iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables-save > /etc/iptables/ipt_save.def
1.写死ip地址
auto eth0
iface eth0 inet static
address 10.32.10.235
netmask 255.255.252.0
gateway 10.32.8.1
2.开放端口并保存
iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables-save > /etc/iptables/ipt_save.def