(ebtables log) (DHCP) Ebtables ruleset isn't working, any ideas?
Eth2 is the management interface. The box should be sending whatever comes in via eth1 to eth2.
Quoted 119 lines · Jozsef Kadlecsik
From: Jozsef Kadlecsik <[email protected]>
Subject: Re:(ebtables log) (DHCP) Ebtables ruleset isn't working, any ideas?
To: "Miguel Ghobangieno" <[email protected]>
Cc: [email protected]
Date: Thursday, May 21, 2009, 10:47 AMQuoted 8 lines · Miguel Ghobangieno
/usr/sbin/brctladdbr br0/usr/sbin/brctladdif br0 eth0/usr/sbin/brctladdif br0 eth1/sbin/iplink set br0 up/sbin/iplink set eth0 up # don't ask me why/sbin/iplink set eth1 up # don't ask me why #/sbin/ip addr add 192.168.0.6 brd + dev br0 #/sbin/route add default gw 192.168.0.1 dev br0 ##Onlyneeded if eth2 hasn't allready set default gateway
Quoted 6 lines
# ebtables... # example rule: block all ICMP ebtables -F FORWARD ebtables -P FORWARD DROP ebtables -A FORWARD -p ip --log --log-ip --log-arp--log-prefix MISC
Quoted 1 line
ebtables -A FORWARD -p ip --ip-proto icmp -j DROP
--log --log-ip --log-arp --log-prefix ICMP ## block all ICMP
Quoted 2 lines
ebtables -A FORWARD -p
0x800--ip-proto udp --ip-sport67:68 -j ACCEPT --log --log-ip --log-arp --log-prefix a67
Quoted 1 line
ebtables -A FORWARD -p
0x800--ip-proto udp --ip-dport67:68 -j ACCEPT --log --log-ip --log-arp --log-prefix b67 [...]
Quoted 1 line
May 21 01:03:46 debian-firewall-0 kernel: MISC IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0800IP SRC=0.0.0.0 IP DST=255.255.255.255, IP tos=0x10, IP proto=17 SPT=68 DPT=67Here comes a DHCP request, prefixed as "MISC".
Quoted 1 line
May 21 01:03:46 debian-firewall-0 kernel: a67 IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0800IP SRC=0.0.0.0 IP DST=255.255.255.255, IP tos=0x10, IP proto=17 SPT=68 DPT=67The DHCP request is allowed through your bridging firewall, via eth0.
According to your logs, never answered by a DHCP server.Quoted 1 line
May 21 01:03:47 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=167.206.3.203Quoted 1 line
May 21 01:03:48 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=167.206.3.203Quoted 1 line
May 21 01:03:49 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=167.206.3.203Quoted 1 line
May 21 01:03:51 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=192.168.1.1Quoted 1 line
May 21 01:03:52 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=192.168.1.1Quoted 1 line
May 21 01:03:53 debian-firewall-0 kernel: ARP IN=eth1OUT=eth0 MAC source = 00:08:0d:54:13:c9 MAC dest = ff:ff:ff:ff:ff:ff proto =
0x0806ARP HTYPE=1, PTYPE=0x0800, OPCODE=1 ARP MAC SRC=00:08:0d:54:13:c9 ARP IP SRC=169.254.5.88 ARP MAC DST=00:00:00:00:00:00 ARP IP DST=192.168.1.1Unanswered ARP requests.
In your description, you network behind br0 (eth0, eth1) is
192.168.0.0(/24). So where come IP addresses 169.254.5.88 and
167.206.3.203 in an ARP request from this network?Quoted 1 line
May 21 01:03:57 debian-firewall-0 dhclient:DHCPREQUEST on eth2 to 192.168.0.1 port 67
According to your settings above the firewall has got the interfaces eth0,
eth1 and br0 activated. From where comes the interface eth2 then? Why does
the dhcp client on the firewall send the dhcp request via eth2 to
192.168.0.1, when - again, according to your own drawing - 192.168.0.1 is
behind eth0.Best regards,
Jozsef
-
E-mail : [email protected], [email protected]
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear PhysicsH-1525 Budapest 114,POB. 49, Hungary
Quoted 2 lines · Miguel Ghobangieno
Eth2 is the management interface. The box should be sending whatever comes in via eth1 to eth2.
Your network setup makes no sense to me. Good luck in fixing your configuration.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary