How to find out a VPN link has gone down (or better, come back up)?

Julian Elischer julian at freebsd.org
Sun Jun 16 14:40:25 UTC 2013


On 6/16/13 8:51 PM, Damien Fleuriot wrote:
> I might be wrong but wouldn't that be a job for devd ?
>
> Alternatively set a cron job every minute to reinstall the route.

use the up/down scripts to install the routes... that's what they are for.

>
>
> On 16 Jun 2013, at 12:22, Bernard Higonnet <bthcom at higonnet.net> wrote:
>
>> I have a machine, FreeBSD 8.1-RELEASE #0, running a VPN (MPD5) server.
>>
>> Every once in a while, the link goes down, presumably because of some third-party event on the network.
>>
>> When this happens, an element placed in the routing table by hand disappears since the node on the VPN server to the far-off client machine no longer exists (even though the entry in the routing table is marked "permanent" when it does exist). When the network problem goes away, the VPN link is automatically restored, but not the routing table.
>>
>> Can someone tell me if there is a way to be notified that the link has been restored so that I can run a script etc. to restore the routing table to what I want?
>>
>> TIA
>> Bernard Higonnet
>> _______________________________________________
>> freebsd-net at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-net
>> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
>



More information about the freebsd-net mailing list