domosekai / turnout

Transparent and HTTP proxy with smart routing solution. Automatic selection between direct route and proxies, without the need to maintain any list.
MIT License
20 stars 8 forks source link

How to install in Ubuntu or linux ? #1

Closed ingnelson closed 4 years ago

ingnelson commented 4 years ago

Hello sir.

can you give me the commands to install it and run it on Ubuntu , PLEASE ?

I really want to use it , but i am new on Linux , I just buy a VPS ubuntu , i want to install it and run your proxy on port 8043.

Please i really want to use it .

Help me with all the commnads to install it and run it .

domosekai commented 4 years ago

What are you going to achieve? This program is not supposed to be running on VPS. It's a local proxy.

ingnelson commented 4 years ago

@domosekai I want to bypass a firewall .

i have a SSH server listening on port 442 on my VPS , so I need a proxy server that listen on port 8043 to create a tunnel to bypass my firewall.

client (android) > proxy on port 8043 send the request with CONNECT method > SERVER SSH on port 442

Similar to this :

Tunnel1 Tunnel2

I hope you can help to create a proxy that send a http response :

HTTP/1.1 200 Connection established\r\n\r\n

I will wait for reply

domosekai commented 4 years ago

If I understand correctly, you want to access the ssh port which is blocked by the firewall. So you need a http proxy on 8043 to divert the connection. Then you should use a normal proxy (such as squid) instead of my program. Have you tried that?2020/07/08 午前11:55 Nelson notifications@github.com: @domosekai I want to bypass a firewall . i have a SSH server listening on port 442 on my VPS , so I need a proxy server that listen on port 8043 to create a tunnel to bypass my firewall. client (android) > proxy on port 8043 send the request with CONNECT method > SERVER SSH on port 442 Similar to this :

I hope you can help to create a proxy that send a http response : HTTP/1.1 200 Connection established\r\n\r\n I will wait for reply

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

ingnelson commented 4 years ago

@domosekai i tried before with squid + but the firewall do not let pass the request .

On my VPS acept the connection from the client IP , but when the server send the response to the client , the response never came to the client .

by the way, the only proxy that works is : 50.18.211.227:8043 This proxy send back a response :

HTTP/1.1 200 Connection established
Server: sdgw

is this proxy is a Nginx proxy ? because it send a response : Server: sdgw ???

if the answer is yes , it can be a forward or reverse proxy ?

domosekai commented 4 years ago

I don't know what that is. I guess the firewall is not an HTTP proxy, right? Then you should be able to browse https sites directly? If so you can make SSH over TLS by using stunnel. So your traffic will appear as normal TLS to the firewall. Link for reference: https://www.unixmen.com/tunnel-ssh-connections-ssl-using-stunnel-debian-7-ubuntu-13-10/