* Re: squid + clamp-mss-to-pmtu
@ 2005-05-10 15:55 jonathan
0 siblings, 0 replies; 4+ messages in thread
From: jonathan @ 2005-05-10 15:55 UTC (permalink / raw)
To: netfilter
Le jeudi 05 mai 2005 à 06:32 -0400, Alistair Tonner a écrit :
> On May 4, 2005 11:09 am, jonathan wrote:
> > Hi,
> > I have a problem with squid and iptables.
> > I have to use "TCPMSS --clamp-mss-to-pmtu" to adapt the mtu with the
ISP
> > requirement, but since I have installed the squid proxy, it seems
like
> > the iptables chains below doesn't work.
>
> I doubt that squid 'broke' iptables mss clamp.
> >
> > $iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN /
> > -j TCPMSS --clamp-mss-to-pmtu
> >
> > $iptables -A OUTPUT -p tcp --tcp-flags SYN,RST SYN /
> > -j TCPMSS --clamp-mss-to-pmtu
> >
> > Some websites still are unaccessible.
>
> You are doing the clamp in both FORWARD and OUTPUT. This is a
good idea on
> systems that require this function. However since we don't know the
flow on
> your system we can't offer much in the way of advice.
>
> Please let us know the following:
> 1) what is the basic layout of your network
scheme of the network :
clients (win2000 and linux)
|
|
iptables+squid+advanced routing (same machine)
| |
| |
2 differents ISPs
> 2) where are the systems initiating the failed connections
located on that
> network
sorry, i don't understand your question ...
> 3) where is squid on that network?
squid is on the same server than the iptables firewall (between clients
and the Internet)
> 4) what are you doing to get connections to go through squid?
Squid is configurated as transparent proxy, only the gateway IP address
is configurated on the clients. (nothing on the browsers)
> 5) what other rules are there?
classical rules are configurated, NAT for the local network... and
filtering rules for accessing typical ports (DROP INPUT AND FORWARD
setting by default).
routing configuration makes some marked packets going through ISP1 and
other marked packet through ISP2.
> 6) what are the tcp_ecn settings on the firewall (I'd suspect
ecn before
> anything else since there are so many b0rken firewalls out there that
don't
> understand it)
the tcp_ecn is switch to "0".
> 7) what is meant by inaccessible? what functions of squid might
affect this?
>
it means that mozilla browser write the state "waiting for..." until the
timeout. Sometimes, it take a lot of time to display the website writing
the state " transferring data from ...", and the website appears several
minutes later or never appears !
> 8) Are you absolutely sure you checked to make sure tcp_ecn is
off?
> Completely?
>
yes :
if [ -e /proc/sys/net/ipv4/tcp_ecn ]; \
then echo 0 > /proc/sys/net/ipv4/tcp_ecn; fi
> Alistair Tonner
>
from now, I am not sure it's a mtu / mss problem ...
I've noticed that squid's log display "TCP_NEGATIVE_HIT/404" many times
( i suppose it's normal on some websites), but it seems like squid block
on this "error" message, trying to get a 2xx HTTP return code or
something like this. Is it possible ?
> >
> > Is there a way to make it work?
> >
> > thanks
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* squid + clamp-mss-to-pmtu
@ 2005-05-04 15:09 jonathan
2005-05-05 10:32 ` Alistair Tonner
0 siblings, 1 reply; 4+ messages in thread
From: jonathan @ 2005-05-04 15:09 UTC (permalink / raw)
To: netfilter
Hi,
I have a problem with squid and iptables.
I have to use "TCPMSS --clamp-mss-to-pmtu" to adapt the mtu with the ISP
requirement, but since I have installed the squid proxy, it seems like
the iptables chains below doesn't work.
$iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN /
-j TCPMSS --clamp-mss-to-pmtu
$iptables -A OUTPUT -p tcp --tcp-flags SYN,RST SYN /
-j TCPMSS --clamp-mss-to-pmtu
Some websites still are unaccessible.
Is there a way to make it work?
thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: squid + clamp-mss-to-pmtu
2005-05-04 15:09 jonathan
@ 2005-05-05 10:32 ` Alistair Tonner
[not found] ` <1115656458.2899.40.camel@localhost.localdomain>
0 siblings, 1 reply; 4+ messages in thread
From: Alistair Tonner @ 2005-05-05 10:32 UTC (permalink / raw)
To: netfilter
On May 4, 2005 11:09 am, jonathan wrote:
> Hi,
> I have a problem with squid and iptables.
> I have to use "TCPMSS --clamp-mss-to-pmtu" to adapt the mtu with the ISP
> requirement, but since I have installed the squid proxy, it seems like
> the iptables chains below doesn't work.
I doubt that squid 'broke' iptables mss clamp.
>
> $iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN /
> -j TCPMSS --clamp-mss-to-pmtu
>
> $iptables -A OUTPUT -p tcp --tcp-flags SYN,RST SYN /
> -j TCPMSS --clamp-mss-to-pmtu
>
> Some websites still are unaccessible.
You are doing the clamp in both FORWARD and OUTPUT. This is a good idea on
systems that require this function. However since we don't know the flow on
your system we can't offer much in the way of advice.
Please let us know the following:
1) what is the basic layout of your network
2) where are the systems initiating the failed connections located on that
network
3) where is squid on that network?
4) what are you doing to get connections to go through squid?
5) what other rules are there?
6) what are the tcp_ecn settings on the firewall (I'd suspect ecn before
anything else since there are so many b0rken firewalls out there that don't
understand it)
7) what is meant by inaccessible? what functions of squid might affect this?
8) Are you absolutely sure you checked to make sure tcp_ecn is off?
Completely?
Alistair Tonner
>
> Is there a way to make it work?
>
> thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-10 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-10 15:55 squid + clamp-mss-to-pmtu jonathan
-- strict thread matches above, loose matches on Subject: below --
2005-05-04 15:09 jonathan
2005-05-05 10:32 ` Alistair Tonner
[not found] ` <1115656458.2899.40.camel@localhost.localdomain>
2005-05-10 21:12 ` Alistair Tonner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.