Natan 1 Posted ... hello this is safe? I use? if you miss my connection? airvpn was someone who made the team? how have to use? https://www.file1.info/vo3UR2N #!/bin/bash # Set this to your network interface ETH=enp0s3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR sudo ip link set $ETH up sleep 1s sudo openvpn AirVPN_Europe_UDP-443.ovpn sudo ip link set $ETH down notify-send -i dialog-error -u critical -t 10000 "<b>Warning: VPN down</b><br /><br />All internet traffic blocked" echo "VPN down. Press any key to close this window" # Wait for user input read -s -n 1 Quote Share this post Link to post
Staff 9972 Posted ... Hello! It is nice, but not 100% reliable. The script puts down your physical interface when OpenVPN exits. If OpenVPN is trying a connection, or a re-connection, the interface is still up and a leak is possible. On the other hand, you can't keep down the physical interface, otherwise OpenVPN will never re-connect. Alternatively, set iptables rules to prevent securely any leak: https://airvpn.org/index.php?option=com_kunena&func=view&catid=3&id=1713&limit=6&limitstart=30&Itemid=142#2010 Kind regards Quote Share this post Link to post