Problem with re-directing from to sources to one server

Richmond Dyes rdyes at
Thu Dec 7 18:14:57 GMT 2006

I have a server that I have to reach from 2 different networks, the
Internet and another private network called downtown and I also have to
reach from the server both networks.  If I have one of the set of rules
running, it works fine, but if I put both set of rules on, it doesn't
work.  below are my set of rules.  Can anyone tell me a how this can be

Here is the setup.
eth0 my network interface
eth1 interface to downtown which on that network's side
routes to
eth2 publicIP to the internet
publicnetwork.100 is the virtual address on eth2 called eth2:100 is the private ip address of the server I want reached is the virtual ip address on eth1 called eth1:10

$IPT -t nat -A PREROUTING -d publicnetwork.100 -j DNAT --to-destination
$IPT -t nat -A POSTROUTING -s -j SNAT --to-source

$IPT -t nat -A PREROUTING -d  -j DNAT --to-destination
$IPT -t nat -A POSTROUTING -s -j SNAT --to-source

Then I forward all my  ip requests to  downtown

$IPT -A FORWARD -m state --state NEW -i eth0 -s  -o eth1
-d  -j ACCEPT

Then I forward ip requests from downtown for the server to it.
$IPT -A FORWARD -i eth1 -s -d -m state --state

Then I forward ip request from the internet to the server.
$IPT -A FORWARD -i eth2 -s 0/0 -o eth0 -d -m state --state
NEW -m multiport -p tcp  --dport 22,80,1352 -j ACCEPT

Again when I have both set of rules on, it does not work.  any ideas?

More information about the rsync mailing list