[Openswan dev] Re: Openswan 2.4.0dr9 multiple defaultroute patch

David McCullough davidm at snapgear.com
Tue Aug 16 10:20:26 CEST 2005


Jivin mcr at xelerance.com lays it down ...
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> 
> >>>>> "Dirk" == Dirk Nehring <dnehring at marcant.net> writes:
>     Dirk> _startklips to compute the default route. Is this necessary
>     Dirk> under Linux 2.6? Perhaps this issue should be fixed be 2.4.0
>     Dirk> is released.
> 
>   if you are running KLIPS on 2.6, you'll need the same thing.
>   This calculation will eventually move into pluto. 
> 
>   How about, instead:
> 
> defaultinterface() {
> 	phys=`netstat -nr |
> 		awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $NF; exit }'`
> 
>   which just prints the first one.

Just for reference, we have been using the first entry for a few years now
without problems, all of our gear has multiple default routes,

Cheers,
Davidm

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com


More information about the Dev mailing list