How to create a SOCKS5 proxy server?

How to create SOCKS proxy with PuTTY?

I have installed PuTTY with following settings: SSH connection type: SOCKS5 Proxy.

Authentication method: user private key authentication. Login as user: root. Host Name: my.host.name

Host alias: my.name When I start PuTTY, I get the following messages: There are two problems here: The message is not shown at the beginning, but appears randomly. It is not possible to select the location of a custom socks proxy. If you use the same location for both socks proxy and ssh connection then the location will be used only for the socks proxy. If you select Default location, then the location will be used for both socks proxy and ssh connection.

There are two ways to solve this problem: A way that I found on the internet: you need to add ProxyCommand and LocalForward lines in ~/.ssh/rc file. There are detailed instructions about it:

A way that I found by myself: It is possible to change the location of the socks proxy with advanced settings of PuTTY. The settings are located in Advanced Settings menu.

How to create a SOCKS5 proxy server?

What are the steps required to create a SOCKS5 proxy server?

I use CentOS6.5 and I'd like to do it on a VPS with Ubuntu14.04 but don't care about which OS to use, my only concern is to get the SOCKS5 protocol right and how to do it.

There are two Socks5 proxies available, one uses the TCP 4444 port and one uses the UDP 4848 port.encode('hex') def socks5bind(servhostname, servport): # Bind to the port to which the socket is bound. sock = socket(AFINET, SOCKSTREAM). # No need to try to bind to a port in the loopback interface. # as it's already bound to the all ones port. ipaddr = None. if servport == 53: # The UDP port used by SOCKS. sock.setblocking(0) try: ipaddr = sock.error: return False. except: host, port = s.

Related Answers

Are SOCKS5 proxy servers paid?

A SOCKS5 proxy is a VPN provider that supports SOCKS5 protocol. With a SOCKS5 p...

Can I use a SOCKS5 proxy for torrenting?

Dedicated SOCKS5 proxies are used for enabling remote users to connect to...

Is SOCKS5 proxy free?

We think this feature will be very useful. But it could be abuse...