Skip to main content

Questions tagged [socat]

The program socat is a relay for bidirectional data transfer between two independent data channels.

-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 ...
Ajned's user avatar
  • 109
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 ...
Polo1990's user avatar
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 ...
tarabyte's user avatar
  • 4,376
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 ...
Binabik's user avatar
  • 363
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 ...
Alex028502's user avatar
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 ($...
isysrg's user avatar
  • 3
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" ...
Aleksander's user avatar
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 ...
Pablo's user avatar
  • 234
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. ...
elbarna's user avatar
  • 12.8k
-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?
René Link's user avatar
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 ...
elbarna's user avatar
  • 12.8k
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/...
Alex028502's user avatar
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 ...
Weed Cookie's user avatar
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 ...
Alex028502's user avatar
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 ...
codepoet's user avatar
  • 596

15 30 50 per page
1
2 3 4 5
11