From: Greg Price Date: Tue, 8 Jul 2008 02:44:05 +0000 (-0400) Subject: iptables forward for sx-blade-2 VNC X-Git-Tag: sipb-xen-www/3.6~14 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/951f7df4a26ea47232121d8d516fc3ccec61a9ba iptables forward for sx-blade-2 VNC svn path=/trunk/packages/sipb-xen-iptables/; revision=668 --- diff --git a/code/iptables.rules b/code/iptables.rules new file mode 100644 index 0000000..b14516d --- /dev/null +++ b/code/iptables.rules @@ -0,0 +1,20 @@ +# Generated by iptables-save v1.3.6 on Mon Oct 8 01:59:16 2007 +*filter +:INPUT ACCEPT [366:44912] +:FORWARD ACCEPT [0:0] +:OUTPUT ACCEPT [292:53151] +-A FORWARD -d 18.181.0.60 -i eth0 -o eth0 -p tcp -m tcp --dport 10003 -j ACCEPT +-A FORWARD -d 18.181.0.165 -i eth0 -o eth0 -p tcp -m tcp --dport 10003 -j ACCEPT +COMMIT +# Completed on Mon Oct 8 01:59:16 2007 +# Generated by iptables-save v1.3.6 on Mon Oct 8 01:59:16 2007 +*nat +:PREROUTING ACCEPT [5:300] +:POSTROUTING ACCEPT [8:674] +:OUTPUT ACCEPT [8:674] +-A PREROUTING -s ! 18.181.0.60 -i eth0 -p tcp -m tcp --dport 10003 -j DNAT --to-destination 18.181.0.60:10003 +-A POSTROUTING -d 18.181.0.60 -o eth0 -p tcp -m tcp --dport 10003 -j SNAT --to-source 18.181.0.62 +-A PREROUTING -s ! 18.181.0.165 -i eth0 -p tcp -m tcp --dport 10004 -j DNAT --to-destination 18.181.0.165:10003 +-A POSTROUTING -d 18.181.0.165 -o eth0 -p tcp -m tcp --dport 10003 -j SNAT --to-source 18.181.0.62 +COMMIT +# Completed on Mon Oct 8 01:59:16 2007