So, everyone uses a jump host to help with security. It often causes people to require to configure SSH tunnels, to remotely browse the services and even connect to hosts in another network.
The best information I found was using a command like this:
/usr/bin/ssh -N -D 0.0.0.0:8080 localhost
However you have to enter that at every single boot! There’s no status on it, and that doesn’t help you simply run it in the background even without logging into your jump host.
Lets run it as a service! For this instruction I am using CentOS 7, simply because systemd is in the new OS’s, so it’s relevant.
# cat /usr/lib/systemd/system/socks5.service
ExecStart=/usr/bin/ssh -f -N -D 0.0.0.0:8080 localhost
User=<enter the user you want this to run as>
Group=<enter the group you want this to run as>
Now you have a no mess, socks5 service running on your host. If you want it to start with boot, just run:
systemctl enable socks5.service