LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2021, 04:26 AM   #1
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Rep: Reputation: Disabled
Impostor VPNC says it works, but doesn't


Hi everyone

After activating my VPN in the system tray (KDE) it reports VPN is activated, as if everything was working correctly, but when I check websites like whatismyip.com, it shows my own IP address and not the one of my VPN.
 
Old 10-25-2021, 09:57 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What is the output of
Code:
ip route show
 
Old 10-25-2021, 10:37 AM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Also show us the output of "ip a s" so we can see the network config. It should show the vpn tunnel.
 
Old 10-25-2021, 03:47 PM   #4
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
What is the output of
Code:
ip route show
Code:
default via 192.168.1.1 dev enp3s0 proto dhcp src 192.168.1.203 metric 10 
default dev tun0 proto static scope link metric 50 
default via 192.168.1.1 dev enp3s0 proto dhcp metric 100 
10.5.208.0/20 dev tun0 proto kernel scope link src 10.5.215.209 metric 50 
129.132.99.164 via 192.168.1.1 dev enp3s0 proto static metric 100 
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.204 metric 100 
192.168.1.1 dev enp3s0 proto dhcp scope link src 192.168.1.203 metric 10 
192.168.1.1 dev enp3s0 proto static scope link metric 100
Quote:
Originally Posted by computersavvy View Post
Also show us the output of "ip a s" so we can see the network config. It should show the vpn tunnel.
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    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: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 8c:89:a5:0c:5c:fe brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.204/24 brd 192.168.1.255 scope global dynamic noprefixroute enp3s0
       valid_lft 2795sec preferred_lft 2795sec
    inet 192.168.1.203/24 brd 192.168.1.255 scope global secondary dynamic enp3s0
       valid_lft 2796sec preferred_lft 2796sec
    inet6 fe80::e5f9:a670:5185:5d36/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlp4s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 2e:d0:a0:e7:c3:80 brd ff:ff:ff:ff:ff:ff permaddr 0c:84:dc:03:ae:53
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1412 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 10.5.215.209/20 brd 10.5.223.255 scope global noprefixroute tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::c8bb:e362:7e28:29bc/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever
 
Old 10-28-2021, 03:47 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
I'm confused why your interface has two IP addresses + the tun0 vpn address. In any case, the gateway on the vpn is not being set as your default route, so all of your traffic is going through the local gateway 192.168.1.1.
 
Old 10-28-2021, 04:00 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
As @smallpond says, the default route does not get properly changed to the vpn, so all traffic other than to the 10.5.208.0/20 subnet is routed via the 192.168.1.1 router.

I actually see what appears to be 3 default routes. 2 are via the 192.168.1.1 address, but this is the interfering one with the metric 10
Code:
default via 192.168.1.1 dev enp3s0 proto dhcp src 192.168.1.203 metric 10
 
Old 10-28-2021, 04:37 PM   #7
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Original Poster
Rep: Reputation: Disabled
and what's the fix?
 
Old 10-29-2021, 08:55 AM   #8
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
How are you connecting to the VPN? Normally the VPN configuration should push a default route to your network. What VPN service are you using?
 
Old 10-29-2021, 09:43 AM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by smallpond View Post
How are you connecting to the VPN? Normally the VPN configuration should push a default route to your network. What VPN service are you using?
I don't exactly know the permanent fix. His vpn did push the default route with metric 50 and the fallback default route is his gateway with metric 100. However the interfering one is the route with his gateway at metric 10.

On my system I will show the routing before I start the vpn, then after it is up, and you can see it was routed properly. His is different.
Code:
No VPN

$ ip r
default via 192.168.2.1 dev wlp4s0 proto dhcp metric 600 
192.168.2.0/24 dev wlp4s0 proto kernel scope link src 192.168.2.111 metric 600 
192.168.124.0/24 dev virbr0 proto kernel scope link src 192.168.124.1 linkdown 

VPN connection established.

ip r
0.0.0.0/1 via 10.13.4.1 dev tun0 
default via 192.168.2.1 dev wlp4s0 proto dhcp metric 600 
10.13.4.0/24 dev tun0 proto kernel scope link src 10.13.4.222 
89.187.175.238 via 192.168.2.1 dev wlp4s0 
128.0.0.0/1 via 10.13.4.1 dev tun0 
192.168.2.0/24 dev wlp4s0 proto kernel scope link src 192.168.2.111 metric 600 
192.168.124.0/24 dev virbr0 proto kernel scope link src 192.168.124.1 linkdown
 
