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

    Captive Portal page on wrong subnet

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 1.5k 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.
    • G
      gordc
      last edited by

      I am trying to setup captive portal for the first time. 
      I have the following subnets created

      vlan 100 (servers)- 192.168.1.0/24
      vlan 110 (work)- 192.168.2.0/24
      vlan 120 (client)- 192.168.3.0/24
      vlan 130 (Guest- 192.168.4.0/24

      Currently I have an NPS server setup to determine which vlan a user gets assigned to.  This works great.  Now what I want to do is if a user gets bumped to the guest network I want to use captive portal to have the user login to get internet access.

      I have setup captive portal on vlan 130.  I uploaded a page and when I click view it uses 192.168.2.1:8002 which is the work vlan.  I need it to go to 192.168.4.1:8002

      Any suggestions would be great.

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

        the webserver that serves the page listens on all interfaces (unless you'd active block it). The forced redirect towards it, will only happen on the specified interface/vlan

        1 Reply Last reply Reply Quote 0
        • G
          gordc
          last edited by

          Thanks for the response.

          Currently I have captive portal set on the guest vlan.  I plug in to a port on that vlan and I get an IP address from the firewall.  I can access the firewall using 192.168.4.1 but the cp page won't come up if I type in 192.168.4.1:8002, I just get a blank page.  If I connect to port on the work vlan I can enter 192.168.2.1:8002 and get the login page.  It does block me from getting any where on the network though.
          Currently, this is in my test environment so currently all my rules are allow any.

          Is there  a setting or something that I can change to have it load on the proper network.  I have tried removing and adding the captive portal a couple of times.

          Thanks,
          Gordon

          1 Reply Last reply Reply Quote 0
          • G
            gordc
            last edited by

            I was able to get this resolved.  It turned out to be a problem with my switch.  I backed it up, defaulted it and restored the config and everything started working.

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