New answers tagged

1

My solution is not ideal as it might allow some data to go through before killing the connection when the vpn is not present... I set mine to 1 second, you could try a lot less. See below. The test.wav requires a sound file (it doesnt work well, sounds like a concurrency issue but it does warn me), or omit it. And mine is for tun0 which is my vpn connection. ...


0

Not sure if remote_host has some special meaning or is an alias for 0.0.0.0. The issue at my side was that there was pseudo-default route pushed from the OpenVPN server: 0.0.0.0/1 routed to vpn_gateway, and that was somehow killing the traffic. So originally I did sudo route del -net 0.0.0.0 netmask 128.0.0.0 # Or - equivalently: sudo ip route del 0.0.0.0/...


0

I faced the same problem and found out when using the PiVPN setup script for Open VPN, the server config contains the line: push "redirect-gateway def1 bypass-dhcp" already. On the IOS client everything is routed through the tunnel automatically (that is what the log says). On the Tunnelblick client you need to add this line in the client.ovpn the line: ...


0

Your /etc/resolv.conf file defines where your computer should look to resolve hostnames into IP addresses. The basic problem is that /etc/resolv.conf doesn't get updated when you run openvpn by default. Here's what you need to do to fix the problem. 1.) Append the following onto your server.conf file on your OpenVPN server machine (typically located at /...


0

As steeldriver's comment says, you can check the package listing to find the file. This can also be done using the Package Index (https://packages.ubuntu.com). For example: 16.04 (xenial) has the file at /usr/lib/openvpn/openvpn-plugin-auth-pam.so, but 18.04 (bionic) has the file at /usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-plugin-auth-pam.so (for ...


1

fugitive's answer works, even on Ubuntu 19.04 but if you don't need to host an internet connection for your other LAN devices, then you can skip a few steps. If all devices are connected to your LAN via wifi or wired, you can just use these steps: Confirm that your PC with the VPN connection can forward packets like a router cat /proc/sys/net/ipv4/...


0

It was easier than I thought. The suspend mode was calling some scripts causing usb ports to close and therefore my dock station who was connected to them and ethernet on it was losing connection. I disabled auto-suspend and also switched to wifi in order to completely avoid connectivity to dock and I found the VPNs working after two hours of inactivity on ...


1

If these aren't statically assigned there isn't a good way to do this other than to extract them from the logfiles since the connections will be randomly assigned IP addresses. If they are statically assigned AND you are using the Open VPN AccessServer you can do it this way: sudo /usr/local/openvpn_as/scripts/sacli UserPropGet which should yield a list ...


0

I invested days into trying many ( vpn server + client ) and this is by far the easiest to install and use ... on your remote ubuntu server issue following to install vpn server wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh at bottom of output from above it will show something similar to Server IP: 111.222.333.444 IPsec PSK: ...


0

Once OpenVPN installed, check from status about "Authenticate users with:" .If it shows "pam" then login to server and use command sudo adduser userid , Eg: openvpnas@openvpnas2:~$ sudo adduser test1 Adding user test1' ... Adding new grouptest1' (1007) ... Adding new user test1' (1007) with grouptest1' ... Creating home directory /home/test1' ... Copying ...


0

I managed to find one solution, next to the rule that I have added before as stated in my question I also added the new rule for the range of "5" IPs for example Chromium didn't want to connect to any host and on Firewall reports it was connecting via address 15.18.9.3 for example, I'm using ufw gui so I added a new rule filter for incoming connections from ...


0

The OpenVPN command has --client-connect and --client-disconnect options that allow you to run scripts for those (and other) events. You can then create a script that emails you with information about the connection. OpenVPN will provide a number of environment variables when executing these scripts, allowing you to attach connection information to those e-...


Top 50 recent answers are included