Questions tagged [socat]
The socat tag has no summary.
74 questions
0
votes
0
answers
28
views
Want 'socat' arg(s) to un-escape keyboard arrow-keys from VirtualBox join of xfce4-terminal & DOS 6.22 'COMMAND.COM' via COM1
I am running a WFW 3.11 guest with VirtualBox. VB is configured with:
VBoxManage modifyvm $Guest --uartmode1 server /tmp/$Guest/MyPipes/COM1
In my xfce4-terminal, I run:
socat /tmp/$Guest/MyPipes/...
1
vote
0
answers
78
views
Socat does not support multiple TTY in SSH connection on Windows
For testing purposes (I don't want to use ProxyJump or ProxyCommand here, that's not the point), I have the following script (script_win.sh):
ssh -tt [email protected] 'ssh -W 127.0.0.1:22 127.0.0.1'...
0
votes
0
answers
268
views
Is using socat good practice for forwarding multicast traffic?
I have a Linux machine, with one interface on network A, and one interface on network B.
On network A, another machine is a source for multicast traffic, let's say 239.255.0.1.
I want the multicast ...
0
votes
1
answer
295
views
nc and socat parallel listening the same TCP port
Some device sending into 1234/TCP Linux machine some data.
Now I using nc and socat command for handle the data and process it but when using 1st command 2nd cannot be executed and vice-versa.
nohup ...
3
votes
1
answer
1k
views
Unable to capture remote client data with nohup and socat
I need to capture the verbose and debug output of socat running on a remote server.
I can achieve the above when running socat in the foreground:
$ socat -x -d -d -d tcp-l:8080,bind=0.0.0.0,fork,...
0
votes
1
answer
330
views
pppd, docker, socat and permissions
We have an [Ubuntu 20.04] Docker image, used as part of a test system, in which I need to run pppd (to test a dial-up connection), where pppd is connected to the physical modem via a socat loop. My ...
-1
votes
1
answer
1k
views
"Duplicate" serial device - read/write from 2 processes
I have a serial/rs485 converter to read/write from a Modbus device.
I have the need to be able to read and write from 2 process.
How can i "copy" the real device /dev/ttyUSB0 to specify in ...
2
votes
0
answers
66
views
Is it possible to trick a device into thinking a client is on the same subnet when it's actually virtualized?
I'm a software engineer with only very basic networking skills, so I apologize in advance if I fumble a bit with my explanation here.
I have a physical device (specifically, an older model of this ...
1
vote
2
answers
1k
views
Send Data Across NICs Using socat
I'm working on a project trying to develop a data diode for unidirectional transfer of data, and I'm hoping to use socat for some measurements. As a first step, I want to use socat to send data from ...
3
votes
1
answer
1k
views
socat accepting the connection but ignoring the bytes that get sent
I am trying connect to serial adapter over TCP using socat.
This is something that is even covered in the official documentation and should (in theory) just work.
I first start the server
$ socat -d -...
1
vote
1
answer
346
views
Why does socat with rich terminal get killed with signal 9 on OSX?
I used the following command from this question to test out using socat to build a terminal with rich signals:
socat file:'/dev/tty',raw,echo=0 exec:'bash -li',pty,stderr,setsid,sigint,sane
On Linux, ...
1
vote
2
answers
1k
views
socat TCP server bidirectional using sleep, non-interactive client returns without response. Server reports: I/O error
I have the following TCP server:
socat TCP-LISTEN:10000,fork,reuseaddr SYSTEM:'read -r msg && sleep 3 && echo "OK"'
When I execute (interactive mode):
socat - TCP:localhost:...
3
votes
2
answers
21k
views
TCP to virtual serial port with socat
I have a program (program 1) that has a TCP server listening on port 1234. I have confirmed that the server accepts connections and sends data with a utility str2str.
Program 2, on the same machine, ...
0
votes
1
answer
271
views
Can I proxy mumble traffic from IPv4 to IPv6 with socat?
I have an IPv6-only Mumble server at home (because I have no public IPv4). I want to make it accessible to IPv4-only users with a small VPN.
The VPN has a public IPv4 that I can ping
The VPN has IPv6 ...
1
vote
1
answer
4k
views
How to send and receive an UNIX datagram with socat?
I need to send a UNIX datagram to an open port in a running application with socat. When the application receives the datagram, it will answer back with another.
I need to do this to get the resulting ...