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

replace Shadowsocks with ShadowsocksR or V2Ray

Open hadifarnoud opened this issue 8 years ago • 43 comments

Iran just blocked Shadowsocks, making Outline unusable. I just tried ShadowsocksR and it works just fine (on port 443) in Iran. Not sure about China though

the addition of ShadowsocksR or V2Ray can help.

hadifarnoud avatar Jun 07 '18 05:06 hadifarnoud

please NO SSR! ssr is NOT open source, you can build it by yourself and use it.(even though I used it long time). ss is using random port, same as SSR. I suggested you should try google cloud platform and build new VPN server from google. Then if outline failure, please post the error and ping command.

==================================== here is my own experience, I didn't setup static IP on GCP or AZURE, one day I wake up our government blocked my server port and ip. Then I shut down the server, request new IP, and rebuild outline. It works fine. But in the recent days, China increase filter level due to political problem. But in the major time, SS +KCPTUN, outline works fine for me

sailosha avatar Jun 07 '18 06:06 sailosha

unfortunately, GC blocks all Iranian IPs. so all the Google Cloud servers are blocked from Iran. How can I replace SS with SSR in Outline Server?

I think the rewrites of SSR are open source? if not, what about V2Ray?

hadifarnoud avatar Jun 07 '18 06:06 hadifarnoud

You can't replace it. How about azure(mircosoft) and aws(amazon). I suggest azure,cuz aws is little bit hard for the beginner. I don't know about V2Ray, sorry. can't u run standalone ssr servers on the cloud? Even though your gov blocked gcp ip, it doesn't mean u cant connect them. I am using azure server which blocked by China,(ping error). There is no proof shows shadowsocks can be blocked. Only China had a research for sniff ss communcation in the past.

sailosha avatar Jun 07 '18 07:06 sailosha

Azure is fine I guess.

Just to be clear, Iranian government did not block GCP IPs. it's the other way around Google blocked Iranian IPs. so the clients of yours can't access GC servers either! more info here

my server became useless after three weeks! there must be something they do. as I understand, SSR is harder to detect as it obfuscates the traffic. hence the reason I asked for SSR support

hadifarnoud avatar Jun 07 '18 07:06 hadifarnoud

and the reason I wanted to use Outline with SSR is ease of use. as I give others access, Outline is perfect

hadifarnoud avatar Jun 07 '18 07:06 hadifarnoud

.....cuz there is a stupid issue for ssr. A group of Chinese against the developer for serval reasons. They did cyber bullying and person attack on the Internet. So the developer said: she decided to close ssr project forever. That is why I didn't suggest ssr, it doesn't update anymore. Can't u changed ip address for the servers? btw, keep two vpn works all the time, so u can use one to access cloud when they blocked another one.

sailosha avatar Jun 07 '18 07:06 sailosha

I guess that's what I have to do.

hadifarnoud avatar Jun 07 '18 07:06 hadifarnoud

@hadifarnoud btw, try to use BBR to speedup servers. It require linux kernal 4.6+

sailosha avatar Jun 07 '18 07:06 sailosha

It is a google project for the linux kernal, it can boost up speed for the tcp/udp package. https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95 You can translate it into English and use it. (btw you need setup su account for some command in this page)

sailosha avatar Jun 07 '18 07:06 sailosha

@hadifarnoud, thanks for the report! We need to better understand the nature of the blocking.

Did you create the server, or were you using someone else's server?

  • If from someone else:
    • Can you check if the admin revoked your access key?
    • If the server was shared publicly, maybe it had the IP blocked
  • If your own:
    • Did you use the DigitalOcean option or the advanced mode with the command line?
    • Can you try creating a new access key? Can you access the server with the new key?
    • Have you tried connecting to the server from different networks? is it consistently blocked? The client may be in a network with a "fascist firewall" that whitelists few ports. In that case we can try using a different port number (it seems 443 works for you).
    • Can you try creating a new server? Is the new server also blocked?

If you are open to it and prefer, we can debug it in more detail in private. I'm on Keybase chat.

fortuna avatar Jun 07 '18 15:06 fortuna

@fortuna I just installed this today, though I had installed some SS servers some days ago. They won't work. SSR works perfectly. I used a US-hosted VPS bought from an Iranian company. I know of no method to buy a server from Western companies; Not only paying them is very expensive because of sanctions (dollars in a credit card are sold much more expensively than plain dollars here in Iran.), even using their free services is very hard because they block Iranian IPs, they demand phone call verification (obviously they don't accept +98 Iranian numbers), and a credit card. 2. I created multiple keys, but I used my SSR VPN when doing so. 3. This is not the case. I can connect to SSR just fine with any port whatsoever. 4. I didn't, but since I just created it today, it presumably wouldn't help.

