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

    Captive portal in existing network, on server with single NIC

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 3 Posters 1.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.
    • A
      adamjezek
      last edited by

      Hi,
      I already have working network with DHCP server at 172.16.34.1. There are some computers and now I want to do following:
      I want to put a WiFi router in the network, let's say it will have IP 172.16.34.10.
      In the network, there will be server running pfSense, let's say it will have IP 172.16.34.11. The server has only one network interface.
      This WiFi AP will be somehow connected to server with pfSense at 172.16.34.11.  When user connects to WiFi, he will get IP from DHCP server running on pfSense and will be redirected to Captive portal on pfSense.
      I'm not so good in networking, but I think it could work like this:
      The pfSense has got only one NIC available, which is used as WAN. Theoretically, it might could work, if I will setup VLAN on pfSense and use it as a LAN. Then, I will connect the router to this LAN (the router supports also PPPoE, L2TP, PPTP). But I don't know how to set it up and if this will work. Is this possible to do?
      Thanks.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        pfSense is not a server, it's a router firewall.
        For the portal interface, pfSEnse msu hand out the IP's (it should be the DHCP server).
        There can only be one DHCP server on your network.
        Captive portal should run on its dedicated interface.

        The pfSense has got only one NIC available, which is used as WAN. Theoretically, it might could work, if I will setup VLAN on pfSense and use it as a LAN. Then, I will connect the router to this LAN (the router supports also PPPoE, L2TP, PPTP). But I don't know how to set it up and if this will work. Is this possible to do?

        I'm not saying that that's not possible. But you better be a network expert (and pfSEnse)  first ;)
        Normally, you should respect this rule : keep it simple.

        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
        • K
          Kriogen
          last edited by

          I have this implemented in my network.
          You will have WAN connected in your internal network and will have the same settings as any other pc in your network (DHCP or static).
          Assign Wireless card to WLAN Interface (name it WLAN) & Configure WLAN Interface.
          Create Captive portal for that interface.
          Stop DNS Server and start DNS Forwarder.
          Configure DHCP Server for WLAN Interface.
          Connect device on wireless from Pfsense and see if the redirect works when trying to access a webpage.

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