Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #181822

Re: TCP proxy for host on subnet

From Henning Follmann <hfollmann@itcfollmann.com>
Newsgroups linux.debian.user
Subject Re: TCP proxy for host on subnet
Date 2017-06-06 15:40 +0200
Message-ID <tPmSe-YB-3@gated-at.bofh.it> (permalink)
References <tOYwx-2jk-3@gated-at.bofh.it> <tP0oF-3td-1@gated-at.bofh.it> <tPjrj-6ZD-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jun 06, 2017 at 10:59:30AM +0100, Ron Leach wrote:
> On 05/06/2017 14:08, Henning wrote:
> >
> >socat
> >
> 
> Henning, thank you for that.  socat seems a very flexible package.
> 
> Have you used it yourself, at all?  I couldn't see from the documentation

Yes I connect a serial port over network.

> how to terminate socat.  I was planning to use a variation of one of their
> examples, like this:

terminate in terms of "stopping"? I think SIGHUP will work.

> 
> socat -d -d -lmlocal2 \
> TCP4-LISTEN:3129,su=nobody,fork,range=192.168.0.0/24,reuseaddr \
> TCP4:name.server.tld:4444
> 
> I was also unsure whether socat would hold open a connection to
> name.server.tld even if no transactions were taking place, or whether socat
> would only open the connection each time traffic arrived on 3129 and it
> forked another child process.  The documentation seems to imply that the
> 'open' takes place before traffic and before forking, which suggests to me
> that the connection is opened and remains open.  I'd prefer an arrangement
> where a connection was made each time a transaction sequence was initiated
> by traffic on the local, incoming, 3129 port (in my example), and then
> closed when traffic stopped.  I'll reread the documentation, anyway.
> 

Well,wel,  aren't we a bit high maintenance? However I like how you ask
questions intelligently. IMO it's half the way to come to a solution. A
rare sight these days. With the fact that socat is pretty much the
universal patch cable, you are expecting too much here.
It seems you are looking for a protocol aware proxy. If you let us know
what protocol ...


-H
-- 
Henning Follmann           | hfollmann@itcfollmann.com

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

TCP proxy for host on subnet Ron Leach <ronleach@tesco.net> - 2017-06-05 13:40 +0200
  Re: TCP proxy for host on subnet Darac Marjal <mailinglist@darac.org.uk> - 2017-06-05 15:30 +0200
  Re: TCP proxy for host on subnet Henning <henning@itcfollmann.com> - 2017-06-05 15:40 +0200
    Re: TCP proxy for host on subnet Ron Leach <ronleach@tesco.net> - 2017-06-06 12:00 +0200
      Re: TCP proxy for host on subnet <tomas@tuxteam.de> - 2017-06-06 12:50 +0200
        Re: TCP proxy for host on subnet Henning Follmann <hfollmann@itcfollmann.com> - 2017-06-06 15:30 +0200
          Re: TCP proxy for host on subnet tomas@tuxteam.de - 2017-06-06 16:30 +0200
      Re: TCP proxy for host on subnet Henning Follmann <hfollmann@itcfollmann.com> - 2017-06-06 15:40 +0200
        Re: TCP proxy for host on subnet Ron Leach <ronleach@tesco.net> - 2017-06-06 18:40 +0200
          Re: TCP proxy for host on subnet Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-06 19:10 +0200
            Re: TCP proxy for host on subnet Ron Leach <ronleach@tesco.net> - 2017-06-10 13:00 +0200
              Re: TCP proxy for host on subnet <tomas@tuxteam.de> - 2017-06-10 15:30 +0200
                Re: TCP proxy for host on subnet Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-13 14:40 +0200
                Re: TCP proxy for host on subnet <tomas@tuxteam.de> - 2017-06-13 21:20 +0200

csiph-web