You are not logged in.

#1 2020-01-23 21:07:20

archifer
Member
Registered: 2019-07-08
Posts: 49

internet connection blocked after VPN use [SOLVED]

When I connect to VPN (NordVPN) everything works fine, I can change locations as well but after I completely disconnect from VPN I cannot access the internet anymore. I found out the issue is in `iptables` chain after disconnection it looks like this:

Chain INPUT (policy DROP)

Chain FORWARD (policy ACCEPT)

Chain OUTPUT (policy DROP)

So everytime I have to run

iptables -P INPUT ACCEPT

iptables -P OUTPUT ACCEPT

After that home network works again.

Is this caused by VPN service or there's misconfiguration in my system?

Last edited by archifer (2020-01-26 08:49:07)

Offline

#2 2020-01-23 21:52:49

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: internet connection blocked after VPN use [SOLVED]

How are you connecting and disconnecting to that VPN?

Offline

#3 2020-01-23 21:53:58

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: internet connection blocked after VPN use [SOLVED]

twelveeighty wrote:

How are you connecting and disconnecting to that VPN?

via terminal

nordvpn c

nordvpn d

Offline

#4 2020-01-23 22:15:16

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: internet connection blocked after VPN use [SOLVED]

You'll have to expand your answer a little for people to be able to help you - there is no Arch package that provides nordvpn, so you must have installed something either from AUR or otherwise. What steps did you take to install/configure it? Have you tried using NetworkManager instead?

Offline

#5 2020-01-23 22:52:29

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: internet connection blocked after VPN use [SOLVED]

twelveeighty wrote:

You'll have to expand your answer a little for people to be able to help you - there is no Arch package that provides nordvpn, so you must have installed something either from AUR or otherwise. What steps did you take to install/configure it? Have you tried using NetworkManager instead?

Yes nordvpn-bin is available in AUR. It is very easy and convenient to use to connect / disconnect I've been using it for a while only this recent issue started to happen and I'm confused what can be causing it.

Offline

#6 2020-01-24 20:00:02

SurlyCycler
Member
Registered: 2019-10-26
Posts: 47

Re: internet connection blocked after VPN use [SOLVED]

what does "cat /etc/resolv.conf" show? Sometimes you can see if nordvpn or networkmager etc has overwritten the resolv.conf. That can cause connections problems.
You wont need to mess with the iptables... this can cause a bit of leaking depending on what you are opening them for.

Also check if you have wireguard installed. I find using wireguard as as the default works with fewer problems and faster than openvpn.

we can go from there.

Last edited by SurlyCycler (2020-01-24 20:01:22)

Offline

#7 2020-01-25 05:53:09

Exeat
Member
Registered: 2019-05-28
Posts: 5

Re: internet connection blocked after VPN use [SOLVED]

Did you turn on the kill switch?

try nordvpn set killswitch off

Offline

#8 2020-01-26 08:28:46

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: internet connection blocked after VPN use [SOLVED]

Exeat wrote:

Did you turn on the kill switch?

try nordvpn set killswitch off

yes it is ON, I will try to toggle it

Offline

#9 2020-01-26 08:30:47

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: internet connection blocked after VPN use [SOLVED]

SurlyCycler wrote:

what does "cat /etc/resolv.conf" show? Sometimes you can see if nordvpn or networkmager etc has overwritten the resolv.conf. That can cause connections problems.
You wont need to mess with the iptables... this can cause a bit of leaking depending on what you are opening them for.

Also check if you have wireguard installed. I find using wireguard as as the default works with fewer problems and faster than openvpn.

we can go from there.

NordVPN always rewrites resolv.conf with their servers but it wasn't an issue before and I have wireguard installed NordVPN optionally asks for it.

Offline

#10 2020-01-26 08:48:17

archifer
Member
Registered: 2019-07-08
Posts: 49

Re: internet connection blocked after VPN use [SOLVED]

Exeat wrote:

Did you turn on the kill switch?

try nordvpn set killswitch off

it did the trick! Thanks.

To reproduce what was done firstly after I installed it I set the `killswitch ON` and just now I switched it OFF then reboot and turn it ON again and reboot and now it loads fine with killswitch ON. So it looks like debug kinda, still no clue what's causing it the system or nordvpn itself, I'll send it to nordvpn team to check as well.

Offline

Board footer

Powered by FluxBB