Skip to contentSkip to conversation

mysterious dropped echo replies

DISCUSSION Udo Rader 4 participants 10 messages May 31, 2005 – Jun 1, 2005

lore
Share & tools
lore

Udo Rader

author
#0 lore raw

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case of a ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes in the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j ACCEPT

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch all') rule.

This is something new, because I haven't changed the iptaples setup for quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

#1 lore raw

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader <[email protected]> wrote:

Those are illegal packets:

Quoted 2 lines

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 51 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case of a ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes in the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j ACCEPT

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch all') rule.

This is something new, because I haven't changed the iptaples setup for quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Signature · 4 lines
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm a punk, cause of the hairstyle(220V).
end
#2 lore raw

I was totally wrong and realised it a min after sending. In fact why don't you post your whole script. Do you use connection limiting? RP_filter? First - check that the netmask is set correctly on 240. As long as they are on the same segment, they aren't suppose to talk via the router. They just have to ARP discover each other and talk directly. A machine gets to default gw, when the ip is not in the routing table. IS THIS A PPP network?

Quoted 62 lines · Sertys

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader <[email protected]> wrote:

Those are illegal packets:

Quoted 2 lines

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 51 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case of a ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes in the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j ACCEPT

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch all') rule.

This is something new, because I haven't changed the iptaples setup for quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Signature · 4 lines
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm a punk, cause of the hairstyle(220V).
end
author
#3 lore raw

Hi Sertys,

thanks for your reponse. I doubt that my entire script will help much, but anyway, I attached it (obfuscated a bit, of course :-)

Yes, we are using traffic shaping (qdisc), but not RP_filter.

The netmask for .240 is find, actually .240 _is_ the router, the router sends echo replies to some other hosts in the DMZ for reasons unknown ...

And no, this is no PPP network but a leased line instead.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 77 lines · Sertys

I was totally wrong and realised it a min after sending. In fact why don't you post your whole script. Do you use connection limiting? RP_filter? First - check that the netmask is set correctly on 240. As long as they are on the same segment, they aren't suppose to talk via the router. They just have to ARP discover each other and talk directly. A machine gets to default gw, when the ip is not in the routing table. IS THIS A PPP network?

Quoted 63 lines · Sertys

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader
<[email protected]> wrote:

Those are illegal packets:

Quoted 2 lines

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 51 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28 TOS=0x00 PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case of a ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes in the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j ACCEPT

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch all') rule.

This is something new, because I haven't changed the iptaples setup for quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Signature · 6 lines
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
udo rader              technischer leiter/CEM   mobile  ++43 660 5263642
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      fax      ++43 512 935833
http://www.bestsolution.at                      phone    ++43 512 935834
#4 lore raw

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns the packet and sends and icmp message to the src!

Quoted 105 lines · Udo Rader

Hi Sertys,

thanks for your reponse. I doubt that my entire script will help much, but anyway, I attached it (obfuscated a bit, of course :-)

Yes, we are using traffic shaping (qdisc), but not RP_filter.

The netmask for .240 is find, actually .240 _is_ the router, the router sends echo replies to some other hosts in the DMZ for reasons unknown ...

And no, this is no PPP network but a leased line instead.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 86 lines · Sertys

I was totally wrong and realised it a min after sending. In fact why don't you post your whole script. Do you use connection limiting? RP_filter? First - check that the netmask is set correctly on 240. As long as they are on the same segment, they aren't suppose to talk via the router. They just have to ARP discover each other and talk directly. A machine gets to default gw, when the ip is not in the routing table. IS THIS A PPP network?

Quoted 5 lines · Sertys

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader
<[email protected]> wrote:

Those are illegal packets:

Quoted 1 line

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 12 lines
Quoted 1 line

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 8 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 10 lines
Quoted 10 lines

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case

of a

Quoted 4 lines
Quoted 4 lines

ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes

in

Quoted 7 lines
Quoted 7 lines

the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j

ACCEPT

Quoted 6 lines
Quoted 6 lines

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 4 lines
Quoted 4 lines

state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 3 lines
Quoted 3 lines

state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch

all')

Quoted 3 lines
Quoted 3 lines

rule.

This is something new, because I haven't changed the iptaples setup

for

Quoted 9 lines
Quoted 6 lines

quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Signature · 4 lines
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm a punk, cause of the hairstyle(220V).
end
author
#5 lore raw

thanks for your suggestion, now indeed I don't get any strange log messages any more. And even better I reviewed the firewall configuration and found some other "strange" things in it as well :-)

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 129 lines · Sertys

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns the packet and sends and icmp message to the src!

