[Unit] Description=SOCKS5 proxy server After=network.target network-online.target Requires=sshd.service [Service] Type=simple ExecStart=/usr/bin/ssh -nTND :1080 -o BatchMode=yes localhost User=user Group=group SELinuxContext=system_u:system_r:ssh_t:s0 Restart=always [Install] WantedBy=multi-user.target