From effc3f6e4a01710845984c629348cea56209b28c Mon Sep 17 00:00:00 2001 From: Greg Price Date: Mon, 7 Jul 2008 22:51:58 -0400 Subject: [PATCH] reformat iptables.rules a bit svn path=/trunk/packages/sipb-xen-iptables/; revision=669 --- code/iptables.rules | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/code/iptables.rules b/code/iptables.rules index b14516d..7587a89 100644 --- a/code/iptables.rules +++ b/code/iptables.rules @@ -1,20 +1,17 @@ -# 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.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 + +*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 -- 1.7.9.5