Linux Netfilter discussions
 help / color / mirror / Atom feed
* Forwarding packets received on bridged interfaces to DHCP server -regarding
@ 2008-05-23  0:49 Knight Tiger
  2008-05-23 19:15 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Knight Tiger @ 2008-05-23  0:49 UTC (permalink / raw)
  To: netfilter

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Forwarding packets received on bridged interfaces to DHCP server -regarding
  2008-05-23  0:49 Forwarding packets received on bridged interfaces to DHCP server -regarding Knight Tiger
@ 2008-05-23 19:15 ` Grant Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Taylor @ 2008-05-23 19:15 UTC (permalink / raw)
  To: Mail List - Netfilter

On 05/22/08 19:49, Knight Tiger wrote:
<snip>

> 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.

I suggest that you bridge eth0 and eth1 together and then DHCP the 
bridge interface.

I don't think that this will have any thing to do with it, but make sure 
that ip_forward is not interfering with any thing.

Also what, if any thing, do you have for an IPTables config?



Grant. . . .

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-23 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  0:49 Forwarding packets received on bridged interfaces to DHCP server -regarding Knight Tiger
2008-05-23 19:15 ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox