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

    Captive portal is not working with gateway

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

      I am a new of pfsense. so I might ask silly question.
      I've been wondering it is possible or not.
      I'm using a pfsense with DHCPserver,VLAN,CaptivePortal and policy base routing.

      client[10.200.200.50/24]–-pfsense opt1[VLAN131 10.200.200.10/24]–-router LAN [VLAN131 10.200.200.11/24]–-rouer wan

      I set firewall gateway on opt1 to 10.200.200.11 (on DHCPserver config is default)
      When I enable Captive portal on opt1 login portal show up but after authentication redirected but no internet connection.
      When I disable Captive portal on opt1 I can connect to Internet.

      Is it possible using captive portal with firewall gateway(policy base routing) ?

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

        Could anyone write anything on this thread ? I really want to know.
        If my query is hard to understand, please let me know.

        1 Reply Last reply Reply Quote 0
        • T
          thinwilliam
          last edited by

          Have you double checked your DNS?  If assigning external DNS such as 8.8.8.8 to client and 8.8.8.8 is blocked in CP, users won't be able to browse.  Can users ping external IP from behind CP, such as 8.8.8.8?

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            client[10.200.200.50/24]–-pfsense opt1[VLAN131 10.200.200.10/24]–-router LAN [VLAN131 10.200.200.11/24]–-rouer wan

            All that is on the same subnet.  The only possible way that might work is if pfSense was a transparent bridge and Captive Portal can't work on a transparent bridge.

            client[10.200.200.50]–-[VLAN131 10.200.200.10/24]opt1 pfSense opt2[VLAN130 10.100.100.10/24]–-router LAN [VLAN130 10.100.100.11/24]–-router wan

            client has default gateway 10.200.200.10
            pfsense has default gateway 10.100.100.11
            NAT should be disabled in pfSense
            router has default gateway of WAN plus a route to 10.200.200.0/24 gateway 10.100.100.10
            router must perform NAT for 10.100.100.0/24 and 10.200.200.0/24

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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