Jump to content
Not connected, Your IP: 3.140.196.5
Sign in to follow this  
Natan

This is reliable?

Recommended Posts

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

Share this post


Link to post

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

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...