Can reach some websites, can't reach others
Oooops ... didn't review the "to line" before I sent. forwarding to the list for historical record.
---------- Forwarded Message ----------
Subject: Re: Can reach some websites, can't reach others
Date: May 22, 2004 08:41 am
From: Alistair Tonner <[email protected]>
To: [email protected]
Quoted 11 lines · Sven Riedel
Hi,
I'm using a Linux 2.6.6 box as a masquerading firewall via dialup for a local network. From the internal network I can reach some websites (e.g. www.debian.org) but can't reach others (e.g. www.freshmeat.net). The unreachable sites _can_ be reached from the firewall-box itself though.Throwing out all references to DROP in my firewall rules and setting the policies of INPUT, OUTPUT and FORWARD to ACCEPT didn't change the situation, so I doubt it's the rules used (they're appended down below anyway, you never can tell...).
Quoted 4 lines
An ethereal dump of a connection to the sites that fail from the internal network shows that the 3-way handshake progresses as usual, but then the sites server sends a "Previous TCP Segment Lost" message and all traffic ceases.
<Beaucoup Snippage for brevity>
You don't mention what your connection is -- But I'm betting you are on some
sort of DSL -- likely using something like pppoe to connect. There is an issue with DSL pppoe connections from downstream boxen that DON"T do intelligent PMTU discovery .... like *cough* windows. You need a tweak that I don't see in your firewall as posted.
iptables -I POSTROUTING -t mangle -o (output device) -p tcp -m tcp \
--tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
replace output device appropriately of course, ... Some folks put this in
FORWARD chain but I figure to get *everything* in mangle POSTROUTING.
Alistair Tonner...
Quoted 2 lines
Regs,
Sven
-------------------------------------------------------