All of lore.kernel.org
 help / color / mirror / Atom feed
* strange behaviour
@ 2007-02-26 12:45 angico
  2007-02-26 13:03 ` Askar Ali
  2007-02-26 14:53 ` Pascal Hambourg
  0 siblings, 2 replies; 14+ messages in thread
From: angico @ 2007-02-26 12:45 UTC (permalink / raw)
  To: netfilter

hi, everybody!
i have a problem that you may help to solve, surely.
i have a server (a) connected to the internet via eth0/ppp0 (adsl).
another computer (b) is connected to this server thru eth1, and it should reach the internet via the server which is its gateway. and so it did!... up to a month ago.
i think nothing's changed. all i did was a re-installing of my gentoo based system on the server, due to problems on the hard-disk. but firewall rules (iptables) remain the same. and the netted computer can't reach the internet anymore! 
things got exquisite because:
- i ping any site on the internet from (b) and i can see their pongs.
- irc (msn) also works fine!
- google's pages load correctly!
and for my despair i can access <facilcotacao.com>, but can't access <facilcotacao.com/autopecas>!!!!
please, help me! what the hell is wrong with my firewall?
many thanks in advance,
angico.

table filter is:

Chain INPUT (policy DROP)
num  target     prot opt source               destination         
1    ACCEPT     all  --  192.168.0.0/24       boitata.jlm         
2    ACCEPT     tcp  --  anywhere             anywhere            state RELATED,ESTABLISHED 
3    ACCEPT     udp  --  anywhere             anywhere            udp spt:domain 
4    ACCEPT     udp  --  anywhere             anywhere            udp spt:http state NEW,RELATED,ESTABLISHED 
5    ACCEPT     icmp --  anywhere             anywhere            icmp echo-reply 
6    ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 


Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    LOG        all  --  anywhere             anywhere            LOG level warning prefix `IPT-FWD: ' 
2    ACCEPT     all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    LOG        all  --  anywhere             anywhere            LOG level warning prefix `IPT-OUT: ' 
2    ACCEPT     all  --  boitata.jlm          192.168.0.0/24      



and table nat is:

Chain PREROUTING (policy ACCEPT)
num  target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
num  target     prot opt source               destination         
1    MASQUERADE  all  --  anywhere             anywhere            
2    MASQUERADE  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         





 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: strange behaviour
@ 2007-02-26 16:21 angico
  2007-02-28 17:36 ` Martijn Lievaart
  0 siblings, 1 reply; 14+ messages in thread
From: angico @ 2007-02-26 16:21 UTC (permalink / raw)
  To: netfilter

GREAT, GUYS! IT WORKED!!!!!! I THANK YOU VERY MUCH for the help!
angico.


----- Original Message ----
From: Cedric Blancher <blancher@cartel-securite.fr>
To: angico <angico@yahoo.com>
Cc: netfilter@lists.netfilter.org
Sent: Monday, February 26, 2007 1:07:55 PM
Subject: Re: strange behaviour

Le lundi 26 février 2007 à 07:35 -0800, angico a écrit :
> hi, buddys. thanks for your attention, but...
> nothing works, yet. and this option "--clamp-mss-to-pmtu" just send me an error: "iptables: Invalid argument". 
> angico.

My mistake.
As Pascal stated, you have to specify a "-p tcp --tcp-flags SYN,RST SYN"
as well, as TCPMSS clamping only works on TCP packets with SYN flag set:

        iptables -t mangle -A FORWARD -o ppp0 -p tcp \
           --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

It should work better.


-- 
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!





 
____________________________________________________________________________________
Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: strange behaviour
@ 2007-02-26 15:35 angico
  2007-02-26 16:07 ` Cedric Blancher
  0 siblings, 1 reply; 14+ messages in thread
From: angico @ 2007-02-26 15:35 UTC (permalink / raw)
  To: netfilter

hi, buddys. thanks for your attention, but...
nothing works, yet. and this option "--clamp-mss-to-pmtu" just send me an error: "iptables: Invalid argument". 
angico.

----- Original Message ----
From: Cedric Blancher <blancher@cartel-securite.fr>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: netfilter@lists.netfilter.org
Sent: Monday, February 26, 2007 12:09:25 PM
Subject: Re: strange behaviour

Le lundi 26 février 2007 à 15:53 +0100, Pascal Hambourg a écrit :
> I doubt this is a firewall issue. It may be an MTU issue.

However, Netfilter can help:

   iptables -t mangle -A FORWARD -o ppp0 -j TCPMSS --clamp-mss-to-pmtu


-- 
http://sid.rstack.org/
PGP KeyID: 157E98EE FingerPrint: FA62226DA9E72FA8AECAA240008B480E157E98EE
>> Hi! I'm your friendly neighbourhood signature virus.
>> Copy me to your signature file and help me spread!






 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Strange behaviour
@ 2002-12-10  4:48 Arindam Haldar
  0 siblings, 0 replies; 14+ messages in thread
From: Arindam Haldar @ 2002-12-10  4:48 UTC (permalink / raw)
  To: NETFILTER

hi all,

i noticed a peculiar behaviour as in the /var/log/syslog

Dec 10 09:24:58 ICG kernel: vs-500: unknown uniqueness 1073741824
Dec 10 09:24:58 ICG last message repeated 3 times

this happens when i start squid & then give iptables command for 
transparent proxy...

our is slackware 8.1, kernel 2.4.19 squid 2-5s1 & iptables 1-2s7a.
im not sure but is it a kernel related problem ?.. the number, shown in 
syslog (1073741824) is _ALWAYS_ the same...

any ideas or do you forsea any majour problem ?

thanking in advance ...
A.H



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-02-28 17:36 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-26 12:45 strange behaviour angico
2007-02-26 13:03 ` Askar Ali
2007-02-26 13:23   ` Silvio Fonseca
2007-02-26 14:53 ` Pascal Hambourg
2007-02-26 15:09   ` Cedric Blancher
2007-02-26 15:34     ` Pascal Hambourg
2007-02-26 16:18       ` Cedric Blancher
2007-02-26 17:43         ` Pascal Hambourg
2007-02-27  8:55           ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2007-02-26 16:21 angico
2007-02-28 17:36 ` Martijn Lievaart
2007-02-26 15:35 angico
2007-02-26 16:07 ` Cedric Blancher
2002-12-10  4:48 Strange behaviour Arindam Haldar

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.