在NAT网络后面配置3proxy Socks5 - 错误12

时间:2018-05-14 20:57:18

标签: proxy centos nat

我正在尝试使用this guide配置3proxy服务器(我已经在OHV托管上使用它了,它工作得很好!),现在尝试在NAT后面启动3proxy,并出现错误{{3}这意味着 12 - 无法绑定() 错误在哪里以及我做错了什么?

Internal IP:
172.16.20.50 
External IP:
82.118.227.155
NAT Ports:
5001-5020

以下是我的整个配置:

######################
##3Proxy.cfg Content##
######################

##Main##

#Starting 3proxy as a service/daemon
daemon

#DNS Servers to resolve domains and for the local DNS cache
#that providers faster resolution for cached entries
nserver 8.8.8.8
nserver 1.1.1.1
nscache 65536

#Authentication
#CL = Clear Text, CR = Encrypted Passswords (MD5)
#Add MD5 users with MD5 passwords with "" (see below)
#users "user:CR:$1$lFDGlder$pLRb4cU2D7GAT58YQvY49."
users 3proxy:CL:hidden

#Logging
log /var/log/3proxy/3proxy.log D
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
#logformat "-""+_L%C - %U [%d/%o/%Y:%H:%M:%S %z] ""%T"" %E %I"
rotate 30

#Auth type
#auth strong = username & password
auth strong

#Binding address
external 82.118.227.155
internal 172.16.20.50

#SOCKS5
auth strong
flush
allow 3proxy
maxconn 1000
socks -p5011

创建了用户3proxy,访问3proxy授予。

日志,表示已建立连接,但没有传输流量(0/0):

[root@bgvpn113 ~]# tail -f /var/log/3proxy/3proxy.log.2018.05.14
1526329023.448 SOCK5.5011 00012 3proxy MY_LOCAL_IP:21151 88.212.201.205:443 0 0 0 CONNECT_88.212.201.205:443
1526329023.458 SOCK5.5011 00012 3proxy MY_LOCAL_IP:21154 88.212.201.205:443 0 0 0 CONNECT_88.212.201.205:443
1526329023.698 SOCK5.5011 00012 3proxy MY_LOCAL_IP:21158 88.212.201.205:443 0 0 0 CONNECT_88.212.201.205:443
1526329037.419 SOCK5.5011 00012 3proxy MY_LOCAL_IP:21162 195.201.201.32:443 0 0 0 CONNECT_195.201.201.32:443
1526329037.669 SOCK5.5011 00012 3proxy MY_LOCAL_IP:21164 195.201.201.32:443 0 0 0 CONNECT_195.201.201.32:443

1 个答案:

答案 0 :(得分:0)

错误在外部IP。 我将两个ips设置为172.16.20.50并开始工作!