outline-apps icon indicating copy to clipboard operation
outline-apps copied to clipboard

Lose internet access when connected

Open happybeing opened this issue 5 years ago • 24 comments

Describe the bug I set up Outline Server on a Ubuntu 20.04 cloud server and can successfully connect to it using the Outline Client from my Ubuntu 20.04 laptop, but once the Outline Client is connected, I have no web access from the Ubuntu laptop.

By disconnecting Outline I can again access the web from my laptop, and can access the server console over ssh, and successfully traceroute twitter.com etc, so the server does have web access. After disconnecting Outline Client, Firefox on my laptop has trouble waking up on some domains, so I am submitting this using a different browser.

With Outline connected, route -n gives:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.85.2       0.0.0.0         UG    10     0        0 outline-tun0
10.0.85.0       0.0.0.0         255.255.255.0   U     0      0        0 outline-tun0
xx.xx.xx.xx  192.168.43.1    255.255.255.255 UGH   5      0        0 wlp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
192.168.43.0    0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

Where xx.xx.xx.xx is the IP of my cloud server.

With Outline disconnected, route -n gives:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.43.1    0.0.0.0         UG    0      0        0 wlp2s0
10.0.85.0       0.0.0.0         255.255.255.0   U     0      0        0 outline-tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
192.168.43.0    0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0

I recently tried setting up Wireguard on a cloud server and had the same problem, so this may be due to something local although I have since done a clean install of Ubuntu 20.04 on my laptop.

I wonder then if the issue is because I'm connecting via a mobile hotspot.

It isn't a firewall issue because I have the firewall turned off on both client and server: ufw status # shows 'inactive' on both.

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser Firefox or Chromium
  • Latest versions

happybeing avatar Oct 05 '20 17:10 happybeing

UPDATE:

I've just installed Outline client on two Android devices, a phone and a tablet and both have web access while the VPN is connected, so the issue is only with my Ubuntu laptop.

happybeing avatar Oct 05 '20 18:10 happybeing

Same thing here, Losing connection when connecting with a fedora 33

OmiceyO avatar Nov 03 '20 13:11 OmiceyO

Same thing here, Losing connection when connecting with a fedora 33

Same issue on my end but the same client (1.2.0) was working fine on Fedora 32.

ikky888 avatar Nov 06 '20 00:11 ikky888

On a working Fedora 32 system, I have the following routes:

  1. When Outline is off: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.31.1 0.0.0.0 UG 600 0 0 wlp3s0 10.0.85.0 0.0.0.0 255.255.255.0 U 0 0 0 outline-tun0 192.168.31.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

  2. When Outline is on: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.85.2 0.0.0.0 UG 10 0 0 outline-tun0 10.0.85.0 0.0.0.0 255.255.255.0 U 0 0 0 outline-tun0 XX.XX.XX.XX 192.168.31.1 255.255.255.255 UGH 5 0 0 wlp3s0 192.168.31.0 0.0.0.0 255.255.255.0 U 600 0 0 wlp3s0 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0

ikky888 avatar Nov 06 '20 02:11 ikky888

OK, I tried another upgrade to Fedora 33 and I noticed that the route did not change however the connection error pops up again. On Firefox, I see an error stating "PR_END_OF_FILE_ERROR" so I tried to refresh the Firefox Browser by going to Help --> Troubleshooting Information then click "Refresh Firefox" under "Give Firefox a tune-up") and now I am able to connect just fine.

ikky888 avatar Nov 06 '20 03:11 ikky888

I guess, I screamed victory too soon: Just a few moments later the connection started acting up and I can no longer connect again on Fedora 33 so I rolled back to Fedora 32 for now while waiting for a fix.

ikky888 avatar Nov 06 '20 05:11 ikky888

@OmiceyO I found a workaround: Start the outline client connection to the outline server on Fedora 33 then stop the service named systemd-resolved by using the command sudo systemctl stop systemd-resolved and you will be able to connect to any site from the web browser. Fedora 33 seems to have that systemd-resolved service enabled by default (but disabled on Fedora 32) and it disturbs Outline Client from working properly. @happybeing and @fortuna FYI...

ikky888 avatar Nov 13 '20 12:11 ikky888

Thanks for the tip. Just testing again I find I don't have the problem in Chromium - I can turn the VPN on and off and Chromium is fine, and I can see my IP address changed using whatismyipaddress.com.

In Firefox, all is well if I close it down and restart after I turn the VPN on or off.

