Questions tagged [socat]

63 questions
4
votes
1 answer

Can socat be used to forward an ssh-agent socket into a chroot?

I'm building custom Debian environments on a remote server, which I connect to over SSH. This involves building a debootstrap environment, then chrooting into it to run a custom installer. As part of the custom install process, I need the installer…
regularfry
  • 215
  • 2
  • 11
2
votes
1 answer

What is needed to use kubernetes port forwarding through a proxy?

I have a kubernetes cluster that I can reach through an nginx proxy. I can do kubectl get deployments -n kube-system without issue. However, I'm trying to use helm. Helm is throwing an error: Error: forwarding ports: error upgrading connection:…
cat pants
  • 2,273
  • 10
  • 35
  • 46
2
votes
1 answer

socat tun device very low throughput

I was tinkering around with socat and tried to use socat for creating a TUN device for tunneling between two debian stretch servers. However, throughput seemed very low and comparing with iperf against TCP/TCP-Listen on localhost, TUN has about 5…
2
votes
1 answer

IPv4 to IPv6 proxy/passthrough

I recently had an app rejected from the ios store for crashing during their (now) mandatory IPv6 test (didn't even know they did that). My server (on AWS) wasn't setup for IPv6, but I've fixed that with proper DNS and routing. It passes the tests…
user3249281
  • 195
  • 1
  • 11
2
votes
1 answer

UDP multicast send/receive: Routing or socat issues?

I'm using 'socat' on Linux Centos 7 to diagnose some problems. Server and clients are all linux centos7, they all have multiple interfaces. Server 10.1.1.1 is on Switch 1, 10.1.1.2 is on Switch 2. Switch 1 and Switch 2 are Layer3 switches,…
surfcode
  • 245
  • 2
  • 6
  • 16
2
votes
0 answers

socat Resource temporarily unavailable

I am using socat as a bridge between some devices and running socat (a couple hundreds of instances) like this: socat -d -d -d -x -d -lf "/var/log/some_log_file" TCP4-LISTEN:6126,fork,max-children=1,su=nobody,reuseaddr,sndtimeo=30,rcvtimeo=30…
Tiago Queiroz
  • 51
  • 1
  • 6
2
votes
1 answer

Simulate tcp disconnect using socat

I am trying to use socat command to simulate a tcp disconnect between my client service and EMS broker process on a remote host. I am running this socat command socat TCP-LISTEN:8123,fork TCP:remotehost name:port I run this command on a server say…
Bhaskar
  • 141
  • 1
  • 5
2
votes
0 answers

use socat to provide password to bsign

I have many servers, where I deploy various binaries. For this purpose I use a script that packs them into archives, publishes to the local repository and then ssh-es to the target servers and installs. For now I have a script that looks like…
gluk47
  • 220
  • 3
  • 9
2
votes
2 answers

Resolving HAProxy BADREQs using socat

I'm trying to figure out why i'm getting BADREQs from time to time, by using "show errors" in socat. The problem is that it only shows the last error. I want to be able to see all of them ( like using tail -f ... | grep something). can somebody tell…
SecondThought
  • 409
  • 1
  • 4
  • 11
2
votes
1 answer

Socat - is it possible?

Is there any way to listen and execute a command ( for every connection ) while port forwarding with socat? A non-working example to make it more clear: socat TCP-LISTEN:8080,reuseaddr, "exec:ls" fork tcp:localhost:80
hyogy
  • 23
  • 1
  • 5
1
vote
1 answer

Invoke remote program with socat and wait for it to complete

I need to invoke a program x on server foo from client bar. Program x takes some time to load, then reads input from stdin and transmits output to stdout before terminating. I've been trying to use socat to accomplish this. On server foo I setup the…
koehn
  • 291
  • 2
  • 10
1
vote
0 answers

Simple socat UDP6 relay test setup not working

I'd like to use socat as a relay to let two players (both behind firewalls) of my game connect to each other. The game engine uses UDP. Player A will host the game server, player B will join as client, the public server C will just act as relay for…
Lou
  • 11
  • 2
1
vote
0 answers

Encapsulate udp traffic info tcp with on-disk buffering

My ipfix flow receiver supports only udp (can't be replaced), which is not resistant to network failures and then I'm loosing flow data. To improve this I'm thinking about using socat, mkfifo between flow exporter and flow receiver. But I dont know,…
Supermario
  • 11
  • 1
1
vote
1 answer

End of line after socat readbytes limit is reached

We wanted to use socat to make a process available that is line-based: socat SYSTEM:"echo \$\$;sed -u /^%/s/foo/bar/" \ TCP-L:1234,fork,reuseaddr,readbytes=21,bind=localhost This works but only until the readbytes limit is reached because the…
xebeche
  • 363
  • 3
  • 13
1
vote
0 answers

socat multiple reads from pipe via SSH

I would like to read input on a named pipe on a remote server from my local machine. I have a script on the remote server that is triggered as a CRON job. So every now and then by script writes something to the named pipe. Due to firewall…
Cyberlurk
  • 111
  • 1