[clug] Routing disconnect

Doug Palmer Doug.Palmer at csiro.au
Thu Jan 22 23:54:48 GMT 2004


On Fri, 2004-01-23 at 10:42, Doug Palmer wrote:
> On Fri, 2004-01-23 at 10:36, Duncan Roe wrote:
> > Iptables is aware of connections, even UTP(!)
> 
> Can I get iptables to change the outgoing interface? I'd need to change
> outgoing packets routed to ppp0 over to eth0 for those connections.
> Otherwise, the packet won't return on the same route that it came and
> the firewalls will get all unhappy.

I think I've found a way, using iptables and iproute2, described in 
<http://www.linuxguruz.com/iptables/howto/2.4routing-11.html> Basically,
use iptables to mark the packet prerouting and then iproute2 to reroute
the marked packet.

Eep. It's a bit scary, so I'll report back on how I got on.



More information about the linux mailing list