Domain-based routing

zakmck

Registered
Hi all, I'm experimenting with ssh -w option to setup a VPN bridge between my laptop at home and a gateway in my organisation's LAN. I've done it all, but I'm stuck on the routing. I would like to forward through the VPN interface only those IPs belonging to the LAN, and use the traditional eth0 for the rest. The problem is the network is really complex, there are a lot of IPs, which are continuously changing, so defining a static routing is quite impractical (not even sure someone has a single list of all the IPs).

It would be much simpler if I could say something like "route add -net *.mycompany.com 10.0.0.1", i.e.: do reverse lookup for any IP and send it to the VPN if it is under the target domain.

Is that somehow possible? The client is a Leopard OS/X and the gateway is a Debian Linux.

Thanks in advance for any help
 
Back
Top