Compiled Dante v1.4.0 (https://www.inet.no/) with configs examples. Using pam for authentications from username:$password list.
| README.md | ||
| sockd | ||
| sockd.conf | ||
| sockd.service | ||
How to install:
-
Copy binary
sockdto /usr/local/sbin/ -
Copy sockd.conf to /etc/sockd.conf (read it to learn how to setup authentication method)
-
Copy .service file to your systemd dir and enable/start it
How to generate password for sockd.passwd (libpam-pwdfile)
-
install whois package sudo apt install whois
-
Now you can create md5_scrypt hash that can be used in .passwd
example:
$~# mkpasswd
Password: (prompts for password, not echoed, I typed 123)
$y$j9T$N9AZbcUY9cpr6KqJoKQUP/$0/kBMQsCt666gFidFc1Klv6yQ/pGqSMf5vf6u4rVtID
- Now paste this with username to sockd.passwd like this:
bobby:$y$j9T$N9AZbcUY9cpr6KqJoKQUP/$0/kBMQsCt666gFidFc1Klv6yQ/pGqSMf5vf6u4rVtID
- Now you can use your proxy with login username bobby and password
123, no restart required.
There are also other methods of authentication, see dante docs: https://www.inet.no/dante/doc/latest/config/auth.html