I'm on Ubuntu 20.10, and don't need to do anything with systemd-resolved. It just Firefox, and is solved by restarting Firefox.

happybeing avatar Nov 14 '20 17:11 happybeing

Re-opening as with the VPN connected I still don't have internet access from the terminal (e.g. ping google.com is not working unless it is disconnected). Yet as in the last post I do now have web access in the browser, including Firefox after restarting it.

happybeing avatar Nov 14 '20 17:11 happybeing

@happybeing Lucky you! Your solution did not work for me, as I stated before so I guess this remains a Fedora 33 issue. I have read many posts about systemd-resolved being enabled on Fedora 33 by default, messing up any VPN connection. So I take it that this particular service is not enabled by default in your environment.

ikky888 avatar Nov 15 '20 23:11 ikky888

This bug still hasn't been fixed in 2022

Rayrsn avatar Feb 20 '22 19:02 Rayrsn

Hi Same issue here. When I used Windows 10, it was fine. After I updated to windows 11, the outline VPN started to have issues. Once I disconnected Outline VPN, any of my browsers show "no internect connection." while other APP on my laptop still work. I called Microsoft. They could not solve this issue, saying this may be a issue with Windows 11.

Anybody has some solution in the year of 2022? thanks.

Junjunmichael avatar May 02 '22 02:05 Junjunmichael

This problem exists in the following versions and I tested it.

Ubuntu 20.04 Ubuntu 21.10 Ubuntu 22.04 PopOS 22.04

Please fix this bug.

abbasnaqdi avatar May 03 '22 03:05 abbasnaqdi

@aaaamirabbas I'm pretty sure this is a systemd problem rather than a distro problem

Rayrsn avatar May 03 '22 12:05 Rayrsn

for fix it 1 - sudo ip link set outline-tun0 down (outline-tun0 may be different check ip addr ) 2 - sudo dhclient -r eth0 (eth0 is your internet interface and may be differ check ip addr) 3 - sudo dhclient eth0 now your internet is connected (and you can start outline again) 4 - sudo ip link set outline-tun0 up

sepsoh avatar Jul 21 '22 11:07 sepsoh

for fix it 1 - sudo ip link set outline-tun0 down (outline-tun0 may be different check ip addr ) 2 - sudo dhclient -r eth0 (eth0 is your internet interface and may be differ check ip addr) 3 - sudo dhclient eth0 now your internet is connected (and you can start outline again) 4 - sudo ip link set outline-tun0 up

How to fix it on windows 11?

Hatef-Rostamkhani avatar Oct 04 '22 00:10 Hatef-Rostamkhani

for fix it 1 - sudo ip link set outline-tun0 down (outline-tun0 may be different check ip addr ) 2 - sudo dhclient -r eth0 (eth0 is your internet interface and may be differ check ip addr) 3 - sudo dhclient eth0 now your internet is connected (and you can start outline again) 4 - sudo ip link set outline-tun0 up

How to fix it on windows 10?

azadi1984 avatar Oct 12 '22 14:10 azadi1984

This problem exists in the following versions and I tested it.

Ubuntu 20.04 Ubuntu 21.10 Ubuntu 22.04 PopOS 22.04

Please fix this bug.

+ Manjaro KDE

hayyaun avatar Nov 11 '22 00:11 hayyaun

I have the same issue in Linux Mint 21.1 Cinnamon.

Atepheh avatar Mar 06 '23 18:03 Atepheh

I'm facing same issue after restarting network settings on Windows 11, before that it was working fine!

NaarGes avatar May 10 '23 05:05 NaarGes

Re-opening as with the VPN connected I still don't have internet access from the terminal (e.g. ping google.com is not working unless it is disconnected). Yet as in the last post I do now have web access in the browser, including Firefox after restarting it.

"Outline uses Shadowsocks under the hood. It isn't really a VPN as much as an obfuscated socks5 proxy. The ping (ICMP) protocol can't be tunnelled over a socks5 proxy." Answer from reddit.

It seems "ping" command basically won't work. It took a while for me to figure out what is going on.

gfx73 avatar Mar 13 '24 15:03 gfx73

I'm also having troubles with Outline client on Ubuntu 22.04. Even on the connection tab it is shown that my network doesn't have internet access. Also Ubuntu Software store is not working, can't install anything using "apt get" and internet in Chrome is also down. However, internet is alive in Firefox.

Note: everything is working as expected when I disconnect from Outline.

gfx73 avatar Mar 13 '24 15:03 gfx73