Last active
February 16, 2025 15:26
-
-
Save luminoso/39f1e52441d8d52bb0aa13e5dba2c4c6 to your computer and use it in GitHub Desktop.
socat to a network namespace
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
#https://unix.stackexchange.com/a/298409 | |
sudo socat tcp-listen:500,fork,reuseaddr \ | |
exec:'ip netns exec vpn socat STDIO "tcp-connect:127.0.0.1:5000"',nofork |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment