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

    Captive Portal in VLAN

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 6.6k 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.
    • P
      pinoy_steal
      last edited by

      Hi Sir/Mam,

      I set up pfsense in 3vlan environment. The pfsense handles vlan routing. I want also to try captive portal in one specific vlan. But is not working on vlan. I try before pfsense captive portal in lan environment and its works. My question are how to setup captive portal in vlan enviroment. I use pfsense 1.2.3 RC3. I plan to use captive portal in vlan2 only. Any advice are highly appreciated. Sorry for my bad english. Thanks.

      Here's my setup
      lan = re0
      wan = rl1
      vlan2 = vlan2 on re0
      vlan3 = vlan3 on re0
      vlan4 = vlan4 on re0

      modem
              |
              |
      Linksys Router
              |
              |
      PFsense
              |
              |
      Dlink Manage Switch
          |      |          |
      vlan2  vlan3  vlan4

      1 Reply Last reply Reply Quote 0
      • P
        Perry
        last edited by

        lan = re0
        wan = rl1
        vlan2 = vlan2 on re0
        vlan3 = vlan3 on re0
        vlan4 = vlan4 on re0

        Probably because you use the parent interface as lan too. So either add another physical nic or a vlan for your lan.

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Perry is correct, if you want to use CP on a VLAN you can't use the parent interface directly.

          You shouldn't be using the VLAN parent interface directly anyhow, for security reasons.

          Find out what the port's default VLAN is, make a new VLAN in pfSense for that, and then reassign your LAN to that new VLAN interface.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • P
            pinoy_steal
            last edited by

            Thanks Sir Perry and Sir Jimp. Dlink Default Vlan are vlan1. So maybe I create vlan1 on pfsense. My question are how to reassign may LAN to default VLAN1. Is it correct? Sorry if I have a mistake on it.. I try before to add another NIC for vlan only, but still not working. Maybe because i assign ip address on that vlan parent nic. Thanks for your guidance..

            1 Reply Last reply Reply Quote 0
            • P
              pinoy_steal
              last edited by

              Hi Sir,

              Finally the captive works on vlan2. I create vlan1 then i move lan to vlan1. Thanks for the help

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