Questions tagged [socat]
The program socat is a relay for bidirectional data transfer between two independent data channels.
161
questions
-1
votes
0
answers
33
views
Restart of socat process creates GB large log file
I have a usb port shared virtually through ser2net - socat, and I've configured socat based on what's described here.
However, I noticed socat's tendency to fail, and so I have changed the socat.conf ...
2
votes
1
answer
88
views
Proxy between UNIX socket with socat
I used socal to create a proxy server between 2 UNIX sockets: /var/a.sock , /var/b.sock
client -> /var/a.sock -> MY_COMMAND -> /var/b.sock -> MY_COMMAND -> /var/a.sock ->client.
The ...
0
votes
2
answers
69
views
What does '-' as a file parameter mean? [duplicate]
I'm having trouble finding a name for the - character in the context of a piped bash command.
What is the - character called?
Can I replace it with something more readable for a script?
Example ...
0
votes
1
answer
84
views
Where/How does socat insert packet boundaries?
I am using socat to forward incoming serial traffic to a local UDP port (on macOS):
socat OPEN:/dev/cu.usbmodem13203 UDP:localhost:12345
I consider a serial device being a streaming interface while ...
1
vote
1
answer
65
views
job control doesn't work when I create my own pty pair with socat
I am experimenting with understanding terminal emulators by looking at the different pieces of the puzzle.
I am trying to start a pty pair and shell process with socat, and then connect to it with ...
0
votes
1
answer
73
views
websocat command argument equivalent for this nginx custom configuration?
I have this nginx custom configuration:
server {
listen 8080;
server_name subdomain.domain.my.id;
location /vless-ws { # Consistent with the path of V2Ray configuration
if ($...
0
votes
0
answers
61
views
Emulate ttyS0 on Ubuntu 22 or link it to ttyUSB0
I have a JAVA code that checks if ttyS0 is present. I dont have a serial port, so Im getting:
Exception in thread "main" java.lang.RuntimeException:
Error opening "/dev/ttyS0"
...
3
votes
1
answer
170
views
socat parameter order seems to matter
The man page of socat states that socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them. Based on that, the order of your arguments ...
0
votes
2
answers
62
views
Why the tunnel Xdmcp+ssh don't work?
I want to tunnel via ssh a Xdmcp protocol. To access sicure to a remote login.
An easy solution can be openvpn, but I want to try socat+ssh first.
The server is Solaris 10 The client is Slackware 15.
...
-1
votes
1
answer
63
views
What does the tee l2r or r2l argument mean?
I saw a socat example here, where they use
tee l2r | socat - "TCP:remote:5555" | tee r2l
what does the l2r or r2l mean?
0
votes
0
answers
136
views
Is possible to "sniff" a socket? Socat doesn't work
This is the situation:
I have two VM (virtual machines) via kvm-qemu
connected via virtual-serial (a socket).
I created the two vm's with this serial configuration:
serial1 (slackware, uses port1 ...
0
votes
1
answer
175
views
how can I make socat simulate unplugging a serial device
I have this test program
import sys
for line in sys.stdin:
print(line.strip())
print("DONE")
if I get it to print out lines from a real device (an FTDI)
python3 demo.py < /dev/...
0
votes
0
answers
103
views
How to setup a DNS with a socat based vpn?
Since socat has the functionality of creating tunnel interfaces and route traffic over UDP, I believe a VPN can be created using this feature.
Server side setup:
sudo socat -d -d TUN:10.0.0.1/24,up ...
0
votes
1
answer
101
views
Can I set up a serial terminal (RS-232) without a pty?
I have two computers that both have a RS-232 port on /dev/ttyS0 connect together with a null modem.
I am trying to understand bit by bit how an external terminal worked in the old days, and how that ...
0
votes
2
answers
630
views
socat et al.: run a command when incoming connection is received
Let's say one is listening on a tcp port for an incoming connection using socat like this:
$ socat file:`tty`,echo=1 "TCP-L:8080"
Is is possible to run a command (just once) when connection ...