[Openswan Users] uproute in _updown script

Tuomo Soini tis at foobar.fi
Fri Feb 17 21:52:51 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco Berizzi wrote:
> 
> You are right.
> I'm using a couple of connections with left-rightsourceip=a.b.c.d.
> I've just noticed that when i shutdown osw it doesn't remove those
> two static route (openswan version 2.4.5rc4).
> 

It's a bug which should be fixed in 2.4.5rc5. This bug will only show up
if you use left=%defaultroute and you don't set leftnexthop=%defaultroute.

Problem is that when you have left=%defaultroute, nexthop parameter is
added to route delete command and so actual added route and deleted
route won't match so ip route del can't find route to delete. And this
error should be visible in your logs.

Reason for this is that nexthop defaults to %direct but there was magic
in scripts when left=%defaultroute that when routes are deleted,
leftnexthop was set to default gw and not %direct. This magic should not
be there on 2.4.5rc5.

- --
Tuomo Soini <tis at foobar.fi>
Linux and network services
+358 40 5240030
Foobar Oy <http://foobar.fi/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Foobar - http://enigmail.mozdev.org

iD8DBQFD9imTTlrZKzwul1ERAlA6AJ9dO00EYzYUZZ3EXAxaIatyqKc0XQCeO4Rj
4Rj5bDAXWZTfBPUKJkaHRmE=
=k6uz
-----END PGP SIGNATURE-----


More information about the Users mailing list