This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docu:csheet:net:relays:socat_usage [2020/09/10 08:42] – admin | docu:csheet:net:relays:socat_usage [2022/05/17 14:27] (current) – [2. Create a **simple network-based TCP logging** endpoint] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Curated practical uses for socat, a whole TCP/ | + | ===== Curated practical uses for socat, a whole TCP/ |
\\ | \\ | ||
- | If you want to **connect | + | ==== 1. Connect |
<code bash> | <code bash> | ||
Line 22: | Line 22: | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== 2. Create a **simple network-based TCP logging** endpoint ==== | ||
+ | <code bash> | ||
+ | socat -u TCP4-LISTEN: | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== 3. Create a HTTP -> HTTPS proxy for certificate errors when unsupported. ==== | ||
+ | <code bash> | ||
+ | # creates an http server at 127.0.0.1: | ||
+ | socat TCP4-LISTEN: | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
+ | ==== Sources: ==== | ||
+ | |||
+ | https:// |