Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables blocks access to some websites?

Reply
Thread Tools Display Modes

iptables blocks access to some websites?

 
 
Gururajan Ramachandran
Guest
Posts: n/a

 
      09-02-2004, 02:49 PM
Hello,

I have a problem where only some websites are inaccessible via
browser. When I turned off iptables completely to check, the websites
were accessible.

I found something related to MTU, PPTP and this iptables rule:

-A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS
--clamp-mss-to-pmtu

I went ahead and put it in even though I am not doing anything related
to VPN/PPTP. I reduced the MTU on both the client (Windows machine)
and the NIC on the Linux system to 1280. It still does not work.

Any ideas on what methods/iptables rule I need to use to correct this
problem? Any FAQs somewhere that may already have the answer?

Thanks,

Guru
 
Reply With Quote
 
 
 
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      09-02-2004, 07:32 PM
Gururajan Ramachandran wrote:
> Hello,
>
> I have a problem where only some websites are inaccessible via
> browser. When I turned off iptables completely to check, the websites
> were accessible.
>
> I found something related to MTU, PPTP and this iptables rule:
>
> -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS
> --clamp-mss-to-pmtu


You should not need this unless you are trying to connect to some
very strange sites, I don't think it's a very useful rule.

>
> I went ahead and put it in even though I am not doing anything related
> to VPN/PPTP. I reduced the MTU on both the client (Windows machine)
> and the NIC on the Linux system to 1280. It still does not work.
>
> Any ideas on what methods/iptables rule I need to use to correct this
> problem? Any FAQs somewhere that may already have the answer?


It would help a lot if you can use ethereal to sniff and trace the
connections to the problematic sites, and see what's really happening,
also you can use -j LOG rules to log the iptables behaviour with this
sites. With that information you can find a more suitable solution.

>
> Thanks,
>
> Guru



--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      09-03-2004, 06:38 PM
In article <(E-Mail Removed)> ,
Gururajan Ramachandran wrote:
>Hello,
>
>I have a problem where only some websites are inaccessible via
>browser. When I turned off iptables completely to check, the websites
>were accessible.


So, run a sniffer like tcpdump, and see what the packets are saying.

>I found something related to MTU,


Is your firewall blocking ICMP Type 3 Code 4 inbound? See RFC2923

2923 TCP Problems with Path MTU Discovery. K. Lahey. September 2000.
(Format: TXT=30976 bytes) (Status: INFORMATIONAL)

Briefly, many sites use Path MTU discovery to find out what is the
largest (therefore most efficient) packet size they can use to send
you data. They do this by trying to send test packets of specific sizes
with the "Don't Fragment" header flag set. If the MTU on a segment is
smaller than this packet, an ICMP Type 3 Code 4 error (Fragmentation
needed, but don't fragment bit set) is returned, and the sending host
tries a smaller packet. Lather, Rinse, Repeat. Only when the maximum
size is determined will actual data transfer start.

>I reduced the MTU on both the client (Windows machine)
>and the NIC on the Linux system to 1280. It still does not work.


Might actually make things worse if you are blocking ICMP - many of
the hosts on the Internet default to 1500, although PPPoX needs that
reduced to 1492 to allow for the ppp header.

Old guy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to access my connection from about 2-3 blocks away Discoduck Wireless Internet 148 07-30-2007 05:06 PM
IPTables blocks all incoming traffic from other networks Angus Macleod Linux Networking 2 07-10-2007 09:09 PM
iptables blocks httpd, why? Coenraad Loubser Linux Networking 0 03-08-2005 08:02 PM
iptables router 'blocks' some websites ? hega72@gmx.de Linux Networking 6 06-16-2004 06:38 PM
iptables blocks 'established' packets ? Tom Van Overbeke Linux Networking 0 07-01-2003 01:35 PM



1 2 3 4 5 6 7 8 9 10 11