You are not logged in.

#1 2016-11-01 12:30:18

gpetruff
Member
Registered: 2016-02-06
Posts: 31

Trouble Using OpenVPN on Arch.

So guys I have been able to connect to my working VPN on Arch with the command bellow:

sudo openvpn --config  d630-TCP-2000-config.ovpn
Tue Nov  1 10:17:52 2016 OpenVPN 2.3.12 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Aug 24 2016
Tue Nov  1 10:17:52 2016 library versions: OpenSSL 1.0.2j  26 Sep 2016, LZO 2.09
Enter Auth Username: *******
Enter Auth Password: *******
Tue Nov  1 10:17:55 2016 WARNING: file 'd630-TCP-2000-tls.key' is group or others accessible
Tue Nov  1 10:17:55 2016 Control Channel Authentication: using 'd630-TCP-2000-tls.key' as a OpenVPN static key file
Tue Nov  1 10:17:55 2016 Attempting to establish TCP connection with [AF_INET]189.94.192.15:2000 [nonblock]
Tue Nov  1 10:17:56 2016 TCP connection established with [AF_INET]189.94.192.15:2000
Tue Nov  1 10:17:56 2016 TCPv4_CLIENT link local (bound): [undef]
Tue Nov  1 10:17:56 2016 TCPv4_CLIENT link remote: [AF_INET]189.94.192.15:2000
Tue Nov  1 10:17:57 2016 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue Nov  1 10:18:03 2016 [certificado] Peer Connection Initiated with [AF_INET]189.94.192.15:2000
Tue Nov  1 10:18:06 2016 TUN/TAP device tun0 opened
Tue Nov  1 10:18:06 2016 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue Nov  1 10:18:06 2016 /usr/bin/ip link set dev tun0 up mtu 1500
Tue Nov  1 10:18:06 2016 /usr/bin/ip addr add dev tun0 local 172.20.201.10 peer 172.20.201.9
Tue Nov  1 10:18:06 2016 Initialization Sequence Completed

But so far that far as I can go.
Using the ip route I can find the following:

default via 192.168.1.1 dev wlp3s0 proto static metric 600 
10.0.0.0/8 via 172.20.201.9 dev tun0 
172.20.201.1 via 172.20.201.9 dev tun0 
172.20.201.9 dev tun0 proto kernel scope link src 172.20.201.10 
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.103 metric 600 
192.168.24.0/24 dev vmnet8 proto kernel scope link src 192.168.24.1 

My question is how can I make my computer access my VPN network?

Thank you !

Offline

#2 2016-11-01 13:23:19

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Trouble Using OpenVPN on Arch.

Please post your client configuration.

Offline

#3 2016-11-01 14:58:40

gpetruff
Member
Registered: 2016-02-06
Posts: 31

Re: Trouble Using OpenVPN on Arch.

By client you mean the .openvpn file ?
If it is it's here :

dev tun
persist-tun
persist-key
cipher AES-256-CBC
auth SHA1
tls-client
client
resolv-retry infinite
remote  189.94.192.15 2000 tcp-client
lport 0
auth-user-pass
ca d630-TCP-2000-ca.crt
tls-auth d630-TCP-2000-tls.key 1
ns-cert-type server
comp-lzo adaptive

Thanks !

Offline

#4 2016-11-01 15:11:03

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Trouble Using OpenVPN on Arch.

Have you enabled NAT and ip forwarding on your server?

Take a look at https://openvpn.net/index.php/open-sour … l#redirect

Offline

#5 2016-11-01 16:00:40

gpetruff
Member
Registered: 2016-02-06
Posts: 31

Re: Trouble Using OpenVPN on Arch.

Yes, actually the server is working fine with all my colleagues that run the OpenVPN on Windows.
The only ones that are having this problem are me and my colleagues that runs Linux.

Offline

#6 2016-11-01 17:32:35

0xE
Member
Registered: 2016-10-29
Posts: 5

Re: Trouble Using OpenVPN on Arch.

add this setting in your .openvpn file

verb 3 to check your logs

also, I would get wireshark and see whats failing

the use of lport 0 can also become an issue with iptables or your firewall maybe having nobind in file?

Offline

Board footer

Powered by FluxBB