Changes between Initial Version and Version 1 of doc/TorifyHOWTO/socat

Jul 13, 2018, 7:00:13 PM (12 months ago)



  • doc/TorifyHOWTO/socat

    v1 v1  
     3= Torifying Socat =
     5Socat is a command line based utility that establishes two bidirectional data streams and transfers between them. This data can take many forms such as files, pipes, devices (terminal or modems), or sockets (UNIX, IPv4, IPv6, TCP, SSL etc). The streams can be constructed from a large and diverse selection of data sinks, sources and address options, which allows Socat to be highly flexible in its usage. Socat can be used for many different purposes. It is for this reason that it and similar tools are often referred to as '''multipurpose relays'''.
     7== Using Socat with Tor ==
     9Below is an example of utilising Socat to relay traffic from a remote server. While the example shows how to connect to an {{{.onion}}} service, these steps work the exact same way for clear-net facing servers and connections.
     11Suppose you would like to connect to an IRC network called {{{examplename.onion}}}.
     13To use pipe Socat via Tor for this connection, simply use the command:
     15    socat TCP4-LISTEN:4242,fork SOCKS4A:localhost:examplename.onion:6667,socksport=9050
     18=== How it works ===
     20This command informs Socat to build a connection between your local system on port 4242 and examplename.onion on port 6667 via the Tor network.
     22'''Note:''' If you are using Tor browser for your connection you will need to use port {{{9150}}}.
     24== See also ==
     25 * [ Cloudflare - Using DNS over Tor with Socat]
     26 * [ Linux Manpage - Socat]