• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DHCPd with multiple ipv4 subnets outside of local interface network. (300US$)

Scheduled Pinned Locked Moved Bounties
120 Posts 29 Posters 70.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    shimabuku
    last edited by Sep 21, 2013, 2:21 AM

    I would like to also chip in $100  :)

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Sep 21, 2013, 2:25 AM

      @shimabuku:

      I would like to also chip in $100  :)

      Great!  ;D I'll send you this first version of the patch.

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • B
        bennyc
        last edited by Sep 23, 2013, 9:33 AM

        This is something great & added value overall.
        If really hope this makes it to the next releases (as accepted feature), and i'll also add in anther $50 to support dev a bit…

        4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
        1x PC Engines APU2C4, 1x PC Engines APU1C4

        1 Reply Last reply Reply Quote 0
        • S
          shade
          last edited by Sep 23, 2013, 4:28 PM

          @marcelloc:

          I think I got it  ;D

          Great, I have downloaded the files and will test the update in the next couple of days…

          1 Reply Last reply Reply Quote 0
          • E
            eri--
            last edited by Sep 24, 2013, 10:35 AM

            You would probably have that development done from pfSense devs through support channel with the amount of 1600$.
            For this feature it would not require more than that.

            1 Reply Last reply Reply Quote 0
            • B
              bennyc
              last edited by Sep 26, 2013, 11:05 AM

              I can hereby confirm the feature is working as requested in the bounty.
              Tested the mod in following environment: x1250e running 2.1 & a couple of dhcp scopes configured outside of interface's subnet, c3560x doing L3 routing & ip-helper configured on some vlans pointing to pfsense.

              • all config (pfsense anyway) can be done in gui
              • dhcpd replies to correct (ip-helper) gateway, hands out IP in correct scope
              • dhcp leases are visible, sorted on IP ascending, in same page (room for improvement here, if more scopes are used the list can get long/crowded)
              • dhcp log page displays relevant information from all scopes (same here; leaves room for improvement)

              example from dhcp log:
              Sep 26 12:48:41 dhcpd: DHCPACK on 192.168.3.1 to 3x:cx:4x:cx:dx:8x (Win8Phone) via 192.168.3.254
              Sep 26 12:48:41 dhcpd: DHCPREQUEST for 192.168.3.1 (192.168.1.254) from 3x:cx:4x:cx:dx:8x (Win8Phone) via 192.168.3.254

              (yes my log is in reverse order  ;D)

              Great work Marcelloc!

              4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
              1x PC Engines APU2C4, 1x PC Engines APU1C4

              1 Reply Last reply Reply Quote 0
              • S
                shade
                last edited by Sep 27, 2013, 11:22 AM

                Marcelloc:

                We have tested the mod on a OPNsense Quad appliance box, running 2.1 with 2 scopes configured outsite the lan interface's subnet, a5406ZL handling the L3 routing & ip-helper pointing.

                It took some time since we have alot of static dhcp entries that we need transfered to PFsense, and our finding is so far.

                • dhcpd hands out the correct IP scopes, to the right vlans.
                • config in sub scope (that used by os) are working.
                • dhcp leases are shown, but buttons/links are not working*
                • If you try to send a wake-on-lan by cliking the MAC it selects a wrong interface a says:

                The following input errors were detected: A valid interface must be specified.

                I can just correct the interface to LAN and press send then it works.

                If we try to make a static by clicking the "add button", it just return to the start page of the dhcpd, that is not possible.

                • logging of sub scopes works.

                Sep 27 13:23:21 dhcpd: DHCPACK on 10.1.5.70 to 00:23:14:94:6e:bc (EUCBTPR-Pc) via em0
                Sep 27 13:23:21 dhcpd: DHCPREQUEST for 10.1.5.70 from 00:23:14:94:6e:bc (EUCBTPR-Pc) via em0

                (ours in also in reverse)

                1 Reply Last reply Reply Quote 0
                • S
                  shade
                  last edited by Sep 27, 2013, 11:25 AM

                  @ermal:

                  You would probably have that development done from pfSense devs through support channel with the amount of 1600$.
                  For this feature it would not require more than that.

                  Please explain, won't it be possible for us to get the patch from marcelloc included upstream ? or….

                  1 Reply Last reply Reply Quote 0
                  • X
                    xbipin
                    last edited by Sep 27, 2013, 11:52 AM

                    @shade:

                    @ermal:

                    You would probably have that development done from pfSense devs through support channel with the amount of 1600$.
                    For this feature it would not require more than that.

                    Please explain, won't it be possible for us to get the patch from marcelloc included upstream ? or….

                    +1

                    1 Reply Last reply Reply Quote 0
                    • M
                      marcelloc
                      last edited by Sep 27, 2013, 12:47 PM

                      I will push it to 2.2 code since I have a positive feed from you. Core team will check the code and if it's ok, it can be merged.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • B
                        bennyc
                        last edited by Sep 27, 2013, 2:31 PM

                        • If you try to send a wake-on-lan by cliking the MAC it selects a wrong interface a says:

                        Don't know about the button, but the "Wake on lan" as a feature inside those scopes but outside your interface subnet will not work I think. That also uses broadcast, and thus remains within your vlan…. or you need to do some additional configuration on your router by forwarding the broadcasts...

                        The buttons (like add static mapping) does a redirect to the main dhcp page, but the mapping is not present as you say (did not test that, don't use static mappings).

                        4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
                        1x PC Engines APU2C4, 1x PC Engines APU1C4

                        1 Reply Last reply Reply Quote 0
                        • S
                          shade
                          last edited by Sep 27, 2013, 2:49 PM

                          @marcelloc:

                          I will push it to 2.2 code since I have a positive feed from you. Core team will check the code and if it's ok, it can be merged.

                          Sound great  :D

                          1 Reply Last reply Reply Quote 0
                          • S
                            shade
                            last edited by Sep 27, 2013, 2:57 PM

                            @bennyc:

                            The buttons (like add static mapping) does a redirect to the main dhcp page, but the mapping is not present as you say (did not test that, don't use static mappings).

                            That we use alot :/ So it is important for me..

                            @bennyc:

                            Don't know about the button, but the "Wake on lan" as a feature inside those scopes but outside your interface subnet will not work I think. That also uses broadcast, and thus remains within your vlan…. or you need to do some additional configuration on your router by forwarding the broadcasts...

                            You can configure that in your core so WOL packets can get from one vlan to another…

                            1 Reply Last reply Reply Quote 0
                            • M
                              marcelloc
                              last edited by Sep 27, 2013, 3:32 PM

                              @shade:

                              That we use alot :/ So it is important for me..

                              I'll check it today.

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • S
                                shade
                                last edited by Sep 27, 2013, 5:16 PM

                                @marcelloc:

                                @shade:

                                That we use alot :/ So it is important for me..

                                I'll check it today.

                                Thanks :)

                                1 Reply Last reply Reply Quote 0
                                • M
                                  marcelloc
                                  last edited by Sep 30, 2013, 1:19 PM

                                  I've sent you modified files including dhcp leases update.

                                  Please test and feedback.

                                  Treinamentos de Elite: http://sys-squad.com

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bennyc
                                    last edited by Sep 30, 2013, 8:25 PM

                                    as already confirmed through pm  :)

                                    I already updated my system with your code, and can confirm it works.

                                    Test sequence:

                                    • add device on the network
                                    • obtained lease from additional pool
                                    • go to the DHCP leases page, select "+" next to the address of interest
                                    • arrived on the "Services: DHCP: Edit static mapping" page, where you can edit/save the mapping
                                    • entry is added in the dhcpd.conf file as follows:
                                    
                                    host s_lan_0 {
                                    	hardware ethernet 3c:c2:43:ca:xx:xx;
                                    	fixed-address 192.168.3.1;
                                    	option host-name "Win8Phone";
                                    }
                                    
                                    
                                    • afterwards, this host shows as static in "Status: DHCP leases", and the "+" sign is red and inactive

                                    4x XG-7100 (2xHA), 1x SG-4860, 1x SG-2100
                                    1x PC Engines APU2C4, 1x PC Engines APU1C4

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      shade
                                      last edited by Oct 1, 2013, 3:19 PM Oct 1, 2013, 3:17 PM

                                      Marcelloc:

                                      I have updated my PFsense with your patch, and can confirm that it works.

                                      Now static leases on subnet and WOL works.

                                      Looking forward to see it in upstream - Excellent work, two thumbs up :)

                                      WetWilly: Have you tried it ?

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        marcelloc
                                        last edited by Oct 2, 2013, 10:56 PM Oct 2, 2013, 10:43 PM

                                        Pull request sent. ;D

                                        I had to change some parts for 2.2 but it's done again!

                                        https://github.com/pfsense/pfsense/pull/816

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          shade
                                          last edited by Oct 15, 2013, 2:06 PM

                                          Marcelloc:

                                          I have now added several "sub" scopes, and alot of static leases and everything works as excepted :)

                                          It is first time I have tried a bounty and are also a "new" pfsense user, so I have a few mabee newbie questions:

                                          • When 2.1.1 are leases, are the patch still active ? or shall it be reapplied ? or is it even compatible ?
                                          • Will that be the same for each release up to 2.2 when is it included upstream ?
                                          • I have read the guidelines about payment and are a little confused  ? Can I just sent you a paypal payment, or is that against policy ?

                                          To the other creators of this bounty, I feel the bounty is solved, how about you ?

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received