Linux Netfilter discussions
 help / color / mirror / Atom feed
* Bug in FORWARD chain in iptables-1.2.7a with Linux kernel 2.4.20?
@ 2003-06-23 13:46 Christian Ericsson
  2003-06-23 15:12 ` MTU vs packet size? Scott MacKay
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Ericsson @ 2003-06-23 13:46 UTC (permalink / raw)
  To: Netfilter (E-mail)

Hi,

I have the following configuration:

INTERNET
|
Firewall (Linux box with IPTables)
|
Router (Linux box with IPTables)


The default policy in the FORWARD chain in the Firewall is set to DROP
packets. So, I have to insert a rule for every traffic I want to accept.

The Router logs all traffic:

iptables --append INPUT   -j LOG --log-level debug --log-prefix "IPTABLES
LOG INPUT "
iptables --append FORWARD -j LOG --log-level debug --log-prefix "IPTABLES
LOG FORWARD "
iptables --append OUTPUT  -j LOG --log-level debug --log-prefix "IPTABLES
LOG OUTPUT "


I don't have any rule in the Firewall which ACCEPT traffic to the Router.
But, when I try to access the Router from INTERNET, the Router will log that
packet which the Firewall should DROP!!!

If I try to ping the router from INTERNET, the Router will log:

Jun 23 15:01:23 Router kernel: IPTABLES FILTER DROP INPUT IN=eth0 OUT=
MAC=XX SRC=A-HOST DST=Router PROTO=ICMP
8
Jun 23 15:01:23 Router kernel: IPTABLES FILTER DROP OUTPUT IN= OUT=eth0
SRC=Router DST=A-HOST PROTO=ICMP


It gets even more strange if I also log the traffic which the Firewall
should DROP, i.e. last rule in the FORWARD chain on the Firewall is:

iptables --append -j LOG --log-level debug --log-prefix "IPTABLES DROP
FORWARD "

The Firewall will log:

Jun 23 15:07:59 Firewall kernel: IPTABLES DROP FORWARD IN=eth3 OUT=eth0
SRC=Router DST=A-HOST PROTO=ICMP

eth0 is connected to INTERNET and eth3 is connected to the Router. Shouldn't
it be the other way around? The Firewall should of course DROP this packet
(the default policy is to DROP packets).


What could be wrong? Do I have to upgrade to the latest version of iptables
and the Linux kernel?


Yours sincerely,

Christian Ericsson



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

* MTU vs packet size?
  2003-06-23 13:46 Bug in FORWARD chain in iptables-1.2.7a with Linux kernel 2.4.20? Christian Ericsson
@ 2003-06-23 15:12 ` Scott MacKay
  2003-06-23 15:29   ` Ramin Dousti
  0 siblings, 1 reply; 3+ messages in thread
From: Scott MacKay @ 2003-06-23 15:12 UTC (permalink / raw)
  To: netfilter

Mainly from interest in the size of the buffer in the
ipq_read(), can you receive a packet who's size is
greater than the MTU of the interface?  In example,
with a 1500 mtu interface, can you receive a 2000 byte
packet?


-Scott

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


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

* Re: MTU vs packet size?
  2003-06-23 15:12 ` MTU vs packet size? Scott MacKay
@ 2003-06-23 15:29   ` Ramin Dousti
  0 siblings, 0 replies; 3+ messages in thread
From: Ramin Dousti @ 2003-06-23 15:29 UTC (permalink / raw)
  To: Scott MacKay; +Cc: netfilter

On Mon, Jun 23, 2003 at 08:12:48AM -0700, Scott MacKay wrote:

> Mainly from interest in the size of the buffer in the
> ipq_read(), can you receive a packet who's size is
> greater than the MTU of the interface?  In example,
> with a 1500 mtu interface, can you receive a 2000 byte
> packet?

Yes, MTU is Maximum _Transfer_ Unit. If you set it to a
number less than the actual layer2 capability and the other
side sets it to the real MTU of the link, then you will send
small packets but you would receive bigger packets than your
set MTU.

Ramin

> -Scott
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com


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

end of thread, other threads:[~2003-06-23 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 13:46 Bug in FORWARD chain in iptables-1.2.7a with Linux kernel 2.4.20? Christian Ericsson
2003-06-23 15:12 ` MTU vs packet size? Scott MacKay
2003-06-23 15:29   ` Ramin Dousti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox