See Also
Documentation
Mini tutorials
- Securing traffic between two socat instances using SSL
- IP multicasting with socat
- Building TUN based virtual networks with socat
- socat-gender.txt contains a simple TCP
gender changer
example. - Generic sockets with socat
- Tunneling the Unix sockets via SSH
Links
-
http://www.dest-unreach.org/socat/doc/socat.html
# Silly - give me a readline interface and connect it to # python. Give python a pty, setsid and make it a # controlling terminal (ctty). socat READLINE,history=$HOME/.socat_python_history EXEC:'python',pty,setsid,ctty
-
Misc
Bag
Forwarding http from VirtualBox Host Only interface to localhost
sudo socat TCP6-LISTEN:80,reuseaddr,bind=192.168.56.1,fork TCP6:localhost:80
Tunneling the Unix sockets via SSH
From: Tunneling the Unix sockets via SSH
# Connect STDIO of one program to a unix socket. socat STDIO UNIX-CONNECT:/home/services/vms/vnc-socket # Forward local port to remote unix socket. socat TCP-LISTEN:5500 EXEC:'ssh [email protected] "socat STDIO UNIX-CONNECT:/home/services/vms/vnc-socket"' xtightvncviewer -encodings "copyrect tight hextile zlib corre rre raw" localhost:5500