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

    Pfsense setting up LAN to connect to DD-WRT router

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 5 Posters 4.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.
    • B
      bc00l
      last edited by

      Hello, I am having some trouble getting my PFSense Device and a dd-wrt Router to connect to the internet.

      If I set LAN on PFSENSE to 192.168.1.0 /24

      I have set the router IP to 192.168.1.2.

      Connected the Router port 1 to PFSENSE Lan Port.

      Should I be able to connect to the internet of am I doing something wrong?

      Or should I set the routers WAN settings to connect to the PFSENSE LAN as a gateway?

      The most current PFSENSE is on a NETGATE APU2 Device with a WAN, LAN, and OPT port. (Note the appliance is working and everything checks out)

      Networking Setup for both devices, described to the best of my abilities, I can provide more info if needed.

      PFSENSE DEVICE:
      WAN is set to (DHCP) and successfully pulls an IP from my ISP. (Physically connected from WAN to Router)
      LAN is set to use 192.168.1.1, netmask 255.255.255.0. DHCP is disabled here. No IPV6. Selected No to use Upstream Internet Gateway.
      ***note the purpose I disabled DHCP on the PFSENSE LAN port is because I would only like it as a gateway to the internet and not handing out IPs.

      ROUTER: This Router has 5 ports( 1 WAN-Intenet port) 4 LAN ports
      WAN port is disabled. It has the option to autoconfigure connection, set to static and a lot of other options that might not be relevant.
      Router is set to use static IP of 192.168.1.2, Netmask of 255.255.255.0 Gateway of 192.168.1.1, Local DNS 192.168.1.1- Never was sure if local dns was necessary.

      Router is also set as DHCP server
      192.168.1.5-25 addressess available.

      These are my settings, I tried to be as thorough as possible. This has been frustrating, and after finding lots a similar examples but none specifically for what I am doing, I thought I will ask you guys.

      Thank you in advance.

      Brian

      1 Reply Last reply Reply Quote 0
      • N
        nzimmers
        last edited by

        Hi bc001

        If you want the dd-wrt router to hand out IP addresses you need to connect the router wan port to the pfsense lan port.

        very simply, if you want the dd-wrt router and all the connected machines on the same subnet as the Pfsense lan port you cannot run the dd-wrt router with DHCP - so DHCP would need to be done on the pfsense lan port.

        see this page: http://www.dd-wrt.com/wiki/index.php/Wireless_Access_Point

        1 Reply Last reply Reply Quote 0
        • W
          Wolf666
          last edited by

          I use my R7000 (running DD-WRT) as access point, connected to pfSense Lan-Lan. On DD-WRT disable DHCP, NAT and firewall, let pfSense do them.

          Modem Draytek Vigor 130
          pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
          Switch Cisco SG350-10
          AP Netgear R7000 (Stock FW)
          HTPC Intel NUC5i3RYH
          NAS Synology DS1515+
          NAS Synology DS213+

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            You do NOT want DHCP server on your DD-WRT. http://www.dd-wrt.com/wiki/index.php/Wireless_Access_Point#Long_Version

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

              I agree with what's been said above, you're almost certainly better off having pfSense handle DHCP. However…...

              I expect the reason it doesn't work is that the DD-WRT box is handing out it's own address (192.168.1.2) as a gateway for the connected clients via DHCP. This can't work with it connected as you have it. It must hand out the pfSense LAN address (192.168.1.1) as a gateway instead.

              Steve

              1 Reply Last reply Reply Quote 0
              • W
                Wolf666
                last edited by

                As Steve mentioned, in the DD-WRT you must set the correct gateway, the pfSense LAN IP.

                Modem Draytek Vigor 130
                pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
                Switch Cisco SG350-10
                AP Netgear R7000 (Stock FW)
                HTPC Intel NUC5i3RYH
                NAS Synology DS1515+
                NAS Synology DS213+

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

                  Importantly not the gateway for the dd-wrt box itself but whatever it's handing out as a gateway via dhcp for clients.
                  I don't actually know if that's a user setting in dd-wrt. :-
                  Edit: Looks like you have to add it as a dhcp-option. Really just letting pfSense handle DHCP woukd be much easier.

                  Steve

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