Ubuntu 12.04でiptablesの設定方法
方法1
1.iptablesルールを保存
# sudo iptables-save > /etc/iptables.up.rules
2./etc/network/interfacesを修正
sudo echo “pre-up iptables-restore < /etc/iptables.up.rules" >> /etc/network/interfaces
方法2
sudo echo " pre-up iptables-restore < /etc/iptables.up.rules" >>/etc/network/interfaces
sudo echo “post-down iptables-restore < /etc/iptables.down.rules " >> /etc/net