Skip to contentSkip to conversation

feature request: demand connection

Openvpn-devel Ulf Dambacher 1 participant 1 message Dec 18, 2005

lore
Share & tools
lore
#0 lore raw

Hi

I need a feature "connection on demand" including a "callback" script for a tls-client.
why? I want to connect two servers via internet and establish a tunnel. Both servers use ADSL to connect to the internet on demand.
Now if one server wants to connect to the other, he has to inititate a callback (in my case call the other via ISDN/capiutils wich in tune connects to the internet)
After this, the openvpn connection will run as normal.

With the --demand feature set, the client should set up its devices and routes as to the config file like normal, but should not connect to the host named in --remote until the first packet has to be transmitted.
Using the --callback feature, openvpn should call a script or plugin before initiating the --remote connection. This script or plugin can then start a dialup link or do some other things to get a connection to the --remote host.

I looked at the sources to do this myself, but hacking is hard to start. Can you help me on where to look?

bye
Ulf