The tag has no usage guidance.

learn more… | top users | synonyms

3
votes
3answers
12k views

Netcat/socat behavior with piping and UDP?

I guess this is close to linux - Netcat stops listening for UDP traffic - Super User, but I thought I'd better ask anyways As far as versions of netcat I'm using Ubuntu 11.04 and the default netcat ...
3
votes
1answer
2k views

Impersonate a serial device with socat

I am trying to use socat to impersonate an external serial device. If I do this in one terminal: sudo socat -ddd -ddd PTY,raw,link=/dev/ttyS32,echo=0 READLINE and run this simplified version of my ...
2
votes
1answer
2k views

Record multicast stream on multi-homed Linux host

I have what sounds like the simplest possible use case, and yet nothing is satisfactory. I have a multi-homed host and I would like to listen to multicasts on eth1, and shove all the payload (NOT ...
2
votes
1answer
3k views

bidirectional socat functionality with nc

This is question is somehow related to How is it called when listening(connecting) two sockets and exchanging data between them? In the test setup I have three terminal windows open I run in Term1: "...
2
votes
1answer
35 views

socat and rich terminal again

I start socat on a terminal by executing socat - UNIX-listen:/tmp/sock Then I go to another terminal and start a program (by python) in such a way, that it appears to run in the first terminal, here ...
2
votes
1answer
585 views

Dynamic proxy using HTTP CONNECT

My university provides internet access through an HTTP proxy which blocks POP, SMTP, and IMAP. To circumvent this, the IT department's "Internet setup guide" suggests to use socat: socat TCP-L:6660,...
2
votes
0answers
319 views

Forward IPsec tunnel from IPv4 endpoint to IPv6 endpoint

I have a new ISP and only have a Dual Stack - lite connection now. That means I can't access my router via IPv4 anymore, since the external IPv4 address is private. I have native IPv6 connectivity. ...
1
vote
2answers
735 views

ssh -R then expose the local port over HTTP?

Here's my scenario, I have two machines, A and B. A is behind a VPN, so B can't get to A. I have a web server: machine_a$ curl localhost:8088 "hello from machine_a" I have executed a remote SSH ...
1
vote
1answer
225 views

Screen fails to release pty

On my linux box, when using screen I can open, read and write to a pseudo terminal with screen. After closing it (C-a k y) I can't connect to it again, without restarting socat, which provides the ...
1
vote
1answer
701 views

Specifying startup commands with socat

I'm connecting to a simple server which is offering a basic text-based interface using socat like this socat readline TCP4:localhost:8090 There are some initial commands I have to execute every ...
1
vote
2answers
78 views

How to make sed print to the end of line from socat

I have a server which sends data in a UDP Broadcast on port 10552. The data is 7 numbers separated by commas as so. 5.351204,0.001968,-0.000473,-0.999222,0.000451,0.001455,1.084310 I fetch this ...
1
vote
0answers
140 views

Linux server to send and receive from RS-232 using socat

I'm trying to bench test a configuration where a Linux server will send and receive RS-232 data from a Black Box RS-232 to Ethernet converter. I've followed this example. I've configured ser2net.conf ...
1
vote
1answer
232 views

Emulate console by sending data on one UDP port, and receive text from another

I'm trying to establish a “console-like” connection with a National Instruments cRIO-FRC. It broadcasts its console output onto 255.255.255.255, UDP port 6666. I can listen to it with: socat UDP-...
1
vote
0answers
1k views

connect to a serial device via TCP socket

My setup is this: serial device ttyUSB0 connected to laptop A software that opens TCP socket to listen and write to, also runs on laptop A (linux) My goal is to pipe data from/to serial device ...
1
vote
0answers
561 views

How to check if protocol 41 (6to4) is filtered by ISP without changing the network configuration?

Obvious way (just setting up 6to4 tunnel and pinging) fails because ip command seems to be read-only on my VPS: can't change any networking-related settings. So I try using raw sockets: root@78.138....
0
votes
1answer
579 views

Does an open TCP socket connection consume data when not used?

I have a TCP socket connection established between my server and a modem which has a active GSM module and sim card installed. I create this wirless 3G connection via socat: /usr/bin/socat open:/dev/...
0
votes
1answer
108 views

Socat not closing tcp connection

I use socat 1.7.3.1-r0 and run following command on an alpine 3.3 linux server: socat -d -d -d PTY,link=/dev/ttyFOOBAR,echo=0,raw,unlink-close=0 TCP-LISTEN:7000,forever,reuseaddr Socat will listen ...
0
votes
1answer
175 views

How would one pipe from socat to sed to bc to xargs?

I have a server outputting some numbers, I'm reading them with socat, then using sed, I turn those numbers into some math equations, I run them with bc, then I need to pipe them into xargs. socat -u ...
0
votes
1answer
154 views

How to create a simple reverse proxy exposing multiple services under single port

The common problem with microservices is that developing them can be cumbersome if you use AJAX and try to read input from multiuple hosts/ports (due to cross domain requests). I am looking for a ...
0
votes
1answer
593 views

socat as argument to ssh: “bash: socat: command not found”

If I ssh into an osx box from a linux box, issuing socat works fine. However, if I give the socat command as argument to ssh it fails. socat was installed in osx using brew. Any idea why this is ...
0
votes
1answer
765 views

Connect COM1 port with socat

Is it possible to connect socat to the COM1 device? I am trying to use example from socat man page socat -,raw,echo=0,escape=0x0f /dev/ttyS0,raw,echo=0,crnl and replace device name /dev/ttyS0 with ...
0
votes
0answers
80 views

Broadcasting with socat via UDP, timeouts (maybe package lost?)

I want to setup a small broadcaster. I capture the stream from a program via UDP and broadcast it through the network (from IP *2 to *32, because just maximum 32 devices are connected). If I give ...
0
votes
0answers
39 views

What is this no buffer for socat connect error?

I have started to receive this error while using socat: socat[1441] E connect(3834, AF=2 <ip>:<port>, 16): No buffer space available And have found no clue what so ever as to what may ...
0
votes
0answers
243 views

How can I allow Windows RDP ports with socat?

192.168.0.21 is a Windows 8.1 PC running RDP. Using Linux I am running socat as below, but cannot connect on port 5900 to 3389. How do I make TCP and UDP traffic on 5900 go to 3389? socat TCP-LISTEN:...
0
votes
0answers
54 views

Forward HTTP traffic to a server behind gateway

I have a server behind gateway, which means it’s only pingable internally. Now I want to forward traffic from a outside server to this internal server. I want to use socat like: socat TCP4-LISTEN:...
0
votes
2answers
130 views

Forwarding a TeamSpeak instance

I’m trying to setup up a TeamSpeak3 server on my home network "net1.mydomain". It uses an IPv4 subnet of 10.0.0.0/8 in LAN; internet access using IPv4 is possible via CGN. This renders IPv4-only-...
0
votes
0answers
267 views

Make socat listen on both IPv4 and IPv6 stacks

Switched providers the other day, they only assign DSlite-connections. I'm fine, I thought. Thing is - I want to access some of my stuff from outside of my network, which should be of much less a ...
0
votes
1answer
142 views

Screen vs. socat

There is already a question: Screen fails to release pty and there is no answer (only a workaround has been provided so far). My case is different and I would like to know the answer to the original ...
-1
votes
0answers
31 views

How to encrypt traffic over ssh and test it with the plain text message? [on hold]

I have an unsafe connection and I want to use encoding/decoding mechanism to enhance security. I know it can be done in layer 4 (via SSH or SSL/TLS) or in layer 2 (via IPSec). I want to use SSH as ...