blob: db2b33a05c0fc3416971f74f0bd95d498d64281e [file] [log] [blame]
Michael Still9e814212013-12-25 11:19:28 +11001ip netns add nonet
2ip link add veth0 type veth peer name veth1
3ifconfig veth0 172.16.0.1/24 up
4ip link set veth1 netns nonet
5ip netns exec nonet ifconfig veth1 172.16.0.2/24 up
6/sbin/iptables -A INPUT -p tcp --dport 3306 -i eth0 -j DROP
7/sbin/iptables -A INPUT -p tcp --dport 3306 -i eth1 -j DROP