Soberia / bypasshub

An abstraction around the set of tools to bypass internet censorship in extremely restricted regions.
MIT License
8 stars 5 forks source link

Ocserv : Unexpected 405 result from server #2

Closed mortada-jafar closed 1 year ago

mortada-jafar commented 1 year ago

i execute this command

sudo ./openconnect --user test --server $SNI_DOMAIN:443 then I get this error:

sudo ./openconnect --interface wintun  --user test  --server occ.poc.fun:443
Connected to HTTPS on occ.pocoir.fun with ciphersuite TLSv1.3-TLS_AES_256_GCM_SHA384
Got HTTP response: HTTP/1.1 405 Not Allowed
Unexpected 405 result from server
Failed to complete authentication
Soberia commented 1 year ago

Please don't put your domain in here, everyone on internet can view it. You only need the --interface parameter when you're on Windows.

Please change log-level value to 9 in ocserv/ocserv.conf on your server and capture the log with docker logs bypasshub-ocserv-1 when connecting from the client with appended --verbose -vvvv parameters. Send both server and client logs.

mortada-jafar commented 1 year ago

Thanks everything is ok and connected but upload speed it is about 0.1Mps

Soberia commented 1 year ago

Your server IP range probably throttled by the natinoal firewall. Unfortunately, you can't do anything about it.

mortada-jafar commented 1 year ago

Thanks very helpful, how can i detect the ip ranges that not throttled?

Soberia commented 1 year ago

If your speed is very low like you mentioned, that's mean your server is throttled. However, if you want to make sure, you can connect from another VPS to your server and check the speed.

mortada-jafar commented 1 year ago

The problem seems to be with the internet provider. It works perfectly fine on Irancell, but it does not work on MCI.

I made some tests and i have this results:

Soberia commented 1 year ago

Yea that's true. It totally depends on your ISP. Some of them block the whole connection to the server and the others only limit the speed. You have two options. Buy another VPS or find the ISP that works best with your VPS. Neither of them are permanent solution. Try Shatel, it may perform better for you.