Navigation

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

    Captive portal and Vlans / subnets

    Captive Portal
    4
    5
    2688
    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.
    • D
      domhampton last edited by

      I hope this hasn't been answered before, i have looked and quite find the answer.

      I will have two wireless networks which will be on Vlan 2 and 3.  I want to present 2 different landing pages and push them through to 2 different pages once authenticated.  My solution:

      each vlan will have different DHCP and assign different IP ranges, the webpages can run php that show a page depending on IP, the push through page defined on the CP interface will also be a simple if your IP is this then forward to this page…

      My problem is that I have never got CP to work on different vLans (or more importantly different subnets).  I have posted before and been told a simple firewall tweak is all that is required, however I can't get my head around it.  Does anyone have a walk through or can elaborate on what this tweak would need to be?

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

        I assume your pfsense box is the default gateway for your two wireless VLANs?  If so, I know there's an option in release 2.0-RC1 that lets you select which interface to enable the portal on.  It's right at the top of the Services > Captive Portal page.  I'm brand new to pfsense, so maybe you've already tried this without success…

        Hope this helps!

        1 Reply Last reply Reply Quote 0
        • E
          eri-- last edited by

          You have to code it yourself on the login page to do the differentiation.

          1 Reply Last reply Reply Quote 0
          • D
            domhampton last edited by

            The differentiation between the networks i can code easily enough using php.

            The problem is that if the box is assigned a default IP of 192.168.200.1 the first subnet is 192.168.201.0/24 and the second subnet is 192.168.202.1/24 when i try and log on from either vLan i get pushed to 192.168.200.1 for the captive portal, however I can't see that page since it is on a different page.

            I assume a firewall or route needs to be written, i can't seem to get it to work though.

            1 Reply Last reply Reply Quote 0
            • GruensFroeschli
              GruensFroeschli last edited by

              You can configure a passthrough IP for this.
              ("Allowed IP addresses" on the CP config page)

              We do what we must, because we can.

              Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

              1 Reply Last reply Reply Quote 0
              • First post
                Last post