Initial connection problems
Paul Ross
paul@houseofcordell.net
Wed, 25 Jul 2001 21:59:55 -0400
Hey guys, gals, whatever,
I'm not seeing anyone talking about this after grepping the archives, so I'm
hoping it's something which can be quickly rectified by someone pointing me
to the correct thread, or giving me a quick one line answer. I'll try the
simple explanation first, and if noone appears to be able to help, I'll
throw in full, technicolour detail.
I've just set up a new linux box, 2.4.6 kernel (no options as modules, all
compiled in), iptables 1.2.2. ppp0 connection to the big wide world,
internal network using net10. All I want to do is masquerade the connection.
I have a static ip on the dialup.
I add the following into the nat table:
/usr/sbin/iptables -t nat -F
/usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to 1.2.3.4
Replace 1.2.3.4 with my real ip.
The first connection I make to a new server from an internal box fails. IE
waits a long time, then complains it can't find the server. SSH tells me the
connection was 'reset'. If I try to connect again, it works perfectly. Even
non-passive FTP suffers the same - I can get normal FTP working, but only on
the second try.
Am I missing something obvious? Any quick 'n' dirty answers?
TIA
Paul
--
"You spend far too much time at that computer."
"But it's my life."
"That's so very, very sad."
Dexter with Mom - Freakazoid