Created
April 4, 2020 10:53
-
-
Save nomaster/89d29ef773dea480071b7ac38108e2b3 to your computer and use it in GitHub Desktop.
Use socat to translate TCP6 to TCP4
This file contains hidden or 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=socat | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/socat TCP6-LISTEN:%i,reuseaddr,fork,bind=[::] TCP4:127.0.0.1:%i | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
start with port number, for example: