2/20/2023 0 Comments Socat examples![]() Socat tcp-listen:3306,reuseaddr,fork unix-connect:/var/lib/mysql/mysql.sock TCP port forwarder to support multiple connections You can make socat only transfer data in one direction with the -u option which ensures that the first address is read to the second address only.Įxamples DescriptionĬonnect to TCP port 80, similar to netcat 10.1.1.1 80 In other words, there will be two byte streams that transfers data to/from both streams. ![]() append (open group only) - appends to a fileīy default, socat creates a unidirectional byte stream between the two addresses.trunc (open group only) - truncates a file.creat (open group only) - to create a file or pipe.Protocol options come after the address and are separated by commas.Protocol could be: TCP4, CREATE, EXEC, GOPEN, STDIN, STDOUT, PIPE, PTY, UDP4 and more. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |