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.26k stars 1.35k forks source link

Linux no Internet #1079

Open andrewfer000 opened 2 years ago

andrewfer000 commented 2 years ago

Describe the bug Outline Client can connect to Outline/ShadowSOCKS server, but does not allow internet connection. This has been going on for awhile now.

To Reproduce Download Outline Client on Linux and add your key. Connect succesfully and not be able to access the internet.

Expected behavior Client connects and Internet works.

Screenshots

Client System (please complete the following information):

Submit Feedback Please submit feedback through the app and label it with this issue number.

Additional context This likely has something to do with IPtables in some way.

helnokaly commented 2 years ago

Same issue here OS: Ubuntu 20.04

trungklam commented 2 years ago

I'm using Linux Mint which based on Ubuntu 20.04 and got exactly the same problem. I tried several ways but in the end, just log out and login again, then open outline client and press on connect make everything back to work. My assumption is that on the first run, Outline have some issue in doing the initialization for the DNS, which cause the network problem

andrewfer000 commented 2 years ago

I hope this gets fixed eventually.

This is my current solution and I may stick with it:

Right now I'm using Tun2socks which works great with ShadowSOCKS servers. Honestly you should just go with Tun2Socks with ShadowSOCKS-Qt as your client. You shouldn't have an issue connecting to Outline Server using it since ShadowSOCKS-Qt supports ss:// urls.

Also Tun2socks allows for complete UDP support (via udpgw running on the server) and IPv6 support which is honestly for the better. Also you can use any SOCKS5 proxy, including SSH or socksd.

Like I said this method works perfect for me however it has some technical setup involved and I will need to write up some type of guide. It's not awful though.

It would be neat if Outline could use Tun2Socks behind the scenes because it works very well.

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.

sepsoh commented 2 years 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