You are not logged in.

#1 2020-06-01 17:25:16

NoXGamer
Member
Registered: 2020-06-01
Posts: 1

[SOLVED] OpenVPN Connects but no traffic flow.

Hi.

I have an OpenVPN setup wrapped with stunnel. I use the same OpenVPN client config file on my android device and windows operating system and they both work fine. However, my arch system has been acting up and I haven't been able to figure out why there is no traffic flow through the connection. The handshake process is successful and the "Initialization Sequence Completed" is output, but I cant ping the devices in the VPN, the server, internet, or any other device other than localhost. The routing and client configuration seem to be correct. Any help would be appreciated.

Thanks.

client config:

client
;dev tap
dev tun
;dev-node MyTap
proto tcp
;proto udp
remote localhost 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
#user nobody
#group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
#ca ca.crt
#cert client.crt
#key client.key
remote-cert-tls server
#tls-auth ta.key 1
key-direction 1
cipher AES-256-CBC
auth SHA512
#comp-lzo
verb 3
;mute 20
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf

route -n:

0.0.0.0         10.8.0.17       128.0.0.0       UG    0      0        0 tun0
0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 enp3s0
0.0.0.0         192.168.0.1     0.0.0.0         UG    202    0        0 enp3s0
10.8.0.1        10.8.0.17       255.255.255.255 UGH   0      0        0 tun0
10.8.0.17       0.0.0.0         255.255.255.255 UH    0      0        0 tun0
127.0.0.1       192.168.0.1     255.255.255.255 UGH   0      0        0 enp3s0
128.0.0.0       10.8.0.17       128.0.0.0       UG    0      0        0 tun0
192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp3s0
192.168.0.0     0.0.0.0         255.255.255.0   U     202    0        0 enp3s0

tracepath 10.8.0.1:

1?: [LOCALHOST]                      pmtu 1500
 1:  no reply

There are no errors in the OpenVPN terminal log.

Edit: Problem was due to the fact that the traffic wasn't being routed through the correct gateway. Solved by

route add -net <SERVER IP> netmask 255.255.255.255 gw <GATEWAY IP>

, with <SERVER IP> being the OpenVPN server and <GATEWAY IP> being the router default gateway or the one specified by checking

route -n

.

Last edited by NoXGamer (2020-06-03 16:22:08)

Offline

Board footer

Powered by FluxBB