Questions tagged [openvpn]

OpenVPN is a free virtual private network (VPN) client and daemon.

1
vote
1answer
657 views

How to route specific VPN traffic via specific VPN client?

I have VPN network based on OpenVPN software. I need route all network traffic in VPN network where destination IP is from specific country via one specific client on this VPN network (VPN client IP ...
4
votes
1answer
985 views

systemd-ask-password prompt not displayed for vpn

I have a working OpenVPN client config that uses a passphrase-protected private key. If I run openvpn directly, I'm prompted for the passphrase and the client starts successfully. But if I start it ...
1
vote
0answers
98 views

RPi OpenVPN server: manage users

I have successfully configured OpenVPN as per this 1and1 instruction. Now I am trying to figure out how to add/remove users and change their passwords. I have been able to do this by, pretty much, ...
0
votes
1answer
100 views

Connect same machine to 2 openvpn servers

I need to use 2 clients in order to tunnel traffic to 2 other machines. I don't want my internet traffic tunneled but instead just to be able to communicate with the server over the tunnel. Server A ...
1
vote
0answers
2k views

OpenVPN Push Route

Setting up openVPN trying the steps Advanced routed VPN configuration on server: 1. push "route 10.0.0.0 255.0.0.0" get an error message No command 'push' found didn't you mean: Command 'posh' from ...
1
vote
1answer
210 views

UDP socket in UNCONN state when using iproute2's ss

While editing some firewall rules on a machine that has an OpenVPN client running, I was trying to determine its remote port, as I usually do, using ss. # ss -anup | grep openvpn UNCONN6528 0 0....
0
votes
3answers
929 views

Route certain client through Openvpn tunnel

I have openvpn client running in my centos box which I use as a router for my internal network. I have two interfaces for reach outside world. eth0 - normal internet tun0 - openvpn tunnel I ...
-1
votes
1answer
104 views

grep multiple entries in openvpn.log

i need to determine which clients tried to connect to openvpn $ grep -e 'client[1-20]' openvpn.log | sed 's/^.*client/client/' gives me client16 client16 client12_pool_defined = DISABLED client12'/...
1
vote
0answers
75 views

OpenVPN - Keep local routes

I've setup OpenVPN on my Ubuntu (16.04 / OpenVPN 2.4) box to start at boot. This work in the sense that a connection gets established, but unfortunately it also seems to mess with my routing tables: I ...
5
votes
2answers
4k views

NetworkManager fails with “Could not find source connection”

When trying to connect to a VPN using openvpn through NetworkManager, it fails with Apr 17 02:03:17 GAMINGSTATION NetworkManager[1922]: <info> [1523923397.5294] audit: op="connection-...
0
votes
1answer
84 views

need Iptables example for UDP

I setup openvpn at Centos vps. It has venet0 and tun0 nic. I try to open 5060 udp port for my vpn client pfsene, it shows udp port open or filter. Is these right iptables rules? iptables -A FORWARD -...
3
votes
1answer
411 views

DHCP package not transversing tun0 interface

I have the following setup on a remote office: --- vlan interface --- Remote Router --tun0--> Main office Firewall --> Active Directory DHCP I'm using dhcp3-relay to forward dhcp requests(...
1
vote
1answer
2k views

OpenVPN & iptables - allow traffic to certain specific hosts on server side

I setup an OpenVPN server on a Raspberry Pi and configured it according to the HOWTO. I want to expose certain hosts from the server-subnet (192.168.123.0/24) the clients. I used push route 192.168....
1
vote
3answers
161 views

OpenVPN multiple client communication with end-to-end encryption

I have a common setup of two OpenVPN clients (A and B) that are both connected to the server S. According to this question, each client has an encrypted channel with the server, but the server strips ...
0
votes
1answer
168 views

Killswitch: block all connections except a Dynamic IP VPN (can't use iptables if I don't know the IP)

I have a VPN that I connect to via domain name, not via IP. (with OpenVPN, in Debian) VPN's IP is dynamic, can change any moment, by design, out of my control. I want my machine's only communication ...
0
votes
2answers
705 views

Iptables (port forwarding from vps openvpn server to vpn client)

I install openvpn server in Centos VPS. I can connect from my pfsense router. I forwrad rdp a port to my local pc, but can not forward rtp port. iptables -t nat -A PREROUTING -p tcp -m tcp --dport ...
0
votes
1answer
79 views

VPN site to site via VPS [closed]

I would like to do connection: MY_PC (Private IP) <==> VPS (Public IP) <==> Raspberry Pi (GSM - Private IP). What soultion are You prefare for this connection? I would like to have a MY_PC and a ...
-1
votes
1answer
1k views

Connected to VPN, can't ssh into server

I connect to my universities VPN network with openvpn with it's configuration file provided by the university. client remote 141.52.8.20 port 1194 dev tun proto udp auth-user-pass nobind comp-lzo no ...
5
votes
4answers
10k views

How to fix OpenVPN DNS leak

I just subscribed to a VPN provider. I have Xubuntu 17.10, openvpn 2.4.3. After launching the openvpn command I check the IP (fine) and performed a simple DNS leak test: not fine, it shows my ...
0
votes
0answers
327 views

OpenVPN server with public ip forward incoming to client on tun0

Server (A) Have an interface eth0 with public IP 1.2.3.4 His default gateway is 10.252.0.1 It's an OpenVPN server with net 10.0.1.0/24 on tun0 interface At same time acts as client for a second ...
0
votes
1answer
566 views

Openvpn issues with routing and config pushing

I have recently installed an openvpn server on GCP, in a docker container, from https://github.com/kylemanna/docker-openvpn. The docker-host has packet forwarding enabled. Now I am struggling with ...
0
votes
0answers
51 views

Openvpn can connect but cannot ping or browse internet

I have installed centos and kde plasma. I have downloaded a zip with many .ovpn files from hidemy.name, a key file an two .crt files. In the kde network manager i click on "manage connections" -> "...
0
votes
0answers
999 views

openvpn push route via interface

I configured my openvpn server to use 172.31.48.0/20, where ips from 172.31.48.0 to 172.31.62.255 are statically assigned, and 172.31.63.0/24 are dynamic. tls-server mode server push "topology subnet"...
0
votes
0answers
130 views

Running multiple OpenVPN servers in different locations for the same network

I have no idea if this is going to make sense or is even possible, but here goes: I have a VPN server running on a physical computer attached to my work network. We use this to work remotely as well ...
2
votes
1answer
653 views

Port forwarding to VPN client

I ran into a problem which seems I can't solve. I have a VPN server on a VPS. I can connect with my client PC(home lan). It works as it should. I get the VPS IP address on the client PC. However I ...
1
vote
1answer
72 views

OpenVPN clients flip status each 120 seconds

I am connecting to two OpenVPN servers with OpenVPN clients of pfSense. Connections work, but each 120 seconds they turn from available to unavailable and back. I.e. ping works for 120 seconds, then ...
0
votes
1answer
327 views

FreeBSD ifconfig failed when trying to connect to OpenVPN server

I am trying to connect to remote server with OpenVPN client, built into pfSense. I am failing and inspecting OpenVPN log wich says that (from bottom to top): Exiting due to fatal error FreeBSD ...
0
votes
0answers
233 views

Where to put information from `key` entry of OpenVPN config file in pfSense?

I have the following config file which works well with native OpenVPN client client dev tap proto udp port 1198 remote myhost.com 1194 persist-key persist-tun tls-client ca my-ca.crt cert my-...
1
vote
1answer
80 views

Adding a route to make server directly accessible over VPN, for specific subnet?

I have a Linux machine on a segregated network that I VPN into. When I VPN in, I get assigned a virtual IP by the VPN server like 192.168.251.x I've found that when I VPN in, I can RDP to Windows ...
0
votes
1answer
372 views

Openvpn linux server, ok with linux,not with windows client

This is my configuration of openvpn The server is linux centos,the client1 is linux centos,the client2 is windows10. Linux client can ping linux server,but not windows client windows client can ping ...
1
vote
1answer
200 views

Is this error Unix/Linux specific in internet browsers OR Linux VPN related? [closed]

I want to know if the following problem is only in Unix/Linux systems and their internet browsers, since it occurs only with my Linux/Chromebook machines with VPN, but not in Windows machines with VPN....
0
votes
1answer
43 views

Two OpenVPN tunnels to different networks configuration setup to work simultaneously for Linux

I have 1 machine that has OpenVPN tunnel setup with 1 external network computer. Now i want to add another external network computer with a new tunnel. Config file for currently operating tunnel ...
-1
votes
1answer
405 views

Getting IP address of remote VPN server

Is there a way to obtain the IP address of the remote VPN gateway that a running OpenVPN client is tunneled into, via the command line? More detail: Suppose OpenVPN is connected to a remote server, ...
1
vote
0answers
55 views

iptables ipv4 configuration for OpenVPN Connectvity

I'm following this tutorial in order to setup my openvpn server: https://linode.com/docs/networking/vpn/set-up-a-hardened-openvpn-server/ When i reached the part to replace the ipv4 configuration, ...
2
votes
0answers
108 views

can't forward port through openVPN using iptables on debian

I am trying to forward a port from public machine to another machine that is connected via VPN. that machine connects to internet via this VPN. I am using openvpn and iptables on debian. the vpn ...
2
votes
2answers
552 views

openvpn route-up script fails when run from systemctl

I have a set of programs that must run through VPN and shouldn't have internet access when VPN is not connected on Arch Linux. I do this by creating a network namespace that would contains VPN network ...
4
votes
3answers
4k views

How do I stop daemonized OpenVPN connection?

I started a VPN connection with sudo openvpn --daemon --config connection.ovpn. Is there a way to terminate this connection without using ps to search for the process and then kill it myself?
1
vote
0answers
1k views

Setting up OpenVPN for reverse VPN gateway

So I'm trying to configure an openvpn server to work as a reverse vpn tunnel as explained in this Hak5 video. I'm using an AWS instance, and I have the VPN part working, in that I can tunnel into the ...
0
votes
1answer
242 views

How to find out what is blocking my OpenVPN traffic

I am having a problem getting my OpenVPN push route to work. My setup is the following Network Homelan: 10.0.0.0/24 with OpenVPN: 10.8.0.0/24 VPS in Internet Servers (all Linux) Server1: 10.0.0....
0
votes
1answer
515 views

What is the OpenVPN port range?

The default UDP port for OpenVPN is 1194. Is there a port range for OpenVPN, and if that is the case, what is the port range?
7
votes
1answer
4k views

Where does GNOME Network Manager store passwords?

In Network Manager, under the Identity tab, I can enter a username and password for my OpenVPN connection. I can also enter a password for the "User private key". Both password fields have the ...
0
votes
1answer
77 views

Route more traffic through VPN

I am using openvpn to connect to a VPN server, with the following configuration: remote openvpn.vpn.domain.tld port 1194 proto udp dev tun client auth-user-pass login.conf keepalive 10 60 After ...
0
votes
1answer
445 views

Understanding Routing Table with OpenVPN

I took the material from how to understand the routing table on an OpenVPN client. Here is the route table: # route -n Destination Gateway Genmask Flags Metric Ref Use Iface ...
2
votes
1answer
4k views

Can't connect to vpn with Network-manager

I just installed a clean install of Kali Linux and i'm trying to use Openvpn through Network-manager but every time I press the connect button it instantly flicks back to off. (I'm using the .ovpn ...
1
vote
0answers
354 views

Why my NAT setup is not working?

For some reason, tcpdump sees packets on tun0 interface, but does not see them on the eth0 interface. I have an OpenVPN server, which I used to access Github from a machine that is not able to ...
1
vote
1answer
181 views

How to catch conntrack markers correctly?

Server with DHCP (iface eth0 172.5.1.1/24) gives internet via openvpn tunnel(iface tun0 10.8.1.6) to lan clients. I need to mark tcp connections from exact lan client, for example 172.5.1.123 ...
0
votes
1answer
154 views

CentOS6 - Starting OpenVPN: Failed

Let me preface this by saying I'm pretty clueless with it comes to VPNs, so if you need any further info just ask - I'm not purposely being vague I just have no clue. So I want to install OpenVPN ...
0
votes
1answer
5k views

OpenVPN TLS handshake hangs at P_CONTROL_HARD_RESET_SERVER_V2 (not received)

I have a UDP OpenVPN server (running in TAP mode though that shouldn't matter). The connection successfully starts and passes TLS-AUTH (HMAC) however it gets stuck there. I see the following logs ...
2
votes
1answer
1k views

Run script using 'screen' with sudo privileges

I'm trying to create a script that runs in terminal is automatically started in a raspberry pi 'screen' output. The problem here is that I need sudo privileges inside the script, and that once the ...
2
votes
1answer
482 views

How can I permanently associate tc qdisc commands with a particular interface?

I need to use a tc qdisc command to limit bandwidth usage on an interface created by openvpn. This works great when I run the command manually but occasionally the connection drops or restarts and ...