Dante-server is a good software for S4/5 proxy servers.
Install with apt-get
Apt-get install dante-server
Add a user
Useradd proxyuser
Passwd proxyuser
Prohibit proxyuser from logging on to the system (security considerations)
Sudo vim/etc/passwd
Change the shell of proxyuser to/bin/false.
Configure danted. conf
Sudo mv/etc/danted. conf/etc/danted. conf_old
Sudo vim/etc/danted. conf
Enter the following content:
#
# Logoutput: stderr
# Logoutput: syslog
Logoutput:/var/log/sockd. log
Internal: 0.0.0.0 port = 10080
External: eth0
# Method: username none
# Method: pam
Method: username
User. privileged: root
User. notprivileged: proxyuser
User. libwrap: nobody
Compatibility: sameport
Compatibility: reuseaddr
Extension: bind
Client pass {
From: 0.0.0.0/0 to: 0.0.0.0/0
Log: connect disconnect error
}
Pass {
From: 0.0.0.0/0 to: 0.0.0.0/0
Command: bind
Log: connect disconnect error
}
Pass {
From: 0.0.0.0/0 to: 0.0.0.0/0
Command: bindreply udpreply
Log: connect error
}
Pass {
From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
Protocol: tcp udp
}
Pass {
From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
Command: udpassociate
}
# Block {
# From: 0.0.0.0/0 to: 0.0.0.0/0 port 1-65535
# Protocol: tcp udp
# Log: connect erro
#}
Create a log folder
Mkdir/var/log/sockd
Start dante-server
/Etc/init. d/danted start
Check whether the listener is successful:
Netstat-anp | grep 10080
Now you can use socks5.