[vpnc-devel] Can I have two concurrent connections to two different sites?

Martin Emrich emme at emmes-world.de
Fri Jun 24 21:35:30 CEST 2005


Hi!

Am Freitag, 24. Juni 2005 20:14 schrieb Norbert Kiesel:

> vpnc works great for me.  Now I have two different remote sites I want
> to connect to.  I can connect to both of them, but once the first
> connection is up, vpnc-connect fails for the second one.

I use a similar setup (the second connection goes actually through the first 
one). The problem is that vpnc binds its UDP port to 0.0.0.0, meaning any 
network device. So the second instance cannot bind to the same port again.

To avoid this, I patched vpnc some time ago and added a --bindaddr 
<address-to-bind-to> option, but AFAIR it was not included in the release. 
But you might still find it in the list archives.

Of course, you then have to take care of the routes yourself, AFAIK the 
vpnc-connect scripts are not designed for two concurrent connections (hence 
the pid-file conflict).

Ciao

Martin


More information about the vpnc-devel mailing list