Hi there,
i recently tried to set up OpenVPN to create a bond with 2 DSL lines but i stumbled on some difficulties.
The bond0 Interface relays on information from the device, wether it's op or down.
With the keepalive setting, my tunnel will try to reconnect, as soon as the connection breaks for some reason.
Unfortunatly in the meantime the tap device still has status up, what is bad because the bonding driver still tries to send traffic over the "dead" tunnel.
The solution i found is to set the interface status via the "ip link set <dev> up/down" command.
Now I know from the logs, that OpenVPN itself is aware of the connection state "Initialization Sequence Completed", "Inactivity Timeout (--ping-restart), restarting". It would be nice, if I could hook the above command to these events, but I do't know how to do that.
Any suggestions?
Tanks and greets
OpenVPN peer-to-peer hooks
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech