Skip to main content

Questions tagged [socat]

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

0 votes
0 answers
24 views

How to mirror TCP connections in nginx free version

Using nginx free version, on receiving a tcp connection request, is it possible to broadcast connection to list of backend servers simultaneously using streams module. Could find below post for http ...
ritesh kumar's user avatar
0 votes
0 answers
28 views

How do I directly communicate with socat's child processes that result from forking on a new connection? [closed]

I have a "sharing" issue with socat I'd like to overcome. The issue is simply that all the client communications with the server are private, all the responses from the server are public, ...
Richard T's user avatar
  • 4,649
0 votes
2 answers
55 views

Socat child processes not terminating after client disconnect

I'm using socat to forward traffic from a local port to a remote server over SSL. My command is as follows: socat -d -d TCP-LISTEN:1234,fork,reuseaddr OPENSSL:192.168.1.2:1234,verify=0 However, I'm ...
David Sýkora's user avatar
1 vote
3 answers
104 views

How do I redirect socat's stdin and stdout to its parent process which is a bash script?

What I want to do SHOULD be fairly straight forward but a whole day lost to this already I'm reworking the question a bit to help focus: The overall goal is to have a bash based "server" ...
Richard T's user avatar
  • 4,649
0 votes
0 answers
25 views

Virtual serial port - Windows

I'm using compiled version of socat for windows - https://github.com/tech128/socat-1.7.3.0-windows, and tried to open connection between two ptys ./socat.exe -d -d -x PTY,raw,link=/c/test/tty1 PTY,...
knd97's user avatar
  • 3
0 votes
0 answers
32 views

socat to fork interactive sessions to support reverse shell

I want to use socat to fork multiple screeen/tmux sessions which accept reverse shell from nc. Let's say socat listens on 5555. I used many approaches, one of them: #!/bin/bash # Use socat to listen ...
rlib's user avatar
  • 7,697
1 vote
1 answer
35 views

socat to simulate noisy serial line

due to educational purposes I have some scenarios to deal with. The main one is to simulate a noisy serial line using socat (I currently have version 1.7.4) I'll elaborate: I have software that has to ...
mastupristi's user avatar
  • 1,408
0 votes
0 answers
21 views

How to create a pty with pipes on both ends

I am attempting to use minimodem to connect 2 computers over audible sound (ik it's weird but I like shenanigans). minimodem uses pipes, either into it for transmit, or out for recieve. I would like ...
Drew Helgerson's user avatar
1 vote
1 answer
47 views

Redirect the stderr of a socat fork to separate process

I have a python program that is accessed via socat, so that stdin and stdout are provided and displayed on a client. I use: socat TCP4-LISTEN:12345,reuseaddr,fork EXEC:"python prompt.py" ...
Michael's user avatar
  • 1,377
0 votes
0 answers
474 views

docker socket over socat get write: broken pipe

I'm trying to share the docker unix socket with a user inside a docker (docker in docker), it work well for most commands but for some I got a "broken pipe" on the daemon side. docker run -v ...
edelangh's user avatar
  • 321
0 votes
0 answers
40 views

Docker container for proxying ports to other containers of the stack

I am currently using Docker Compose for deployment of services in stacks. A typical simplified configuration looks like this: version: '2' services: database: image: database-v1 networks:...
tpimh's user avatar
  • 558
0 votes
0 answers
101 views

Is it possible to configure kubectl port-forward to not exit on connection refused?

I am attempting to use the socat gender change trick with the following commands, to allow code inside the pod to access google.com (as an example). # Terminal 1 kubectl port-forward $POD 5432:5432 # ...
merlin2011's user avatar
  • 73.9k
0 votes
0 answers
103 views

socat stops working to redirect UDP traffic after first successful packet?

My setup, I have an device (192.168.1.2) connecting to my WinBox (192.168.0.102) via ethernet. WinBox connects to LinBox (192.168.0.107) via WIFI. On WinBox, I have installed cygwin and runs socat to ...
neuron mac's user avatar
0 votes
0 answers
169 views

socat: forward remote character device to local

How to forward a character device from remote to local using socat? I'm trying to use URH with an SPI (cc1101) device. My local computer has a lack of SPI Interface and my BananaPI can't run URH (at ...
mawe222222's user avatar
0 votes
1 answer
125 views

Access /dev/tpm0 from Kubernetes pod without privileged mode

I am running a Kubernetes Pod for a service that needs to access the /dev/tpm0 device on the host. This works in privileged mode, however, I want to work unprivileged. Is there a way of establishing a ...
Lemon Sky's user avatar
  • 697

15 30 50 per page
1
2 3 4 5
19