(DHCP) Ebtables ruleset isn't working, any ideas?
I can't get DHCP to work through the firewall, I've tried everything, even:
ebtables -A FORWARD -p IPv4 --ip-sport 67:68 -j ACCEPT
ebtables -A FORWARD -p IPv4 --ip-dport 67:68 -j ACCEPT
Other things I tried:
ebtables -A FORWARD -i eth0 -o eth1 -p 0x800 --ip-src 192.168.0.1 --ip-proto udp --ip-sport 67:68 -j ACCEPT ebtables -A FORWARD -i eth1 -o eth0 -p 0x800 --ip-dst 255.255.255.255/255.255.255.255 --ip-proto udp --ip-dport 67:68 -j ACCEPT
and before that:
ebtables -A FORWARD -p 0x800 --ip-src 192.168.0.1 --ip-proto udp --ip-sport 68 -j ACCEPT ebtables -A FORWARD -p 0x800 --ip-dst 192.168.0.1 --ip-proto udp --ip-dport 67 -j ACCEPT
Quoted 35 lines · Jozsef Kadlecsik
From: Jozsef Kadlecsik <[email protected]>
Subject: Re: Ebtables ruleset isn't working, any ideas?
To: "Miguel Ghobangieno" <[email protected]>
Cc: [email protected]
Date: Wednesday, May 20, 2009, 7:24 AMQuoted 1 line · Miguel Ghobangieno
Ok I broke the rules up, and I used the hex value for
the protocals
Quoted 1 line
rather than the ascii "IP" etc; it workes now. This is
a debian stable
Quoted 1 line
box, I guess the ebtables that comes in apt is too
ancient. I would like
Quoted 1 line
to log everyone who attepts to access port 22 tcp on
eth2 though (allow
Quoted 1 line
them through but log).
If
ebtables -h logdoes not produce the help text of the log watcher,
then you have to install ebtables manually, to get the required logging
functionality.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 11 lines · Miguel Ghobangieno
I can't get DHCP to work through the firewall, I've tried everything, even:
ebtables -A FORWARD -p IPv4 --ip-sport 67:68 -j ACCEPT
ebtables -A FORWARD -p IPv4 --ip-dport 67:68 -j ACCEPTOther things I tried:
ebtables -A FORWARD -i eth0 -o eth1 -p0x800--ip-src 192.168.0.1 --ip-proto udp --ip-sport 67:68 -j ACCEPT ebtables -A FORWARD -i eth1 -o eth0 -p0x800--ip-dst 255.255.255.255/255.255.255.255 --ip-proto udp --ip-dport 67:68 -j ACCEPTand before that:
ebtables -A FORWARD -p0x800--ip-src 192.168.0.1 --ip-proto udp --ip-sport 68 -j ACCEPT ebtables -A FORWARD -p0x800--ip-dst 192.168.0.1 --ip-proto udp --ip-dport 67 -j ACCEPT
What is your kernel version? What is your ebtables version?
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
Quoted 3 lines · Miguel Ghobangieno
I can't get DHCP to work through the firewall, I've tried everything, even:
ebtables -A FORWARD -p IPv4 --ip-sport 67:68 -j ACCEPT
ebtables -A FORWARD -p IPv4 --ip-dport 67:68 -j ACCEPT
You deduced that you have to use numbers and not names. Why don't you follow that? Probably you need
ebtables -A FORWARD -p 0x800 --ip-proto udp --ip-sport 67:68 -j ACCEPT
But it's really strange and suspicious that names do not work, something is really broken on your system. Have you got a correct /etc/ethertypes file? Does you run the ebtables commands in chroot?
Quoted 3 lines
Other things I tried:
ebtables -A FORWARD -i eth0 -o eth1 -p0x800--ip-src 192.168.0.1 --ip-proto udp --ip-sport 67:68 -j ACCEPT ebtables -A FORWARD -i eth1 -o eth0 -p0x800--ip-dst 255.255.255.255/255.255.255.255 --ip-proto udp --ip-dport 67:68 -j ACCEPT
Could you draw the topology of your network? For example, if your firewall is the dhcp server, then the chains are definitely wrong above. Or maybe the interfaces are mixed up.
Why don't you log the packets??
Quoted 3 lines
and before that:
ebtables -A FORWARD -p0x800--ip-src 192.168.0.1 --ip-proto udp --ip-sport 68 -j ACCEPT ebtables -A FORWARD -p0x800--ip-dst 192.168.0.1 --ip-proto udp --ip-dport 67 -j ACCEPT
These rules makes no sense to me.
Quoted 3 lines
Kernel (newest stable w/grsecurity patch):
2.6.29.3-grsec
If you have got grsecurity enabled and the dhcp server runs on the firewall, then grsec must be tuned too.
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