Dante socks5 server (v1.4.2) auto-install and management script
To build a socks5 server, we have lots of open-source programs to reach that, Dante is one of them.
Comparing with the apt-get or building from source manually, this script will benefit you bellow
- Auto-recognize, detect the machine's system automatically and compile from source code.
- Auto-config, check the system's network or read from argument to auto-generate config file.
- Same-rotation, in multi-ipaddr system. It works like when using different ip address to connect socks5, your external ip address will be different.
- Multi-authorization, you can configure authorization by pam, system or using whitelist.
wget --no-check-certificate https://raw.github.com/sembruk/danted/master/install.sh -O install.sh
bash install.sh
# run with options: bash install.sh option1 option2
bash install.sh --ip="A.A.A.A:B.B.B.B" --port=1080 --user=sockd --passwd=sockd --whitelist="X.X.X.X/32"
- if you want to uninstall, using this command
bash install.sh --uninstall
- if you want to add user
/etc/init.d/sockd adduser USERNAME PASSWORD
Long Option | Short Option | Value refer | description |
---|---|---|---|
--ip= | ip address list (a.a.a.a:b.b.b.b) *#change ';' to ':' * | Socks5 Server Ip address | |
--port= | Default: 1080 | port for dante socks5 server | |
--user= | Pam-Auth Username | Socks5 Auth user | |
--passwd= | Pam-Auth Password | Socks5 Auth passwd | |
--whitelist= | whitelist ip range (a.a.a.a/32:b.b.b.b/32) | Socks5 Auth IP list | |
--whitelist-url= | online white list file (url) | Socks Auth whitelist http online | |
--from-package | -p | -- | Install package from Bin package |
--update-whitelist | -u | -- | update white list |
--force | -f | -- | force install sockd |
--help | -h | -- | print help info |
command | option | description |
---|---|---|
service sockd start | /etc/init.d/sockd start | start socks5 server daemon |
service sockd stop | /etc/init.d/sockd stop | stop socks5 server daemon |
service sockd restart | /etc/init.d/sockd restart | restart socks5 server daemon |
service sockd reload | /etc/init.d/sockd reload | reload socks5 server daemon |
service sockd restart | /etc/init.d/sockd restart | restart socks5 server daemon |
service sockd status | systemd process status | |
service sockd state | /etc/init.d/sockd state | running state |
service sockd tail | /etc/init.d/sockd tail | sock log tail |
service sockd adduser | /etc/init.d/sockd adduser | add pam-auth user: service sockd adduser NAME PASSWORD |
service sockd deluser | /etc/init.d/sockd deluser | delete pam-auth user: service sockd deluser NAME |