Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.22k stars 1.35k forks source link

Lose internet access when connected #868

Open happybeing opened 3 years ago

happybeing commented 3 years ago

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):

happybeing commented 3 years ago

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.

OmiceyO commented 3 years ago

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

ikky888 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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...

happybeing commented 3 years ago

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 commented 3 years ago

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.

ikky888 commented 3 years ago

@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.

Rayrsn commented 2 years ago

This bug still hasn't been fixed in 2022

Junjunmichael commented 2 years ago

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.

abbasnaqdi commented 2 years ago

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.

Rayrsn commented 2 years ago

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

sepsoh commented 1 year ago

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

Hatef-Rostamkhani commented 1 year ago

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?

azadi1984 commented 1 year ago

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?

hayyaun commented 1 year ago

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

Atepheh commented 1 year ago

I have the same issue in Linux Mint 21.1 Cinnamon.

NaarGes commented 1 year ago

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

gfx73 commented 3 months ago

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 commented 3 months ago

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.