LWN.net Logo

Cisco Set to Dominate Linux Market? (InternetNews)

Cisco Set to Dominate Linux Market? (InternetNews)

Posted Apr 13, 2008 15:18 UTC (Sun) by jengelh (subscriber, #33263)
In reply to: Cisco Set to Dominate Linux Market? (InternetNews) by simlo
Parent article: Cisco Set to Dominate Linux Market? (InternetNews)

They could do that using
ip rule add table 1
ip route add default via tun0 table 1

I think that should send everything to the tun0, with the exception of local (127.0.0.1 and <your ethX addresses>) traffic (you want that to not go through the tunnel). Of course there is no guarantee that table 1 is free, but it is not unreasonable for a userspace daemon to demand so. Especially since user-specific policy routing rules are usually added at the end (i.e. rule #32765, #32764, ... downwards).


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds