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

Configuration of captive portal and Router for use

Scheduled Pinned Locked Moved Captive Portal
8 Posts 2 Posters 1.1k 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.
  • F
    Fidelinho88
    last edited by Mar 19, 2024, 10:36 AM

    Difficult for me to set the router for loading the captive portal of pfsense.
    Everything seem to be well configured but Captive portal not loading for use of internet ...
    My router is TPLink model Archer C50

    G 1 Reply Last reply Mar 19, 2024, 11:22 AM Reply Quote 0
    • G
      Gertjan @Fidelinho88
      last edited by Mar 19, 2024, 11:22 AM

      @Fidelinho88

      Start testing the easy way : connect you pfSEnse captive portal interface to a switch. Connect your test device using a cable, so no Wifi, just cables.
      Now test. Works ?

      If you've got a solid 'yes' then you can continue : add other devices, like Access Points. If your Access point is also a router, keep in mind that you should de activate the router specific functionalities, like a "DNS cache/forwarder/etc", the DHCP server, firewall. If the router AP has a WAN interface : don't use it.

      Or : apply the KIS : use a real AP, not a "router with Wifi".

      Network example : my captive portal has the IP 192.168.2.1/24
      My first AP uses 192.168.2.2/24 - the gateway is set yo 192.168.2.1 DNS is set to 192.168.2.1
      My second AP uses 192.168.2.3/24 - the gateway is set yo 192.168.2.1 DNS is set to 192.168.2.1
      My third AP uses 192.168.2.4/24 - the gateway is set yo 192.168.2.1 DNS is set to 192.168.2.1
      etc.

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      F 1 Reply Last reply Mar 19, 2024, 11:36 AM Reply Quote 0
      • F
        Fidelinho88 @Gertjan
        last edited by Mar 19, 2024, 11:36 AM

        @Gertjan Do I deactivate the DHCP on the AP ?

        G 1 Reply Last reply Mar 19, 2024, 12:04 PM Reply Quote 0
        • G
          Gertjan @Fidelinho88
          last edited by Mar 19, 2024, 12:04 PM

          @Fidelinho88

          You've pfSense doing the DHCP on your captive portal network.
          You've set it up, right ?
          On a LAN, their should be only one DHCP server active.

          On a captive portal you should have switches and AP. No 'router' type devices. It can be done, of course, but that's for experts - and the won't do that 'for reasons'.

          Most SoHO router/wifi devices can be set up so they behave as a 'dumb' AP.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          F 1 Reply Last reply Mar 19, 2024, 2:20 PM Reply Quote 0
          • F
            Fidelinho88 @Gertjan
            last edited by Mar 19, 2024, 2:20 PM

            @Gertjan Yeah DHCP from PFSense was activated and on DHCP Server active on LAN. Later I will send you a screenshot

            G 1 Reply Last reply Mar 19, 2024, 2:42 PM Reply Quote 0
            • G
              Gertjan @Fidelinho88
              last edited by Gertjan Mar 19, 2024, 2:44 PM Mar 19, 2024, 2:42 PM

              @Fidelinho88

              It probably looks likes this :

              31fd5de4-7f87-40b1-8098-dc0dae5e4b74-image.png

              192.68.2.1 is the IP of my network called "PORTAL", it's not my LAN, as LAN is (imho) for trusted devices, and PORTAL is for "non trusted" devices, the ones that connect ti my portal.

              As shown above, IP 192.138.2,3,4 etc are the static IPs of my APs.
              From 10 to 254 are for my portal clients.When client connect to the portal, I can clearly see that happening in the DHCP server logs :

              Example of a portal client connecting to the (wifi) portal :

              1bb66187-366b-4340-b094-b227fefd668d-image.png

              This client could also use a wired connection, as I have some plugs here and there, or use the Wifi, handled by one of the APs. I can't tell.

              Edit : for the portal to work well, it needs to see the clients IP (192.168.2.29) and the clients MAC addresses : here 04:56:e5:a0:xx:yy)

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              F 1 Reply Last reply Mar 20, 2024, 12:04 AM Reply Quote 0
              • F
                Fidelinho88 @Gertjan
                last edited by Mar 20, 2024, 12:04 AM

                @Gertjan ![alt text]PFSense 1.png

                It has been shown as offline ... It happened before I reinstall and still the same...

                G 1 Reply Last reply Mar 20, 2024, 7:13 AM Reply Quote 0
                • G
                  Gertjan @Fidelinho88
                  last edited by Mar 20, 2024, 7:13 AM

                  @Fidelinho88

                  ?

                  The first IP of a network is 'normally' the IP of the pfSense LAN = 192.168.0.1
                  The next IP could be 192.168.0.2 and that will be your "AP" (look again previous posts).
                  Btw : my opinion, but have the AP use a static IP setup, not DHCP.

                  @Fidelinho88 said in Configuration of captive portal and Router for use:

                  It has been shown as offline ...

                  Offline means here : not in the pfSEnse arp cache.
                  See here : Diagnostics > ARP Table

                  You can - should be able - to ping the 192.168.0.1, your AP, so it is online.
                  And as soon as you ping it from pfSense, pfSnse will have it in it's arp cache for several seconds, and by magic now it shows online. To be offline again afterwards .... or, the AP is still there, up and running.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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