Quoted 110 lines · Udo Rader

Hi Sertys,

thanks for your reponse. I doubt that my entire script will help much, but anyway, I attached it (obfuscated a bit, of course :-)

Yes, we are using traffic shaping (qdisc), but not RP_filter.

The netmask for .240 is find, actually .240 _is_ the router, the router sends echo replies to some other hosts in the DMZ for reasons unknown ...

And no, this is no PPP network but a leased line instead.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 91 lines · Sertys

I was totally wrong and realised it a min after sending. In fact why don't
you post your whole script. Do you use connection limiting? RP_filter? First - check that the netmask is set correctly on 240. As long as they are on the same segment, they aren't suppose to talk via the router. They
just have to ARP discover each other and talk directly. A machine gets to
default gw, when the ip is not in the routing table. IS THIS A PPP network?

Quoted 5 lines · Sertys

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader
<[email protected]> wrote:

Those are illegal packets:

Quoted 1 line

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 12 lines
Quoted 1 line

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 8 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it (probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 10 lines
Quoted 10 lines

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface (eth1) and destined to 192.168.100.10.

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case

of a

Quoted 4 lines
Quoted 4 lines

ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other boxes

in

Quoted 7 lines
Quoted 7 lines

the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state --state NEW -j

ACCEPT

Quoted 6 lines
Quoted 6 lines

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 4 lines
Quoted 4 lines

state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 3 lines
Quoted 3 lines

state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch

all')

Quoted 3 lines
Quoted 3 lines

rule.

This is something new, because I haven't changed the iptaples setup

for

Quoted 9 lines
Quoted 6 lines

quite some time, so if anybody has any guess on what's going on here.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Signature · 5 lines
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm  
a punk, cause of the hairstyle(220V).
end
Signature · 6 lines
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
udo rader              technischer leiter/CEM   mobile  ++43 660 5263642
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      fax      ++43 512 935833
http://www.bestsolution.at                      phone    ++43 512 935834
#6 lore raw

I have a similar situation where I get mysterious dropped echo replies.

May 31 18:26:37 fw1 FW-RULE 19 -- DENY IN= OUT=eth0 SRC=64.48.194.253
DST=62.183.11.71 LEN=28 TOS=0x00 PREC=0xE0 TTL=64 ID=63250 PROTO=ICMP TYPE=0
CODE=0 ID=512 SEQ=46741
May 31 19:03:36 fw1 FW-RULE 19 -- DENY IN= OUT=eth0 SRC=64.48.194.253

DST=62.118.140.48 LEN=28 TOS=0x00 PREC=0xE0 TTL=64 ID=41443 PROTO=ICMP TYPE=0 CODE=0 ID=512 SEQ=22592

Again these packets originate at the FW (64.48.194.253) running iptables, and in my case all dropped packets are destined to the outside addresses.

I looked at the rules and I cannot see the reason of this behaviour.

Can anybody help?
Note: I attached the iptables script.

Clemente

-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Udo Rader
Enviada: terça-feira, 31 de Maio de 2005 17:59
Para: Netfilter list
Assunto: Re: mysterious dropped echo replies

thanks for your suggestion, now indeed I don't get any strange log messages any more. And even better I reviewed the firewall configuration and found some other "strange" things in it as well :-)

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 88 lines · Sertys

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns
the packet and sends and icmp message to the src!

Quoted 76 lines · Udo Rader

Hi Sertys,

thanks for your reponse. I doubt that my entire script will help much, but anyway, I attached it (obfuscated a bit, of course :-)

Yes, we are using traffic shaping (qdisc), but not RP_filter.

The netmask for .240 is find, actually .240 _is_ the router, the router sends echo replies to some other hosts in the DMZ for reasons unknown ...

And no, this is no PPP network but a leased line instead.

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 57 lines · Sertys

I was totally wrong and realised it a min after sending. In fact why
don't
you post your whole script. Do you use connection limiting? RP_filter? First - check that the netmask is set correctly on 240. As long as they are on the same segment, they aren't suppose to talk via the router. They
just have to ARP discover each other and talk directly. A machine gets

to
default gw, when the ip is not in the routing table. IS THIS A PPP network?

Quoted 5 lines · Sertys

On Tue, 31 May 2005 10:42:36 +0200, Udo Rader
<[email protected]> wrote:

Those are illegal packets:

Quoted 1 line

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 14 lines
Quoted 2 lines

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

There's no type0&code0 combination.

Quoted 9 lines

Hi,

I am stuck with a strange phenonemon where iptables drops packages it
(probably) shouldn't.

The dropped packages are logged like this:

DROP IN= OUT=eth1 SRC=192.168.100.240 DST=192.168.100.10 LEN=28

TOS=0x00

Quoted 8 lines
Quoted 8 lines

PREC=0x00 TTL=64 ID=32153 PROTO=ICMP TYPE=0 CODE=0 ID=45639 SEQ=0

So that means that this is about an icmp echo reply, originating from 192.168.100.240, pending to be sent through its internal interface
(eth1) and destined to 192.168.100.10.

Quoted 5 lines
Quoted 5 lines

It is completely mysterious to me where this reply comes from, but that's not all.

Each of the two hosts involved can ping each other and in the case

of a

Quoted 4 lines
Quoted 4 lines

ping, iptables does not drop any packages.

If I shut down 192.168.100.10 (a box within the DMZ), it doesn't take long until iptables starts to drop packages destined to other

boxes

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

in

Quoted 7 lines
Quoted 7 lines

the DMZ.

One of the first rules in my iptables setup is this:

iptables -A INPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A OUTPUT -s 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -s 192.168.100.0/24 -m state

--state NEW -j

Quoted 45 lines
Quoted 27 lines
Quoted 27 lines

ACCEPT

Quoted 6 lines
Quoted 6 lines

For the internal interface this is the first rule:

iptables -A INPUT -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -i eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 4 lines
Quoted 4 lines

state --state NEW -j ACCEPT
iptables -A OUTPUT -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24 -m state --state NEW -j ACCEPT iptables -A FORWARD -o eth1 -s 192.168.100.0/24 -d 192.168.100.0/24

-m

Quoted 3 lines
Quoted 3 lines

state --state NEW -j ACCEPT

The rule that drops the package is the very last one (the 'catch

all')

Quoted 4 lines
Quoted 4 lines

rule.

This is something new, because I haven't changed the iptaples setup

for

Quoted 5 lines
Quoted 5 lines

quite some time, so if anybody has any guess on what's going on here.

Udo Rader

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

BestSolution.at GmbH
http://www.bestsolution.at

--
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm
a punk, cause of the hairstyle(220V).
end

Signature · 6 lines
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
udo rader              technischer leiter/CEM   mobile  ++43 660 5263642
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      fax      ++43 512 935833
http://www.bestsolution.at                      phone    ++43 512 935834
#7 lore raw
In reply to Sertys
Quoted 5 lines · Sertys

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns the packet and sends and icmp message to the src!

RETURN returns the packet to the calling chain, or enforces the root chain's POLICY if there is no calling chain to return to. your description matches what REJECT does, not RETURN.

-j

--
"Stewie: Damn the toilet. It's made slaves of you all. It just
sits there consuming other people's feces while contributing nothing of its own to society."
--Family Guy

author
#8 lore raw

Hmm, the packages were obviously RETURNed by the line mentioned to the global root "catch all" rule and thats exactly what should normally happen.

In the end I neither want the packages to be dropped nor rejected but returned instead for the inspection by other chains, but I will only switch back to RETURN after if I've found the origin for the echo replies.

So for now, I am quite happy with both DROP and REJECT, thanks :-)

Udo Rader

BestSolution.at GmbH
http://www.bestsolution.at

Quoted 18 lines · Jason Opperisano
Quoted 5 lines · Sertys

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns the packet and sends and icmp message to the src!

RETURN returns the packet to the calling chain, or enforces the root chain's POLICY if there is no calling chain to return to. your description matches what REJECT does, not RETURN.

-j

--
"Stewie: Damn the toilet. It's made slaves of you all. It just
sits there consuming other people's feces while contributing nothing of its own to society."
--Family Guy

Signature · 6 lines
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
udo rader              technischer leiter/CEM   mobile  ++43 660 5263642
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      fax      ++43 512 935833
http://www.bestsolution.at                      phone    ++43 512 935834
#9 lore raw
In reply to Jason Opperisano

My bad.....

Quoted 18 lines · Jason Opperisano
Quoted 5 lines · Sertys

Well , this line :
iptables -t nat -A Cid3D99741E.0 -d 192.168.100.0/24 -j RETURN

change it to -j DROP and it wont generate any replies. -j RETURN, returns the packet and sends and icmp message to the src!

RETURN returns the packet to the calling chain, or enforces the root chain's POLICY if there is no calling chain to return to. your description matches what REJECT does, not RETURN.

-j

--
"Stewie: Damn the toilet. It's made slaves of you all. It just
sits there consuming other people's feces while contributing nothing of its own to society."
--Family Guy

Signature · 4 lines
www.supportivo.org

I can't stop myself checking for pigs in the outlets. Everybody thinks i'm a punk, cause of the hairstyle(220V).
end