e.g. this works for me on Debian
microsocks.service
[Unit]
Description=microsocks is a tiny SOCKS5 server
Documentation=https://github.com/rofl0r/microsocks
After=network.target auditd.service
[Service]
EnvironmentFile=/etc/microsocks.conf
ExecStart=/usr/bin/microsocks -u ${MICROSOCKS_LOGIN} -P ${MICROSOCKS_PASSW}
[Install]
WantedBy=multi-user.target
/etc/microsocks.conf
# used by the systemd service file
MICROSOCKS_LOGIN="foo"
MICROSOCKS_PASSW="bar"
It's a bit simple, and could be expanded by improving security (chroot, user=nobody, logging, whatever) but it just works.
e.g. this works for me on Debian
microsocks.service
/etc/microsocks.conf
It's a bit simple, and could be expanded by improving security (chroot, user=nobody, logging, whatever) but it just works.