[wellylug] Routing problem

michael at diaspora.gen.nz michael at diaspora.gen.nz
Thu Jan 19 12:44:55 NZDT 2006


>For consistancy's sake, I would like to the default gateway to be the 
>10.129.128.1, but how do I also get a 'second default gateway' or at 
>least an intelligent route to the outside world?

Well, you could try this:

    sudo ip route del to default
    sudo ip route add to 10.0.0.0/8 via 10.129.128.1
    sudo ip route add to default via 10.129.128.3

In other words, traffic for network 10 goes via the internal router,
traffic for the net goes via the IPCop system.

A 'second default gateway' isn't going to be possible, I'm afraid.

I believe you could try using iptables NAT rules to ensure that ssh
streams from 10.129.128.3 go back there, using tags or something like
that, but I don't know how to do that.

    -- michael.




More information about the wellylug mailing list