Re: netfilter expected behavior for established connections

Antonio Ojea <[email protected]>
Newsgroups gmane.comp.security.firewalls.netfilter.general
Message-ID <CABhP=tbbS3S=yCViCq82RcG3bYt6=C4i9i7pn-w6nZCzjpyKuA@mail.gmail.com>
On Wed, 12 Mar 2025 at 19:20, Florian Westphal <[email protected]> wrote:
>
> Antonio Ojea <[email protected]> wrote:
> > heh, I got bitten for that too, that is why I have
> >
> > echo PING >&3 && read line <&3
> >
> > the moment that you read it from the fd, it does not come back to the
> > socket and you break the loop.
>
> AFAIU the read could happen before socat managed to read from
> the pipe (so nothing is sent over network).
>
> Or there could have been several writes over the network,
> not just 'exactly one write'.

I tcpdumped to verify the behavior, but let me work on it and use a
different approach that is not so racy and random, I just wanted to
validate my assumption on the expected behavior
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.