Editing Socat
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | [[wikipedia:socat]] (2009)http://www.dest-unreach.org/socat/ | |
− | [[wikipedia:socat]] (2009) | ||
− | |||
− | |||
− | |||
− | |||
'''Forward''' port 80 to localhost:8090 <ref>https://unix.stackexchange.com/a/293308</ref> | '''Forward''' port 80 to localhost:8090 <ref>https://unix.stackexchange.com/a/293308</ref> | ||
− | * <code>socat | + | * <code>socat TCP-LISTEN:80,fork TCP:127.0.0.1:8090</code> |
* <code>socat TCP-LISTEN:80,fork,reuseaddr TCP:127.0.0.1:8090</code> | * <code>socat TCP-LISTEN:80,fork,reuseaddr TCP:127.0.0.1:8090</code> | ||
Debugging: | Debugging: | ||
− | * <code> | + | * <code>socat -d -d TCP-LISTEN:80,fork TCP:127.0.0.1:8090</code> |
Logs connections (<code>-d -d</code>): | Logs connections (<code>-d -d</code>): | ||
2019/05/13 04:24:30 socat[15433] N listening on AF=2 0.0.0.0:XX | 2019/05/13 04:24:30 socat[15433] N listening on AF=2 0.0.0.0:XX | ||
Line 20: | Line 15: | ||
2019/05/13 04:24:44 socat[15438] N successfully connected from local address AF=2 xxx.xxx.xxx.xxx:46596 | 2019/05/13 04:24:44 socat[15438] N successfully connected from local address AF=2 xxx.xxx.xxx.xxx:46596 | ||
2019/05/13 04:24:44 socat[15438] N starting data transfer loop with FDs [6,6] and [5,5] | 2019/05/13 04:24:44 socat[15438] N starting data transfer loop with FDs [6,6] and [5,5] | ||
− | |||
− | |||
== Errors == | == Errors == | ||
Line 31: | Line 24: | ||
== Options == | == Options == | ||
− | * <code> | + | * <code>nodelay</code> Turns off the [[Nagle]] algorithm for measuring the [[RTT]] (round trip time). |
− | |||
== Related terms == | == Related terms == | ||
− | * | + | * [[logger]], [[systemd-cat]] |
* [[Port forwarding]] | * [[Port forwarding]] | ||
− | |||
− | |||
== See also == | == See also == | ||
* {{netcat}} | * {{netcat}} | ||
− | * | + | * [[Ports]], [[sftp]] |
+ | |||
+ | |||
[[Category:Networking]] | [[Category:Networking]] |
Advertising: