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

    Pf sense firewall

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 3 Posters 2.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.
    • J
      justin100104
      last edited by

      i am using my pf sense computer/server as firewall for my other servers but i connected it with a dd-wrt repeater but
      my server won't receive any IPv4 address

      i use pf sense only as firewall

      Main Router: Linksys ea6700
      IPv4: 192.168.1.1

      DD-Wrt Client: Linksys ea4700
      IPv4: 192.168.1.3

      Pf Sense Firewall
      IPv4: 192.168.1.123

      Sorry for my english

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

        DHCP server: 192.168.1.1

        does anybody have a solution?

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          How are those boxes connected? Where is the server connected?
          How is pfSense configured?

          Steve

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

            DD-wrt client -> WAN        IPv4:192.168.1.123
            LAN 1 -> w2k8r2 server 1 IPv4:N/A
            LAN 2 -> w2k8r2 server 2 IPv4:N/A
            LAN 3 -> w2k8r2 server 3 IPv4:N/A

            WAN IPv4 Configuration Type: dhcp
            LAN 1,2,3 IPv4 Configuration Type: dhcp

            1 Reply Last reply Reply Quote 0
            • H
              heper
              last edited by

              whats your lan subnet on pfsense?
              did you enable dhcp on pfsense?

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

                WAN subnet: 255.255.255.0
                LAN 1,2,3 subnet: N/A

                Didn't enable DHCP server cause My main router is the dhcp server

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  So you are using the DD-WRT box for DHCP for the whole network but that is on the WAN side of pfSense.
                  So do you have all the interfaces in pfSense bridged? You are running it as a transparent firewall?

                  Steve

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

                    I tried But didn't work
                    And yeah it is a transparent firewall

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Ok, if all the interfaces are bridged together then only one of them should have an IP. That could be the bridge interface itself or the WAN as you have it but the others should all be type 'none'.
                      Do you have firewall rules to allow the DHCP requests from the severs on the LAN? Are you seeing anything in the firewall logs?

                      Steve

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

                        Allowed any protocol from the dhcp server
                        But it is still not working

                        I can give you Access to My firewall control panel if you want

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          If you're running a DHCP server on the pfSense LAN interfaces then there are rules put in place automatically to allow the DHCP traffic. For example:

                          
                          # allow access to DHCP server on LAN1
                          pass in quick on $LAN1 proto udp from any port = 68 to 255.255.255.255 port = 67 label "allow access to DHCP server"
                          pass in quick on $LAN1 proto udp from any port = 68 to 192.168.1.1 port = 67 label "allow access to DHCP server"
                          pass out quick on $LAN1 proto udp from 192.168.1.1 port = 67 to any port = 68 label "allow access to DHCP server"
                          
                          

                          Since you are not running a DHCP server these rules will not be in place and your clients won't be able to send DHCP requests to the DD-WRT box.

                          You may be better off using the DHCP relay though I've never tried it in this type of setup.

                          Steve

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

                            I tried But didn't work either

                            But you don't want access to my pf sense?

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              What did you try?

                              If you have the interfaces all bridged together try simply disabling the firewall completely, at the console: 'pfctl -d'. If you still can't get dhcp leases through it then you have some connection problem.

                              Steve

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

                                i did but still dind't get it to work
                                tried:
                                dhcp relay
                                Bridge all interface's
                                using static IPv4
                                dhcp server
                                disable firewall

                                but when i connect the server direct to my dd-wrt router it gets a dhcp adress in a few secs

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  To run as a transparent firewall you must have the interfaces bridged.

                                  If you aren't running transparent then you must have a separate subnet on the lan side.

                                  Steve

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

                                    Abandoning this project didn't get it work
                                    Thx everyone for ther help

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