* No ACK received with multiple clients over MASQ
@ 2010-06-28 2:47 Marcel Laverdet
0 siblings, 0 replies; only message in thread
From: Marcel Laverdet @ 2010-06-28 2:47 UTC (permalink / raw)
To: netfilter
Apologies in advance as this is probably the wrong list to ask about this,
but I'm not sure who else to go to at this point.
I don't think my configuration is too important here as I've distilled the
problem down to something beyond iptables entirely, but I'll explain what
I'm doing anyway. I have a private network which I'm extending with a
tun/tap ptp connection over ssh. I have one machine on the private network,
and another on a different network which acts as a router for more machines
(via dnsmasq). The two machines maintain an ssh connection and a ptp
connection on tun0. The machine on the private network is setup to MASQ all
packets from tun0 to eth0, and the other machine MASQs all packets from
eth0 to tun0.
The problem I'm seeing is that if multiple clients on the extended network
attempt to access the same service, only one client can get to it-- every
other client won't receive an ACK.
Here's a tcpdump of what this looks like from the POV of the machine on
the private network. It seems that as long as the outgoing tcp port is
increasing the host will accept the connection. If it receives a connection
request from a port lower than one it has already seen before it will
ignore it entirely. If you allow some amount of time to go by (somewhere
around 60 seconds) you can connect with a lower port which starts the
process over again (attempting to connect with a lower port will fail).
http://pastie.org/1021290
I managed to workaround this problem by rewriting outgoing ports with `-t
tcp --to-ports 30000-40000`, but I'd still like to figure out why this is
happening. Does anyone have any insight?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-28 2:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 2:47 No ACK received with multiple clients over MASQ Marcel Laverdet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).