Socat: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „socat - TCP4:ox.xinux.org:25“) |
|||
| (10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | socat - TCP4:ox.xinux.org:25 | + | =Intallation= |
| + | *sudo apt install socat | ||
| + | =Connect zu einem Mailserver= | ||
| + | *socat - TCP4:ox.xinux.org:25 | ||
| + | =Locale Portweiterleitung einmalige Verwendung= | ||
| + | *socat TCP4-LISTEN:9922 TCP4:brian.tuxmen.de:8472 | ||
| + | =Locale Portweiterleitung inklusive Fork= | ||
| + | *socat TCP4-LISTEN:9922,fork,reuseaddr TCP4:brian.tuxmen.de:8472 | ||
| + | =Lauchen auf TCP Port 3307 und weiterleiten an einen Unix Socket= | ||
| + | *socat TCP-LISTEN:3307,reuseaddr,fork UNIX-CONNECT:/var/lib/mysql/mysql.sock | ||
| + | =Nachrichten Samler= | ||
| + | *socat -u TCP4-LISTEN:3334,reuseaddr,fork OPEN:/tmp/test.log,creat,append | ||
| + | =Socat Shells= | ||
| + | *[[socat-shells]] | ||
| + | =Socat Remote Port2Port= | ||
| + | *[[Socat Remote Port2Port]] | ||
| + | |||
| + | =Links= | ||
| + | *https://www.redhat.com/sysadmin/getting-started-socat | ||
| + | *http://www.dest-unreach.org/socat/doc/socat.html#EXAMPLES | ||
Aktuelle Version vom 8. August 2021, 12:51 Uhr
Intallation
- sudo apt install socat
Connect zu einem Mailserver
- socat - TCP4:ox.xinux.org:25
Locale Portweiterleitung einmalige Verwendung
- socat TCP4-LISTEN:9922 TCP4:brian.tuxmen.de:8472
Locale Portweiterleitung inklusive Fork
- socat TCP4-LISTEN:9922,fork,reuseaddr TCP4:brian.tuxmen.de:8472
Lauchen auf TCP Port 3307 und weiterleiten an einen Unix Socket
- socat TCP-LISTEN:3307,reuseaddr,fork UNIX-CONNECT:/var/lib/mysql/mysql.sock
Nachrichten Samler
- socat -u TCP4-LISTEN:3334,reuseaddr,fork OPEN:/tmp/test.log,creat,append