Forwarding packets received on bridged interfaces to DHCP server -regarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Let me describe the setup that I wish to build.

I  have a Linux box with two interfaces, eth0 and eth1. eth1 is a
wireless interface with connects to a network and receives a DHCP
address. eth0 connects to a AP (with a cross over cable) and provides
Internet connection to a bunch of clients. The setup looks like this

AP1 <--> eth0      eth1 <---> AP2<---> DHCP server.

Using brctl I create a bridge with eth1 and eth0. I have not assigned
an IP address for the bridge. eth1 receives an IP address for the DHCP
server. When a client connects to AP1 and requests an IP address from
the same DHCP server, I am not able to see the request on the DHCP
server. I did a tcpdump on eth0, eth1 and br0. I am able to see the
DHCP request packet with the client MAC address on all three
interfaces. But for some reason, the DHCP request is not forwarded to
the DHCP server.

So I installed ebtables to redirect the packets when it arrives on
eth0 to eth1 so that the packets can be forwarded to the DHCP server.
I use the BROUTING chain for I read that it is the first chain to be
traversed when a packet arrives on a bridged NIC. But for some reason,
the packets are not forwarded. Is there something wrong with my
settings on ebtables ?

ebtables -t broute -I BROUTING -d ff:ff:ff:ff:ff:ff -i eth0 -j ACCEPT
ebtables -t broute -I BROUTING -d ff:ff:ff:ff:ff:ff -j DROP

I only want the bridge to forward all the traffic it receives on eth0
to eth1 and eth1 should send the packets out.

All incoming packets not destined for eth1's IP address should be
forwarded to eth0.

I would greatly appreciate any leads in ebtables configuration.

Thanks
Regards
Knight
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux