in

Blocking DHCP Traffic

Last post 11-24-2008 8:56 PM by DLB - Caleb. 14 replies.
Page 1 of 1 (15 items)
Sort Posts: Previous Next
  • 11-17-2008 8:14 PM

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Blocking DHCP Traffic

    Is there any way to block DHCP traffic in a DLB CPE 5-20 or a DLB AP Solo? I have a PtP link setup using two CPE 5-20's, one has been flashed with AP Solo firmware, and need to block DHCP traffic between the two networks. I have not found where I can do this as of yet.

     Thanks

  • 11-17-2008 11:13 PM In reply to

    Re: Blocking DHCP Traffic

    I'm guessing the network is currently bridged?

    Would converting to a routed network work in your application? 

    If you need a bridged network, we could add ebtables rules to the expert mode configuration to drop dhcp packets from going through the bridge...we'll just have to give you a config snippet.

    -Matt

  • 11-18-2008 11:06 AM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     Yes, it is currently bridged, and we would like to keep it that way. The links purpose is to transmit video from a network camera at one site to the recording system at the other site. In this particular situation it is much easier to accomplish the task over a bridged connection, if we can block DHCP traffic between the two. Do I need to send you a config file, or can you just send me the code I need to add? 

  • 11-18-2008 11:21 AM In reply to

    Re: Blocking DHCP Traffic

    Can you go into expert mode, and post your current 'ebtables' section?

    Once you post this, I can modify it and give you something that will work.

    -Matt

  • 11-18-2008 11:33 AM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     Section: ebtables
    ebtables.rule.1.chain=PREROUTING
    ebtables.rule.1.in=ath0
    ebtables.rule.1.status=disabled
    ebtables.rule.1.t.arpnat_target=ACCEPT
    ebtables.rule.1.table=nat
    ebtables.rule.1.target=arpnat
    ebtables.rule.2.chain=POSTROUTING
    ebtables.rule.2.out=ath0
    ebtables.rule.2.status=disabled
    ebtables.rule.2.t.arpnat_target=ACCEPT
    ebtables.rule.2.table=nat
    ebtables.rule.2.target=arpnat
    ebtables.rule.3.chain=BROUTING
    ebtables.rule.3.protocol=0x888e
    ebtables.rule.3.status=enabled
    ebtables.rule.3.table=broute
    ebtables.rule.3.target=DROP

    ebtables.status=enabled

  • 11-18-2008 11:45 AM In reply to

    Re: Blocking DHCP Traffic

    You can add these lines to block any DCHP traffic from being passed through the bridge:

    ebtables.rule.4.chain=FORWARD
    ebtables.rule.4.target=DROP
    ebtables.rule.4.protocol=IPv4
    ebtables.rule.4.in=br0
    ebtables.rule.4.ip.protocol=udp
    ebtables.rule.4.ip.source_port=67:68

    So your rules should now look like:

    ebtables.rule.1.chain=PREROUTING
    ebtables.rule.1.in=ath0
    ebtables.rule.1.status=disabled
    ebtables.rule.1.t.arpnat_target=ACCEPT
    ebtables.rule.1.table=nat
    ebtables.rule.1.target=arpnat
    ebtables.rule.2.chain=POSTROUTING
    ebtables.rule.2.out=ath0
    ebtables.rule.2.status=disabled
    ebtables.rule.2.t.arpnat_target=ACCEPT
    ebtables.rule.2.table=nat
    ebtables.rule.2.target=arpnat
    ebtables.rule.3.chain=BROUTING
    ebtables.rule.3.protocol=0x888e
    ebtables.rule.3.status=enabled
    ebtables.rule.3.table=broute
    ebtables.rule.3.target=DROP

    ebtables.rule.4.chain=FORWARD
    ebtables.rule.4.target=DROP
    ebtables.rule.4.protocol=IPv4
    ebtables.rule.4.in=br0
    ebtables.rule.4.ip.protocol=udp
    ebtables.rule.4.ip.source_port=67:68

    ebtables.status=enabled

    This should work for you. 

    One thing to keep in mind is that the new CPE skins may overwrite what you did in expert mode. So if you add these lines, then make a change in the CPE skin, it may erase these. In the AP firmware, this shouldn't be a problem though.

    Let me know if that works.

    -Matt

     

  • 11-18-2008 3:36 PM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     I am still pulling addresses across the link. I don't know if this makes a differance or not, but I have DHCP servers running on both sides of this link. So it needs to be blocked from both directions. Here is the config.

     

    # Section: ebtables
    ebtables.rule.1.chain=PREROUTING
    ebtables.rule.1.in=ath0
    ebtables.rule.1.status=disabled
    ebtables.rule.1.t.arpnat_target=ACCEPT
    ebtables.rule.1.table=nat
    ebtables.rule.1.target=arpnat
    ebtables.rule.2.chain=POSTROUTING
    ebtables.rule.2.out=ath0
    ebtables.rule.2.status=disabled
    ebtables.rule.2.t.arpnat_target=ACCEPT
    ebtables.rule.2.table=nat
    ebtables.rule.2.target=arpnat
    ebtables.rule.3.chain=BROUTING
    ebtables.rule.3.protocol=0x888e
    ebtables.rule.3.status=enabled
    ebtables.rule.3.table=broute
    ebtables.rule.3.target=DROP
    ebtables.rule.4.chain=FORWARD
    ebtables.rule.4.in=br0
    ebtables.rule.4.ip.protocol=udp
    ebtables.rule.4.ip.source_port=67:68
    ebtables.rule.4.protocol=IPv4
    ebtables.rule.4.target=DROP

    ebtables.status=enabled

     

    I pasted this into the AP. Is it supposed to be pasted into both?

  • 11-18-2008 6:52 PM In reply to

    Re: Blocking DHCP Traffic

     Ok, I think I was missing a line...

    ebtables.rule.4.chain=FORWARD
    ebtables.rule.4.table=filter
    ebtables.rule.4.ip.protocol=udp
    ebtables.rule.4.ip.source_port=67:68
    ebtables.rule.4.protocol=IPv4
    ebtables.rule.4.target=DROP
    ebtables.rule.4.status=enabled

    Can you use this instead...

    (the table=filter line was missing)

    Also, take out the in=br0 line that was previously used

    I just tested this, and it worked for me. Let me know if it works for you.

    -Matt

  • 11-18-2008 7:12 PM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     Works like a charm! Thanks Matt!

  • 11-18-2008 7:18 PM In reply to

    Re: Blocking DHCP Traffic

    No problem... glad I could help Cool
  • 11-18-2008 7:41 PM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     I seem to have jumped the gun.

    The AP is blocking dhcp coming in the wireless interface, but not going out. The camera behind the AP was not able to pull an address acroos the link, but the camera behind the CPE was able to pull an address back the other way.

    Is there any way for us to add that code into the CPE?

  • 11-19-2008 1:08 PM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     So far, so good! This code seems to be blocking dhcp both ways.

    ebtables.rule.5.chain=INPUT
    ebtables.rule.5.table=filter
    ebtables.rule.5.ip.protocol=udp
    ebtables.rule.5.ip.source_port=67:68
    ebtables.rule.5.protocol=IPv4
    ebtables.rule.5.target=DROP
    ebtables.rule.5.status=enabled

    My boss is on his way down there to setup the video recording system. We'llknow by this afternoon if there are any issues.

    Thanks again!

  • 11-20-2008 8:00 PM In reply to

    Re: Blocking DHCP Traffic

    What did the boss find out?

    Caleb

  • 11-21-2008 11:58 AM In reply to

    • gfrazier
    • Top 50 Contributor
    • Joined on 09-27-2008
    • Pearsall, TX
    • Posts 13

    Re: Blocking DHCP Traffic

     Everthing looks good! Thanks guys!

  • 11-24-2008 8:56 PM In reply to

    Re: Blocking DHCP Traffic

    Good deal, let us know if you need anything else.

    Caleb

Page 1 of 1 (15 items)
Copyright Deliberant LLC. All rights reserved.