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

    PfSense running as DHCP server only

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 8 Posters 27.0k 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.
    • dotdashD
      dotdash
      last edited by

      Why not just install webmin (http://www.webmin.com/) on the existing box?
      Basically, just download it, untar it into /usr/local/ or somesuch, then run setup.sh from the webmin directory…
      I love pfSense, but for a straight DHCP server, Webmin has more flexibility.

      1 Reply Last reply Reply Quote 0
      • R
        rklopoto
        last edited by

        I've used the webmin before, and I think it's a great product.  Unfortunately, what I am trying to do is make these 4 boxes that I have consistent with each other, so that I only have to train people on one interface.  Since I have 2 pfSense boxes already, this is the way for me to go.  I think it's great that these boxes are this flexible.

        Fortunately I don't need an elaborate DHCP server, just the basics + reservations and lease viewing.

        What I did for this particular box is install pfSense onto it with 2 NICs installed.  Once the install was done, I configured the LAN interface with the LAN IP, and in the WAN, I put 0.0.0.0 as the IP, and for the gateway, I put the IP of the LAN gateway.  This changes the routing table so that the machine can get to the internet for NTP, etc…  I'm actually kinda psyched that it works this way!  The LAN interface just sits there with nothing plugged into it.

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          @rklopoto:

          What I did for this particular box is install pfSense onto it with 2 NICs installed.  Once the install was done, I configured the LAN interface with the LAN IP, and in the WAN, I put 0.0.0.0 as the IP, and for the gateway, I put the IP of the LAN gateway.  This changes the routing table so that the machine can get to the internet for NTP, etc…  I'm actually kinda psyched that it works this way!  The LAN interface just sits there with nothing plugged into it.

          Hah, that's cool!  Nice hack. ;D  I assume you mean leave the WAN interface unplugged, not LAN?

          This is blog post worthy.  ;D  http://blog.pfsense.org/?p=157

          We were recently talking about adding input validation to the WAN so you can't do what you just did. Typically when the defined gateway isn't within the WAN IP subnet, things won't work. Breaking this ability would be an unintended consequence. Though by the time a production version has that code, it should also be able to add default gateways on the static routes page if you don't want to use a WAN at all.

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by

            scratches head thats pretty neat and can allow for our "server mode" only that I have planned in the future at some point in time.

            1 Reply Last reply Reply Quote 0
            • GruensFroeschliG
              GruensFroeschli
              last edited by

              @rklopoto:

              What I did for this particular box is install pfSense onto it with 2 NICs installed.  Once the install was done, I configured the LAN interface with the LAN IP, and in the WAN, I put 0.0.0.0 as the IP, and for the gateway, I put the IP of the LAN gateway.  This changes the routing table so that the machine can get to the internet for NTP, etc…  I'm actually kinda psyched that it works this way!  The LAN interface just sits there with nothing plugged into it.

              I think you might even be able to replace the LAN interface with a VLAN-Interface sitting on the WAN-interface –> You only need one NIC.

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • J
                jmontes4
                last edited by

                Server only mode would be an awesome feature!

                I will be experimenting with this over the holiday break.  One question (Mods feel free to delete this if you think I highjacking the thread), do the two interfaces have to be WAN and LAN or can they be LAN and OPT1, say a wireless lan?

                1 Reply Last reply Reply Quote 0
                • GruensFroeschliG
                  GruensFroeschli
                  last edited by

                  You always need at least 2 interfaces: LAN and WAN.
                  Any additional interfaces are OPTx.

                  We do what we must, because we can.

                  Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                  1 Reply Last reply Reply Quote 0
                  • J
                    jmontes4
                    last edited by

                    cool thanks for clearing that up!

                    1 Reply Last reply Reply Quote 0
                    • C
                      cybrsrfr
                      last edited by

                      I created a VLAN and assigned it to the WAN with PFSense RC4. So far so good. During the reboot it brings the LAN up and then hangs on the WAN.

                      On another system with 2 ethernet I have setup
                      1st Ethernet Port -> LAN
                      2nd Ethernet Port -> WAN
                      Wireless -> Opt1
                      In this configuration with wireless as an accesspoint you can bridge the Opt1 with either the LAN or WAN.

                      I have an ALIX.3C2 board in an outdoor enclosure with 1 ethernet and 1 wireless. Attempting to do the same thing.
                      Ethernet Port -> LAN
                      VLAN -> WAN
                      Wireless -> Opt1

                      Attempts to bridge the wireless on the WAN directly to the LAN do not seem to work and that is why I have tried this approach.

                      I think this might be another use for not requiring the WAN. It would really be nice to have a WAN override as a hidden option so that it will not be required. A hidden option would protect beginners from ending up with only one interface unintentionally.

                      I just thought of another potential approach similar to the one mentioned at the beginning of this thread…
                      Buy a mini-pci ethernet card so the system recognizes another ethernet nic and set that as the WAN. Seems like a messy way to do it but would may work if I can find a minipci ethernet card compatible with FreeBSD.

                      1 Reply Last reply Reply Quote 0
                      • R
                        ridnhard19
                        last edited by

                        Any thoughts on setting up a DHCP relay agent on your Checkpoint firewall?  You could then create a new DHCP scope and leveraging your existing DHCP infrastructure.  I like to see networks managed centrally - depending on how they are setup this is not possible sometimes (branch offices, etc…).  I don't think you can create/use different scopes with the PFSense box, I'm not sure what it uses behind the scenes I'm just starting to play with it to see how I can use it.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.