Hi,
I want to make this short. So the situation is:
A gateway Linux box with 3 interfaces.
1 to a DSL link (Default route)
2 to a ISDN link
3 LAN
A web server on the LAN. Its default route is via the above
gateway server.
I want to serve web pages from the web server via the ISDN link
and keep the default route via the DSL.
I have used these rules:
/sbin/iptables -t nat -A PREROUTING -i $IFWW2 -p tcp -d
$IPWW2 --dport 80 -j DNAT --to $IPWEBSRV:80
/sbin/iptables -t nat -A POSTROUTING -o $IFMYNET -p tcp -d
$IPWEBSRV --dport 80 -j SNAT --to $IPMYNET
The problem is, that the request packet comes in correctly via
the ISDN link.
Then it's re-written to the web server on the LAN
The web server responds and the packet goes back into the LAN
interface.
It is de-SNAT'd,
but then goes out of the DSL interface instead of the ISDN
interface.
What do I need to do to get the return packet to go out on the
correct interface?
Is there a PREROUTING SNAT rule?
What exactly does MANGLE do?
Any suggestions?
Regards
Bernhard
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug