serious problem with 2.4.24 combined with KVM switch (fwd)
Hello Oliver,
Quoted 9 lines
Quoted 5 lines
While it shouldn't crash (regardless), it should also not be activating
the helper and REJECTing. Is it possible the the REJECT log entry is
on an INPUT rule, while the helper is being triggered on a PREROUTING rule, due to the architecture of the network you've described (or vice versa)?The REJECT is in an INPUT rule. But I do not think that a PREROUTING rule is involved. I just looked at the rules, and PREROUTING is only done for other physical networks.
Ok - You said originally that;
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
The problem occurs when:
- a client broadcasts a tftp request, with source IP 192.168.160.255
- server in the same physical network, but logical network 192.168.10.0/24 replies
- the reply is routed through the gateway (which has an alias IP 192.168.160.1 netmask /24 on the same physical network, if this is relevant)
- gateway blocks with REJECT. This message ist still in the logs, but soon after that the kernel panics.
So, I'm assuming that you have something like this on your gateway;
eth0 192.168.10.1/255.255.255.0
eth0:1 192.168.160.1/255.255.255.0
.. and that you're forwarding. In which direction is the INPUT packet REJECTed ? Ie;
a) RRQ: broadcaster -> tftp server/broadcast
b) ACK/DATA: tftp server -> broadcaster/booting host Additional places to look are going to come from how your
rules are structured. For example, I'd probably expect to see a REJECT on INPUT at "a" and then a some interesting stuff with "b". Depending on your ruleset, "b" may REJECT on PREROUTING, FORWARD or POSTROUTING. And, IIRC there is a /proc security option for restricting directed broadcasts, though I don't know if this affects forwarded (non-locally generated) traffic. It may also be possible that once the "b" traffic has made it through your gateway, that the ACK is received by the INPUT of the eth0 interface at the gateway again (as the original RRQ source was a broadcast address) -- this may also be part of the problem.
Maybe a tcpdump/ethereal capture at the gateway would reveal
more?
--
Ian Latter
Internet and Networking Security Officer
Macquarie University
Meet me at the Australian Unix and open systems
User Group (AUUG) Security Symposium; 2004
http://www.auug.org.au/events/2004/security/
Quoted 25 lines · Ian Latter
Hello Oliver,
Quoted 9 lines
Quoted 5 lines
While it shouldn't crash (regardless), it should also not be activating
the helper and REJECTing. Is it possible the the REJECT log entry is
on an INPUT rule, while the helper is being triggered on a PREROUTING rule, due to the architecture of the network you've described (or vice versa)?The REJECT is in an INPUT rule. But I do not think that a PREROUTING rule is involved. I just looked at the rules, and PREROUTING is only done for other physical networks.
Ok - You said originally that;
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
The problem occurs when:
- a client broadcasts a tftp request, with source IP 192.168.160.255
- server in the same physical network, but logical network 192.168.10.0/24 replies
- the reply is routed through the gateway (which has an alias IP 192.168.160.1 netmask /24 on the same physical network, if this is relevant)
- gateway blocks with REJECT. This message ist still in the logs, but soon after that the kernel panics.
Quoted 4 lines
So, I'm assuming that you have something like this on your gateway;
eth0 192.168.10.1/255.255.255.0
eth0:1 192.168.160.1/255.255.255.0
Correct. That's what I already said.
Quoted 5 lines
.. and that you're forwarding. In which direction is the INPUT packet REJECTed ? Ie;
a) RRQ: broadcaster -> tftp server/broadcast b) ACK/DATA: tftp server -> broadcaster/booting host
case b). As described above. We do not see a) in the gateway logs, although it is surely noticed by it.
Quoted 12 lines
Additional places to look are going to come from how your
rules are structured. For example, I'd probably expect to see a REJECT on INPUT at "a" and then a some interesting stuff with "b". Depending on your ruleset, "b" may REJECT on PREROUTING, FORWARD or POSTROUTING. And, IIRC there is a /proc security option for restricting directed broadcasts, though I don't know if this affects forwarded (non-locally generated) traffic. It may also be possible that once the "b" traffic has made it through your gateway, that the ACK is received by the INPUT of the eth0 interface at the gateway again (as the original RRQ source was a broadcast address) -- this may also be part of the problem.
Quoted 2 lines
Maybe a tcpdump/ethereal capture at the gateway would reveal
more?
It probably would help. Unfortunately, we can reproduce this only in our production network, so we can do it only when most people have left the office. And currently I am overloaded with other work.
Greetings,
Oliver
Signature · 4 lines
Cyclades GmbH - Everywhere with Linux Oliver Kurth Cyclades GmbH Research & Development Rennweg 33 Fon/Fax: +49 (0) 8122 90999-34/-33 D-85435 Erding