[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatically restart OpenVPN session

Kaushal Shriyan:
> is there a way to automatically restart the OpenVPN session while i switch
> to and fro from Wireless to Wired Network on Debian Squeeze ?

Do you use network-manager?

If not: you can add lines for OpenVPN to your entries for wired and
wireless networks in /etc/network/interfaces:

iface eth0 inet dhcp
        openvpn <vpnname>

iface wlan0 inet dhcp
        openvpn <vpnname>

Given <vpnname>, OpenVPN will use the config file

Driving behind lorries carrying hazardous chemicals makes me wish for a
simpler life.
[Agree]   [Disagree]

Attachment: signature.asc
Description: Digital signature

Reply to: