Jigsaw-Code / outline-server

Outline Server, developed by Jigsaw. The Outline Server is a proxy server that runs a Shadowsocks instance and provides a REST API for access key management.
https://getoutline.org/
Apache License 2.0
5.85k stars 788 forks source link

Unable to connect to your Outline Server #291

Closed aminsource closed 4 years ago

aminsource commented 6 years ago

Hi I have installed outline on my instance (on digitalocean) with ubuntu 16.04 but I get flowing message when I want create server via outline manager:

Unable to connect to your Outline Server

Your Outline Server was installed correctly, but we are not able to connect to it. Most likely this is

because your server's firewall rules are blocking incoming connections. Please review them and

make sure to allow incoming TCP connections on ports ranging from 1024 to 65535.

I open port as on Ubuntu Firewall as bellow :

To                                   Action      From
--                                      ------      ----
1024,65535/tcp             ALLOW IN    Anywhere
1024,65535/udp            ALLOW IN    Anywhere
22                                  ALLOW IN    Anywhere
15220                            ALLOW IN    Anywhere
443/udp                        ALLOW IN    Anywhere
443/tcp                         ALLOW IN    Anywhere
1024,65535/tcp (v6)      ALLOW IN    Anywhere (v6)
1024,65535/udp (v6)     ALLOW IN    Anywhere (v6)
22 (v6)                           ALLOW IN    Anywhere (v6)
15220 (v6)                     ALLOW IN    Anywhere (v6)
22/tcp (OpenSSH (v6))  ALLOW IN    Anywhere (v6)
443/udp (v6)                 ALLOW IN    Anywhere (v6)
443/tcp (v6)                  ALLOW IN    Anywhere (v6)

ps : I want create from Iran , is this issue depend my location?

shaomeng commented 6 years ago

Issue #165 reports that Google Cloud Platform blocks IP coming from Iran... Not sure if DigitalOcean has the same policy. But it looks like you can ssh to your droplet, so it might be a different problem?

aminsource commented 6 years ago

Issue #165 reports that Google Cloud Platform blocks IP coming from Iran... Not sure if DigitalOcean has the same policy. But it looks like you can ssh to your droplet, so it might be a different problem?

yes I can ssh to my droplet

fortuna commented 6 years ago

I'm sorry for the trouble. @aminsource Could you ssh and run docker logs shadowbox on your host and see if there's any error there?

trevj commented 6 years ago

@aminsource Can you tell us how you created your server: via the command-line, or using the server manager's automated flow?

edthepurple commented 6 years ago

Hey. I'm having the same problem here (On a DigitalOcean Server). there are no errors in the log file.

I have installed Outline server manually using SSH commands.

fortuna commented 5 years ago

Can you try the connectivity test to your server with this tool and report the result? https://fortuna-outline-connectivity.netlify.com/

Zhangyulong98 commented 5 years ago

@trevj I have also encountered this situation and need to solve it. Unable to connect to your Outline Server Your Outline Server was installed correctly, but we are not able to connect to it. Most likely this is because your server's firewall rules are blocking incoming connections. Please review them and make sure to allow incoming TCP connections on ports ranging from 1024 to 65535.

zlfccnu commented 5 years ago

@trevj The same problem without a proper solution after heavy google search.

h4pp commented 5 years ago

@trevj The same problem

Amazon with correct inbound rules

Its start working after enabling and disabling ufw

sudo ufw enable sudo ufw disable

Can't explain this

kouchakyazdi commented 5 years ago

@fortuna I had the same problem. I just test my connectivity with your tool : https://fortuna-outline-connectivity.netlify.com/ and the result is : Your network does not block port 9824 Port 9824 on 5.9.211.60 is open and accessible

kouchakyazdi commented 5 years ago

Why the container ports are empty ? 9d219e0da09b v2tec/watchtower "/watchtower --clean…" 43 seconds ago Up 40 seconds watchtower b55baac5cb39 quay.io/outline/shadowbox:stable "/bin/sh -c /cmd.sh" 45 seconds ago Up 45 seconds shadowbox 7fdb5a513a31 wurstmeister/zookeeper:latest "/bin/sh -c '/usr/sb…" 36 hours ago Up 36 hours 22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp kafka-docker_zookeeper_1_81fb2b7a8180 f15813222247 registry:2 "/entrypoint.sh /etc…" 2 days ago Up 2 days 0.0.0.0:5000->5000/tcp

fortuna commented 5 years ago

Shadowbox uses the host network interface, removing the need to open the ports of the container.

fortuna commented 5 years ago

@kouchakyazdi What error behavior are you seeing? You can successfully establish a TCP connection to your server port. That means there's no blocking happening in the network you tested from. And your firewall set up is fine too.

It's unclear why you can't connect. Try submitting feedback via the form so we can see potential errors.

marqueymarc commented 4 years ago

When I installed outline the installation ended with this message:

If you have connection problems, it may be that your router or cloud provider
blocks inbound connections, even though your machine seems to allow them.

Make sure to open the following ports on your firewall, router or cloud provider:
- Management port 52526, for TCP
- Access key port 57244, for TCP and UDP

I then ran:

sudo ufw allow 52526/tcp
sudo ufw allow 57244

and Outline Manager was then able to create a connection.

Zhangyulong98 commented 4 years ago

谢谢Thanks

------------------ 原始邮件 ------------------ 发件人: "marc meyer"<notifications@github.com>; 发送时间: 2020年5月6日(星期三) 凌晨5:22 收件人: "Jigsaw-Code/outline-server"<outline-server@noreply.github.com>; 抄送: "878781806"<878781806@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [Jigsaw-Code/outline-server] Unable to connect to your Outline Server (#291)

When I installed outline the installation ended with this message: If you have connection problems, it may be that your router or cloud provider blocks inbound connections, even though your machine seems to allow them. Make sure to open the following ports on your firewall, router or cloud provider: - Management port 52526, for TCP - Access key port 57244, for TCP and UDP
I then ran: sudo ufw allow 52526/tcp sudo ufw allow 57244
and Outline Manager was then able to create a connection.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

samrth012 commented 4 years ago

Unable to create server due to ports issue on Ubuntu 20.04

fortuna commented 4 years ago

This is an old stale issue. A lot has changed since then, so I'm closing the issue. Feel free to open a new one with with fresh information if needed

0000ali9999 commented 2 years ago

i faced the same problem i bought virtual cloud server from provider A and it worked correctly while i bought another cloud server from azaronline outline manager did not connect the only difference was virtual cloud server provider. problem still exists

manhte2 commented 1 year ago

Hi guys, can someone help me? I subdently facing unreacheable connect to server after migrated server days, at the time migrated I can connect to server by Outline manager without any problem. I tried to check ufw configuration which nothing change that till allow all tcp/udp port.

I also try to create a new fresh outline server, then migrate again by backup /opt/outline/persisted-state folder, after migrate, client can vpn to new svr but outline manager said need to check firewall (while ufw rule not change anything).

would you please help me, thank much,

manhte2 commented 1 year ago

can someone advise any idea ?

fortuna commented 1 year ago

When you migrate the keys, if the server has a different IP, they won’t work.

You can reach out to support@getoutline.org for more help.

manhte2 commented 1 year ago

When you migrate the keys, if the server has a different IP, they won’t work.

You can reach out to support@google.com for more help.

thanks bro, but before I did migrate same way and it worked well , of couse when do migrating, it always difference IP. The isssue only happen after a week new server works. And now I do any migrate, issue happen

Can u advise again support email address ? is that support@google.com ?

fortuna commented 11 months ago

My mistake, the email is support@getoutline.org