S
S
SysUtils2017-06-25 18:40:18
linux
SysUtils, 2017-06-25 18:40:18

How to set up 3proxy on a local network?

Good evening. There is a router that distributes Wi-Fi in the apartment. There are two laptops, one on Windows 8.1, the other on Ubuntu 16.04. I want to set up a Socks 5 server on a Windows laptop and connect through it with Ubuntu. I downloaded 3proxy, the config is like this

internal ip_сетевой_карты_Windows
log
auth none
proxy
I start, Firewall turned off, writes this
170625152648.685 3128 00000 - ip_network_card:0 0.0.0.0:0 0 0 0 Accepting connecti
ons [1916/5056]

Further on Ubuntu I write
curl --socks5-hostname ip_network_card:3128 icanhazip.com
a couple of minutes later
curl: (7) Unable to receive initial SOCKS5 response.

On Windows at this time, this appears
170625152822.901 3128 00511 - ip_ubuntu:33504 0.0.0.0:0 0 0 0 ♣☻

What did you do wrong? Why doesn't Socks work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Dubrovin, 2017-06-25
@SysUtils

'proxy' is an http proxy, for socks use the 'socks' command instead.

R
Roman Sokolov, 2017-06-25
@jimquery

#daemon
#log /dev/null
nserver 8.8.8.8
nscache 65536
auth none
proxy -n -p3128 -iWIN_IP -eWIN_IP
socks -n -p3129-iWIN_IP -eWIN_IP

timeouts 1 5 30 60 180 1800 15 60

Try this. Instead of WIN_IP, respectively, put Windows IP.
socks will work on port 3129 in this case, the proxy is on port 3128
You can check the availability of a working proxy like any other service using telnet:
telnet WIN_IP 3128
telnet WIN_IP 3129

If it works, check authorization with curl:
curl --proxy WIN_IP:3128 -U login:pass check-host.net/ip
curl --proxy WIN_IP:3129  check-host.net/ip

For socks in the browser login/password authorization does not work, if it is used at all. You can log in by IP using auth iponly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question