You are not logged in.

#1 2016-01-02 11:24:49

green_heron
Member
Registered: 2015-08-16
Posts: 16

Problem with OpenVPN

I'm trying to set up VPN connection but i can't. (Networkmanager, openvpn) <-- VPN works until yesterday.

- I have fresh arch install (latest iso from site) I must reinstall my system for some reasons.

VPN setup (in networkmanager plugin)
- custom gateway
- use LZO data compression
- use a TCP connection

When i choose vpn i see "connection established" but when i check my ip is not change.

Thanks for your help smile


PS. If you need more information (some console stuff) just write (I'm new in linux world) big_smile

Offline

#2 2016-01-02 11:41:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: Problem with OpenVPN

green_heron wrote:

When i choose vpn i see "connection established" but when i check my ip is not change.

How are you checking this?

green_heron wrote:

PS. If you need more information (some console stuff) just write (I'm new in linux world) big_smile

After you connect to the VPN, what is the output of the following commands?

ip a s
ip r s

Offline

#3 2016-01-02 12:20:43

green_heron
Member
Registered: 2015-08-16
Posts: 16

Re: Problem with OpenVPN

fukawi2 wrote:

How are you checking this?

I click on networkmanager icon on panel, then VPN connections, choose VPN and after a while I see information "vpn connection successfully established".

fukawi2 wrote:

After you connect to the VPN, what is the output of the following commands?

ip a s

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:1f:16:0f:68:b7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.104/24 brd 192.168.1.255 scope global dynamic enp0s25
       valid_lft 84853sec preferred_lft 84853sec
    inet6 fe80::21f:16ff:fe0f:68b7/64 scope link 
       valid_lft forever preferred_lft forever
3: wls1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 00:21:6b:42:0c:8c brd ff:ff:ff:ff:ff:ff
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 100
    link/none 
    inet 10.11.0.18 peer 10.11.0.17/32 brd 10.11.0.18 scope global tun0
       valid_lft forever preferred_lft forever

ip r s

default via 192.168.1.100 dev enp0s25  proto static  metric 100 
10.11.0.18 dev tun0  proto kernel  scope link  src 10.11.0.18  metric 50 
91.214.169.238 via 192.168.1.100 dev enp0s25  proto static  metric 100 
192.168.1.0/24 dev enp0s25  proto kernel  scope link  src 192.168.1.104  metric 100 

Offline

#4 2016-01-02 12:28:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: Problem with OpenVPN

green_heron wrote:

I click on networkmanager icon on panel, then VPN connections, choose VPN and after a while I see information "vpn connection successfully established".

Er, I meant how are you checking your IP address hasn't changed?

default via 192.168.1.100 dev enp0s25  proto static  metric 100 
10.11.0.18 dev tun0  proto kernel  scope link  src 10.11.0.18  metric 50 
91.214.169.238 via 192.168.1.100 dev enp0s25  proto static  metric 100 
192.168.1.0/24 dev enp0s25  proto kernel  scope link  src 192.168.1.104  metric 100 

You're missing the routes needed to send all your traffic over the VPN. Have you enabled the "Use only for resources on this connection" option in the configuration? I don't know much about Network Manager, but the missing routes are your problem.

Offline

#5 2016-01-02 12:38:39

green_heron
Member
Registered: 2015-08-16
Posts: 16

Re: Problem with OpenVPN

fukawi2 wrote:

Er, I meant how are you checking your IP address hasn't changed?

I'm checking IP here

fukawi2 wrote:

Have you enabled the "Use only for resources on this connection" option in the configuration?

No. This option is disable.

Offline

#6 2016-01-02 13:50:08

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Problem with OpenVPN

fukawi2 wrote:

You're missing the routes needed to send all your traffic over the VPN. Have you enabled the "Use only for resources on this connection" option in the configuration? I don't know much about Network Manager, but the missing routes are your problem.

The whole issue is a networkmanager bug: https://bugs.archlinux.org/task/47535
green_heron: You probably don't have the previous networkmanager package in the package cache of your new install. You find downgrade instructions (and where to find the packages) here: https://wiki.archlinux.org/index.php/Ar … ne_package

Offline

#7 2016-01-02 14:13:51

green_heron
Member
Registered: 2015-08-16
Posts: 16

Re: Problem with OpenVPN

Strike0 wrote:

green_heron: You probably don't have the previous networkmanager package in the package cache of your new install. You find downgrade instructions (and where to find the packages) here: https://wiki.archlinux.org/index.php/Ar … ne_package

Before I started this thread I downgraded networkmanager-openvpn plugin but not networkmanager. Thanks man it works!!

Last edited by green_heron (2016-01-02 14:34:49)

Offline

Board footer

Powered by FluxBB