# Generated by iptables-save v1.4.21 on Mon Nov 16 21:47:12 2015 *filter :INPUT DROP [80:4800] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [14:1580] #-A INPUT -t tcp -m tcp --dport 80 -m state --state NEW -j ACCEPT #-A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 81 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 82 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8082 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT -A INPUT -p tcp -m state --state NEW -m tcp --dport 8000 -j ACCEPT -A FORWARD -d 10.b.b.b -p tcp --dport 3306 -j ACCEPT #-A FORWARD -d 10.A.A.A -p tcp --dport 3306 -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -i lo -j ACCEPT COMMIT *nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A POSTROUTING -d 10.A.A.A/255.255.255.255 -o eth0 -j MASQUERADE -A PREROUTING -d 10.b.b.b -p tcp --dport 8082 -j DNAT --to 10.A.A.A:3306 COMMIT # Completed on Mon Nov 16 21:47:12 2015