Skip to contentSkip to conversation

netfilter violates RFC 1812

netfilter-core Harald Welte 2 participants 3 messages Dec 4, 2002 – Dec 9, 2002 1 message not in the archive netfilter

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · Jens Hektor

Hi,

I'm pretty sure that this has been stated elsewhere, but it would be nice to have a fix because Linux packte filters are clearly running well.

Yup, please refer to multiple threads about this subject on netfilter-devel.

Quoted 3 lines

RFC 1812 (pp81-82) clearly states that router with packet filtering capabilities should give ICMP Type "destination unreachable", code "communication administratively prohibited" (13).

this is true. There are patches floating around for exactly this issue. The problem is: It is impossible to add this feature without hurting backwards- or forward-compatibility between new/old iptables-userspace and iptables-kernel. So we're sort of in a no-win situation :(

Quoted 1 line

Bye, Jens Hektor

Signature · 5 lines
Live long and prosper
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
#2 lore raw
Quoted 2 lines · Harald Welte

Yup, please refer to multiple threads about this subject on netfilter-devel.

Should have have looked a bit earlier into this list (before developing my own patch).

Quoted 9 lines
Quoted 3 lines

RFC 1812 (pp81-82) clearly states that router with packet filtering capabilities should give ICMP Type "destination unreachable", code "communication administratively prohibited" (13).

this is true. There are patches floating around for exactly this issue. The problem is: It is impossible to add this feature without hurting backwards- or forward-compatibility between new/old iptables-userspace and iptables-kernel. So we're sort of in a no-win situation :(

I already submitted a bit more elaborated patch to the netfilter-devel.

The situation as I see it could be described as such:

we have five groups of people involved:

a) the netfilter team
b) the distro makers taking more or less actual software what a) give them
c) the mainstream users, mostly using what b) gives them
d) geeks, the compile actual kernels & iptables for themselves
e) others with non-linux OS's

W. Kueter and I started a discussion about e) and whether their machines (OSs) honor rejecting of pakets. Thereby we discovered this flaw in Linux.

I think it would be a good idea to say that there is a new version of kernel as well as iptables which fixes it and can be used only together. Anyone who wants something else should stick to older versions or patch his kernel/iptables by his own.

I think that a)-d) can live with that.

Compatibility is fine but RFC compliance is preferred by me having setup several dozends of linux based paketfilters around here. We should not live with bugs too long and for me it's a bug

Signature · 3 lines
Jens Hektor, RWTH Aachen, Rechenzentrum, Seffenter Weg 23, 52074 Aachen
Computing Center, Aachen University, network operation & security
mailto:[email protected], Tel.: +49 241 80 29206, Raum: 2.35
#3 lore raw
Quoted 6 lines · Jens Hektor

The situation as I see it could be described as such:
[...]
I think it would be a good idea to say that there is a new version of kernel as well as iptables which fixes it and can be used only together. Anyone who wants something else should stick to older versions or patch his kernel/iptables by his own.

Agreed. I will test one of the proposed patches and put it in the queue of pending netfilter patches for 2.4.21-preX

Quoted 1 line

Jens Hektor, RWTH Aachen, Rechenzentrum, Seffenter Weg 23, 52074 Aachen

Signature · 4 lines
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
"If this were a dictatorship, it'd be a heck of a lot easier, just so long
 as I'm the dictator."  --  George W. Bush Dec 18, 2000