-
-
Save hugojosefson/cf0d74894ca16bb8fa96dfc8132b0675 to your computer and use it in GitHub Desktop.
systemd service to forward traffic from a port, to a different machine's (other) port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Forward TCP from 9999 to 8888 on 10.77.77.77 | |
After=network.target | |
[Service] | |
Type=simple | |
User=nobody | |
Group=nobody | |
ExecStart=/usr/bin/socat TCP-LISTEN:9999,fork TCP:10.77.77.77:8888 | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment