Questions tagged [socat]

63 questions
0
votes
1 answer

Network shaping local proxy for website testing

I want to make a virtual network interface to TCP-proxy a website and have my browser see it through a slow network connection, in order to debug performance issues in the website itself. So far I managed to set it up in the following way: ip…
dsign
  • 153
  • 8
0
votes
0 answers

Why is socat not working here? (4in6 for UDP traffic)

I have a TS3 server running on IPv6 only. I wanted to use a dualstack VPS as a 4in6 tunnel, but UDP traffic gets lost with this configuration: socat UDP4-LISTEN:9987,fork UDP6:server@example.net:9987 TCP traffic works fine: socat…
Seolh
  • 1
  • 3
0
votes
0 answers

forward all traffic between two ports without iptables

I have read this: Port forwarding on Linux without iptables? I have a vps and I have ran lxc containers on it. I want to redirect all incoming traffic from one outside port to one port of a container (for example 190.23.43.54:80 to…
0
votes
1 answer

Setting up a three way serial port from a single existing port

I currently have a device that has a serial port, and on boot this serial port is bound to ttyS1. There is a process on the device (that I have little control over) that takes control of this port so you can talk to it through a serial terminal. I…
Tyler
  • 111
  • 2
0
votes
0 answers

multiplexing a TCP connection through a dumb shell connection?

I am connecting to a VPN whose gateway is sufficiently misconfigured that basically the only useful thing I can do with it is to ssh to a specific Linux host set up for my usage inside the VPN, and then use that host as a terminal. (Neither scp nor…
Dan Lenski
  • 357
  • 2
  • 12
0
votes
0 answers

zabbix_agent + socat hanging with close_wait

I have the following setup: remote devices running active zabbix_agentd (version 2.0) using socat to tunnel through an HTTPS proxy. On the server side: Apache with a proxy service allowing CONNECT to localhost:10051 (zabbix_proxy). The connection is…
user65677
0
votes
2 answers

Dumping the contents of HTTP packets between two VPNs

Here's my setup: Client ---> VPN 1 (my pc, same subnet of the client) --> VPN 2 (external VPN) --> Internet Both VPNs are L2TP/IPSec and the first one is an Ubuntu server with Openswan. I need to record the HTTP requests and responses of each…
StepTNT
  • 123
  • 2
  • 7
0
votes
1 answer

Using socat to exec php cli

There are multiple client programs that periodically connect to a port on my server and send a single line of text. When a connection to the port is made I need to start a PHP CLI script that processes the data. There may be many of the remote…
RoyHB
  • 163
  • 1
  • 10
0
votes
2 answers

Redirect to port based on requested (sub)domain (1 IP, non-HTTP request)

Possible Duplicate: How to use DNS to redirect domain to specific port on my server So I've been trying to figure out how to redirect a subdomain to a specific port. Let's assume the application will always request the default port and that…
levifig
  • 101
  • 3
0
votes
1 answer

K8s Port Forwarding via kubectl and socat

My k8s pod is connecting to a certain https target. This target is not reachable from my local machine, so I wanted to use kubectl proxy + socat to make that target available on my local machine für local development. The problem is that I even cant…
dontspeak
  • 3
  • 2
0
votes
1 answer

Using socat forwarder over HTTP tunnel (CONNECT) over SSL/TLS

For context, i am using nginx's reverse proxy ngx_http_proxy_module to cache content from an upstream https server. For a specific project, i need nginx to pass through a corporate HTTP proxy (using the HTTP CONNECT method), and unfortunately this…
0
votes
1 answer

Fork connections out from a single socat connection

I have an old legacy application I’m trying to get to work with our semi-modern network. This application sends log messages as HTTP requests (one log per request) but does so over a single TCP connection. If that TCP connection dies, the logs get…
borog1852
  • 1
  • 1
0
votes
0 answers

using putty and socat to run rust server behind firewalls

i want to run a publicly accessible Rust server on a windows machine behind some routers and firewalls. the idea is tunneling the local server ports to a public machine where they are accessable: rust server on windows behind firewalls <- putty…
0
votes
1 answer

socat is missing commands for haproxy on ubuntu 20.04

I have installed haproxy 2.6.6, socat 1.7.4.1 and have a working load balancer for Exchange. I want to be able to turn off a node for maintenance and have unsuccessfully tried to use socat to do this. In my haproxy.cfg global section I have: stats…
02dag
  • 1
  • 1
0
votes
1 answer

Socat udp client/server with truncated message

Using nodejs I can transmit udp packets with a payload of 50000 chars. But I fail to do so with socat (Linux ubuntu 20.04 on both the client and server). For this test I've been using a vpn connecting my home host to my work host. I was kind of…