Skip to content

Instantly share code, notes, and snippets.

@luminoso
Last active May 17, 2024 04:15
Show Gist options
  • Save luminoso/39f1e52441d8d52bb0aa13e5dba2c4c6 to your computer and use it in GitHub Desktop.
Save luminoso/39f1e52441d8d52bb0aa13e5dba2c4c6 to your computer and use it in GitHub Desktop.
socat to a network namespace
#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