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

    Automatic Connects in the internet using captive portal

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 3 Posters 2.2k 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.
    • W
      watabigeye
      last edited by

      Hi guys,

      I need some advise to implement my project. The idea here is after you input your username and password of the guest it will automatically connects in the internet. but if you not login. you can't connect to the internet.

      is it possible?

      Thanks

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        https://turbofuture.com/computers/How-to-Set-Up-a-Captive-Portal-Using-pfSense

        1 Reply Last reply Reply Quote 0
        • W
          watabigeye
          last edited by

          Hi,

          Thanks for this. but I'm using the latest pfsense 2.3.2.

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

            @watabigeye:

            Hi guys,

            I need some advise to implement my project. The idea here is after you input your username and password of the guest it will automatically connects in the internet. but if you not login. you can't connect to the internet.

            is it possible?

            Thanks

            I don't get it.

            THIS is (one of) the reason why I'm using pfSense (for the last 10 years now ?!) !!
            The captive portal works like that : a login page is shown, and when the user entered the right user and password, he gains access to the net. Otherwise the failure page is shown.

            PS : we all use the "latest pfsense 2.3.2". Only experts could consider using an old version.
            Note : experts don't bother using old versions, they have other things to do.

            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
            • W
              watabigeye
              last edited by

              @Gertjan:

              @watabigeye:

              Hi guys,

              I need some advise to implement my project. The idea here is after you input your username and password of the guest it will automatically connects in the internet. but if you not login. you can't connect to the internet.

              is it possible?

              Thanks

              I don't get it.

              THIS is (one of) the reason why I'm using pfSense (for the last 10 years now ?!) !!
              The captive portal works like that : a login page is shown, and when the user entered the right user and password, he gains access to the net. Otherwise the failure page is shown.

              PS : we all use the "latest pfsense 2.3.2". Only experts could consider using an old version.
              Note : experts don't bother using old versions, they have other things to do.

              Since I already follow some instruction and tutorial in configuring captive portal but then it won't work.

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

                @muswellhillbilly:

                https://turbofuture.com/computers/How-to-Set-Up-a-Captive-Portal-Using-pfSense

                I found something strange - and quiet logic at the same time.

                This 'tuto' is outdated I guess.
                It states :

                Group Membership - Groups are handy for organizing your users. Groups can be assigned access to administrate certain parts of the pfSense web GUI. For the purposes of the portal groups really aren't that useful.

                This seems wrong to me.
                You should create a group called 'bimbo', or, more wisely, "Portalusers".
                In the "Assigned Privileges" section, you should add just one line :

                (Name) User - Services: Captive Portal login (Description) Indicates whether the user is able to login on the captive portal.

                Now, add all your local "Captive portal Users" to the group.

                Of course, you could also add all your captive portals users to the already present "Admin" group (this group can access everything, so also login into pfSense  :o)

                But, anyway, this is just ONE example.

                You need to describe your setup.
                About DNS, DHCP, your WAN details, LAN details - running Captive portal on LAN or OPT1, etc etc etc.
                It happens every day now that people try to run the most crazy setups ….. (and breaking all network rules, being present for decades).

                Details .... so we can tell you something usefull.

                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
                • W
                  watabigeye
                  last edited by

                  I enabled the dhcp and it works but it works only in view in the settings.
                  I want it popup  automatically when the user click the google chrome, mozilla or other internet browser and it will direct to the login form of pfsense.

                  I already enabled the "Logout popup window"  >:( >:( >:( >:(

                  http://imgur.com/a/pcwbl

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

                    @watabigeye:

                    I enabled the dhcp and it works …..

                    Without DHCP, the captive portal will not work at all.

                    @watabigeye:

                    but it works only in view in the settings.

                    ?

                    @watabigeye:

                    I want it popup  automatically when the user click the google chrome, mozilla or other internet browser and it will direct to the login form of pfsense.

                    Works for me … (when I instruct my browser t show them).

                    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
                    • W
                      watabigeye
                      last edited by

                      but it works only in view in the settings.
                      ?

                      I mean this the view settings.

                      http://imgur.com/a/OPyt7

                      I really don't know why it wont work. Is there any to set in the settings aside in captive portal?

                      I appreciate your help @Gertjan

                      Thanks.

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

                        @watabigeye:

                        but it works only in view in the settings.
                        ?

                        I mean this the view settings.

                        http://imgur.com/a/OPyt7

                        Aah … that one.
                        Doesn't work for me neither.
                        Because : when I click on the "View button", this URL is being loaded into my navigator :
                        https://pfsense.brit-hotel-fumel.net:8003/?zone=cpzone1 (I'm visiting the pfSense GUI from LAN)
                        Or, my captive portal is running on interface "OPT1", and uses this :
                        https://portal.brit-hotel-fumel.net:8003/?zone=cpzone1

                        Btw :
                        https://portal.brit-hotel-fumel.net… is 192.168.2.1 or the captive portal interface
                        https://pfsense.brit-hotel-fumel.net… is 192.168.1.1 or the LAN interface

                        Know that I use the https version (with a certificate which is signed by a known CA like startssl.com)

                        My portal page can't be visited from LAN because of the certificate I use for the captive portal page (URL).

                        But, you do NOT need this "view button", I actually never use it anyway.
                        The default, built in page just works very well - do NOT modify this default page if you can't write correct 'html' files (using the pfSEnse variables and syntax).

                        When the captive portal is set up - on its own interface like OPT1 - (LAN is possible, though) - DHCP server is running - clients use DHCP to get an IP from pfSense (and DNS, gateway, etc) and then when clients visit with a browser a http page (never ever https !!) then … the captive portal page pops up.
                        Like that.

                        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
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.