Old 10-29-2021, 09:44 AM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by Leviathan42 View Post
and what's the fix?
We need more info.
Please disconnect the VPN, reboot, then post the results of "ip route" with no active vpn.

Following that then bring up the VPN and again post the results of "ip route" so we can see the exact routing table changes as the result of starting the VPN.

Both can be done in a single post, just 2 entries so we can see the differences.

Last edited by computersavvy; 10-29-2021 at 09:48 AM.
 
Old 10-29-2021, 03:27 PM   #11
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Original Poster
Rep: Reputation: Disabled
VPN disabled:
Code:
default via 192.168.1.1 dev enp3s0 proto dhcp src 192.168.1.203 metric 10 
default via 192.168.1.1 dev enp3s0 proto dhcp metric 100 
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.204 metric 100 
192.168.1.1 dev enp3s0 proto dhcp scope link src 192.168.1.203 metric 10
VPN enabled:
Code:
default via 192.168.1.1 dev enp3s0 proto dhcp src 192.168.1.203 metric 10 
default dev tun0 proto static scope link metric 50 
default via 192.168.1.1 dev enp3s0 proto dhcp metric 100 
10.5.208.0/20 dev tun0 proto kernel scope link src 10.5.210.16 metric 50 
129.132.99.164 via 192.168.1.1 dev enp3s0 proto static metric 100 
192.168.1.0/24 dev enp3s0 proto kernel scope link src 192.168.1.204 metric 100 
192.168.1.1 dev enp3s0 proto dhcp scope link src 192.168.1.203 metric 10 
192.168.1.1 dev enp3s0 proto static scope link metric 100
 
Old 10-29-2021, 04:20 PM   #12
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
The issue then is that you have 2 default route entries at boot and has nothing to do with the VPN,

Have you by chance manually entered a default route anywhere?
Have you manually configured a network interface address?
Do you have the machine set with a reserved dhcp address in your router?

The suspicious entries I see are these from both the above outputs.
Code:
default via 192.168.1.1 dev enp3s0 proto dhcp src 192.168.1.203 metric 10
192.168.1.1 dev enp3s0 proto dhcp scope link src 192.168.1.203 metric 10
MMMMMMM -- On second thought, you have 2 different IPs assigned to that interface, with .204 as the primary and .203 as the secondary. I would wager that if you get rid of the .204 address then things will work better.
Code:
    inet 192.168.1.204/24 brd 192.168.1.255 scope global dynamic noprefixroute enp3s0
       valid_lft 2795sec preferred_lft 2795sec
    inet 192.168.1.203/24 brd 192.168.1.255 scope global secondary dynamic enp3s0
       valid_lft 2796sec preferred_lft 2796sec
 
Old 10-30-2021, 03:08 AM   #13
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Original Poster
Rep: Reputation: Disabled
With full confidence I can answer all your questions with "No", as I lack the knowledge how to do any of those things
 
Old 10-30-2021, 04:11 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Try:
ip route del 192.168.1.203

The problem is the secondary IP address/route has a metric of 10 which is lower then the metric for the VPN which is 50.

I assume you don't know how the second route was created?
 
Old 10-30-2021, 05:30 AM   #15
Leviathan42
Member
 
Registered: Dec 2019
Distribution: Manjaro
Posts: 51

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Try:
ip route del 192.168.1.203
Code:
RTNETLINK answers: No such process
Quote:
Originally Posted by michaelk View Post
I assume you don't know how the second route was created?
absolutely true
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 3 keys to dispelling impostor syndrome through self-awareness LXer Syndicated Linux News 0 06-21-2016 08:41 AM
LXer: The first steps to addressing your impostor syndrome LXer Syndicated Linux News 0 05-20-2016 03:21 AM
LXer: Tips for avoiding impostor syndrome LXer Syndicated Linux News 0 09-02-2015 09:12 AM
LXer: Be an inspiration, not an impostor LXer Syndicated Linux News 0 08-18-2015 10:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration