User Tools

Site Tools


docu:csheet:net:relays:socat_usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
docu:csheet:net:relays:socat_usage [2020/09/10 08:44]
admin
docu:csheet:net:relays:socat_usage [2022/05/17 14:27]
admin
Line 1: Line 1:
-==== Curated practical uses for socat, a whole TCP/UDP/UNIXSOCK relay tool ====+===== Curated practical uses for socat, a whole TCP/UDP/UNIXSOCK relay tool =====
  
 \\ \\
-1. **Connect a remote mysql UNIX socket to the localhost** (for development)+==== 1. Connect a remote mysql UNIX socket to the localhost ====
  
 <code bash> <code bash>
Line 24: Line 24:
  
 \\ \\
-2. Create a **simple network-based UDP logging** endpoint+==== 2. Create a **simple network-based TCP logging** endpoint ====
 <code bash> <code bash>
 socat -u TCP4-LISTEN:3334,reuseaddr,fork OPEN:/tmp/test.log,creat,append & socat -u TCP4-LISTEN:3334,reuseaddr,fork OPEN:/tmp/test.log,creat,append &
 +</code>
 +
 +\\
 +==== 3. Create a HTTP -> HTTPS proxy for certificate errors when unsupported.
 +<code bash>
 +# creates an http server at 127.0.0.1:8008 that proxies to https
 +socat TCP4-LISTEN:8008,reuseaddr,fork openssl:185.93.2.243:443,verify=0
 </code> </code>
  
 \\ \\
 \\ \\
-Sources:+==== Sources: ====
  
 https://www.redhat.com/sysadmin/getting-started-socat https://www.redhat.com/sysadmin/getting-started-socat
docu/csheet/net/relays/socat_usage.txt · Last modified: 2022/05/17 14:27 by admin