NightMachinery avatar Jun 07 '18 20:06 NightMachinery

No, Shadowsocks is not blocked, at least for now. It works perfectly, without any problem whatsoever.

I think you shared the keys publicly, and this got the server's IP blocked!

And I would also advice against using SSR. Apparently the maintainer abandoned the project some time ago.

I think there was a thread in shadowsocks-libev issues, which showed how vulnerable SSR is!

من رو ٢ تا اپراتور تست کردم و هیچ مشکلی نداره. احتمال خیلی زیاد، اومدن آی‌پی سرور رو بستند!

SquirrelCoder avatar Jun 07 '18 22:06 SquirrelCoder

@fortuna it was my servers.

It stopped connecting to the server for some time. it was working on some networks but blocked on most. I think it would eventually become blocked on all networks as the process takes some time.

  • Did you use the DigitalOcean option or the advanced mode with the command line? I did manual installation like I did on other providers.
  • Can you try creating a new access key? Can you access the server with the new key? unfortunately, I deleted that server. if you let me know how to change the access key, I will on our new test.
  • Have you tried connecting to the server from different networks? is it consistently blocked? The client may be in a network with a "fascist firewall" that whitelists few ports. In that case we can try using a different port number (it seems 443 works for you). I tried it on mobile networks which does not have any firewall at all. It was not working on Rightel and Irancell but was working on MCI (which would've been blocked too because the process is a bit slow).
  • Can you try creating a new server? Is the new server also blocked?

I can definitely do that. will report back when it gets blocked again. please do share your email address with me.

hadifarnoud avatar Jun 08 '18 07:06 hadifarnoud

@SquirrelCoder My private server Blocked for lot of my friends, but not for all of them, it seems outline doesn't blocked on all ISPs...

manizand avatar Jun 08 '18 16:06 manizand

@manizand yeah, as I mentioned above, there is no problem with outline (to be more precise: Shadowsocks), hence I don't understand these blockage reports! (But I've not tested Outline on all ISPs)

the situation could change in the future, but for now, it's stable.

SquirrelCoder avatar Jun 08 '18 16:06 SquirrelCoder

@squirrelcoder No, I didn’t share any keys. I had just created them. 🙄 And no, the ip is not blocked. My SSR on that same ip works with any ports. I use Irancell MTM and perhaps Mokhaberat, too (Do they call themselves ICT or sth? Lol). I don’t remember that.

NightMachinery avatar Jun 08 '18 23:06 NightMachinery

I destroyed the old server and created the new one (in the same location). the new one works fine...

manizand avatar Jun 08 '18 23:06 manizand

@NightMachinary sadly I can't say anything about ICT (مخابرات), but on Irancell it does work for me (and 2 other people too), maybe we are in different cities and they're enforcing different rules to different cities (not sure though 😀)


I would advice, setting up ss-libev on your server (first with port 443, and then change it, also use AEAD ciphers), an test, whether it works or not.

SquirrelCoder avatar Jun 09 '18 04:06 SquirrelCoder

Strangely, my Outline server works today (Via Irancell). (I am sure my server wasn’t down when it didn’t work. I could connect to the wireguard service set up on it just fine.)

On Sat, Jun 9, 2018 at 9:27 AM The Real Squirrel [email protected] wrote:

@NightMachinary https://github.com/NightMachinary sadly I can't say anything about ICT (مخابرات), but on Irancell it does work for me (and 2 other people too), maybe we are in different cities and they're enforcing different rules for different cities (not sure though 😀)

I would advice, setting up ss-libev on your server (first with port 443, and then change it, also use AEAD ciphers), an test, whether it works or not.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/Jigsaw-Code/outline-server/issues/165#issuecomment-395940240, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--t_ynM8MWlSA0GjNzsTLyWosfbghks5t61W-gaJpZM4UdyJg .

NightMachinery avatar Jun 09 '18 05:06 NightMachinery

hey guys, my server got blocked too, i changed the IP but it got blocked again in a few hours! Wonder how they find the IP address! Are they checking the type of traffic or what?

max4444 avatar Jun 11 '18 08:06 max4444