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

Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal

Scheduled Pinned Locked Moved DHCP and DNS
15 Posts 4 Posters 957 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.
  • M
    mleone87
    last edited by Jul 17, 2020, 2:25 PM

    Hi,
    I'm migrating a couple o indipendent SonicWall appliances to a HA setup based on a couple of XG7100 routers.
    All it's good but the SonicWalls permit server AND relay functionalities via "IP Helper" and similiar functionalities.
    I dont have any L3 switch at my disposal to delegate this functionality, can you suggest a solution for that? Can NAT be used for that?

    Thanks

    J 1 Reply Last reply Jul 17, 2020, 7:32 PM Reply Quote 0
    • J
      JKnott @mleone87
      last edited by Jul 17, 2020, 7:32 PM

      @mleone87

      Nope. DHCP uses a specific port, which can be used for either the relay, the server, not both. To use both, you'd have to put one on different port, but that's not something you can change. A L3 switch wouldn't do it either. BTW, a L3 switch and router are functionally equivalent.

      PfSense running on Qotom mini PC
      i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
      UniFi AC-Lite access point

      I haven't lost my mind. It's around here...somewhere...

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Jul 17, 2020, 8:03 PM

        So your trying to do relay and also run dhcpd on different network of pfsense? Yeah can't really do that, to be a relay pfsense can not run dhcpd on any interface.. Atleast in 2.4.5p1

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          mleone87
          last edited by Jul 17, 2020, 8:53 PM

          Yes, I would use relay on some interfaces(2 or 3 btw), and for some other the pfsense dhcp server functionalities. I was thinking to a L3 switch because maybe the software onboard permit that(I've read about this during some researches on the topic).

          No solution except moving relayed dhcp to pfsense itself?

          thanks

          J 1 Reply Last reply Jul 17, 2020, 9:02 PM Reply Quote 0
          • J
            JKnott @mleone87
            last edited by Jul 17, 2020, 9:02 PM

            @mleone87

            Why do you need a relay? You'd normally only use one if there wasn't a DHCP server on the LAN segment.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            M 1 Reply Last reply Jul 17, 2020, 9:40 PM Reply Quote 0
            • M
              mleone87 @JKnott
              last edited by Jul 17, 2020, 9:40 PM

              @JKnott there is an AD server with DHCP/DNS enabled, just for historical reasons, not practical. All networks relayed actually relay to that server. The migration from sonicwalls to pfsense would be a simple porting in the 1st phase and a decommission of AD DHCP in the 2nd phase

              my real question is why on sonicwall si so simple to do that :)

              thanks

              J 1 Reply Last reply Jul 18, 2020, 1:28 AM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz Jul 17, 2020, 11:07 PM Jul 17, 2020, 11:03 PM

                @mleone87 said in Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal:

                my real question is why on sonicwall si so simple to do that :)

                Do what run a dhcpd and relay on the same box.. Not some screaming feature that would have much use to be honest.. You either run dhcpd on pfsense, or you use it as a relay.

                Most larger networks that would run their own dedicated dhcpd have little use of the pretty basic dhcpd on pfsense. But if its going to route your L3, then dhcp relay would be needed.. To be honest if your a AD shop, it would make zero sense to move dns and dhcp to pfsense. Are you moving away from AD completely? If so then yeah you can run dhcpd on pfsense, and sure provide dns.. But your already a AD shop, and still going to be - I wouldn't want to move those services to pfsense.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                M 1 Reply Last reply Jul 19, 2020, 11:16 AM Reply Quote 0
                • J
                  JKnott @mleone87
                  last edited by Jul 18, 2020, 1:28 AM

                  @mleone87 said in Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal:

                  my real question is why on sonicwall si so simple to do that :)

                  How does it sort out which requests go to the local DNS and which get relayed?

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  1 Reply Last reply Reply Quote 0
                  • M
                    mleone87 @johnpoz
                    last edited by Jul 19, 2020, 11:16 AM

                    @johnpoz we will move all functionalities to pfsense box since DHCP/DNS feature of AD are only for address reservation

                    @JKnott I'm not the most expert networking GUI on the planet but you the software bind the port per interface and not for all interfaces like pfsense does, it's the most easy thing to do :)

                    J 1 Reply Last reply Jul 19, 2020, 11:35 AM Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Jul 19, 2020, 11:31 AM

                      @mleone87 said in Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal:

                      DHCP/DNS feature of AD are only for address reservation

                      Didn't answer my question - are your devices members of the AD? If your going to continue to use AD, members of and uses login.. It makes no sense to move DNS which a vital role in how AD works to somewhere else, and dhcp goes hand in hand with that.

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @mleone87
                        last edited by Jul 19, 2020, 11:35 AM

                        @mleone87 said in Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal:

                        it's the most easy thing to do :)

                        So code will be submitted to pull this weekend by you I guess??

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • M
                          mleone87
                          last edited by mleone87 Jul 19, 2020, 4:04 PM Jul 19, 2020, 3:36 PM

                          Here we go, same old story pfSense staff eh?
                          Blame people to do pull request it's not the best way to handle help req in forums, and it's even worst if you think that I made my client spend a lot of money for a couple of xg7100 probabily in the last ever suggestion about this software again.

                          I'l put again the original question: How to use DHCP Relay AND Server on the same pfSense setup
                          It can't be possible because whatever? Fine thanks

                          Good joob anyway to loose another paying customer ;)

                          Edit: we can close now since I do not have time to handle other smart guys

                          J 1 Reply Last reply Jul 19, 2020, 6:10 PM Reply Quote 0
                          • J
                            JKnott @mleone87
                            last edited by Jul 19, 2020, 6:10 PM

                            @mleone87

                            One thing to bear in mind is that pfSense is built on FreeBSD, which is where many of the limitations come from. Something like this might require change from the FreeBSD team.

                            PfSense running on Qotom mini PC
                            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                            UniFi AC-Lite access point

                            I haven't lost my mind. It's around here...somewhere...

                            1 Reply Last reply Reply Quote 0
                            • J
                              jimp Rebel Alliance Developer Netgate
                              last edited by Jul 21, 2020, 6:03 PM

                              It isn't possible because of the way DHCP relay needs to latch onto upstream and downstream interfaces and the way the DHCP daemon latches onto interfaces.

                              With significant development work it might be possible to restrict the interface bindings and maybe have it work for some cases, but it's a lot of effort for minimal benefit.

                              If you have a decent switch, enable DHCP relay/ip helper in the switch for the segments you want to relay, and then you don't have to worry about having pfSense do it.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by Jul 21, 2020, 7:12 PM

                                @jimp said in Need to use DHCP Relay AND Server on the same pfSense setup, no L3 switch at disposal:

                                but it's a lot of effort for minimal benefit.

                                Exactly... What 1 user out 50k might have use of this.. And at that they just too lazy or cheap to do it correctly on their L2 infrastructure...

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.8, 24.11

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