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

    Captiv portal and vouchers integration with ssid on wlc 9800

    Scheduled Pinned Locked Moved Captive Portal
    69 Posts 3 Posters 4.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.
    • J
      Jozy @johnpoz
      last edited by

      @johnpoz How should I reach Captiv portal over wifi if I dont put on SSID on WLC redirects me to http://10.223.103.230:8002/index.php?zone=CaptivPortal& ?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @Jozy
        last edited by

        @Jozy your wifi should just connect your wifi to a wired network on pfsense. No captive portal in your wlc - just setup a ssid, and have your clients connect..

        Their dhcp should come from pfsense. On whatever network this is - setup pfsense captive portal on that network.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        J 1 Reply Last reply Reply Quote 0
        • J
          Jozy @johnpoz
          last edited by Jozy

          @johnpoz I have wlc where all access points are added and managed by wlc.

          So, what would be right setup? Since it is virtual macine where L3 interface would be, on my network l3 router?
          For example if I have range 10.223.103.0 for dhcp, lan adress on pfsense it 10.223.103.10
          Anyway I have to configure l3 and vlan on trunk and wlc to have access to that dhcp, once I try establish connection over ssid, right?
          In that case i should configure Lan ip address as my dhcp relay, right?

          Jozy

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @Jozy
            last edited by

            @Jozy that is fine you use wlc to control you wifi, why not just use the captive portal features in wlc? But if you want to leverage captive portal in pfsense then the clients need to be on the same L2 network as a pfsense interface.. How they get dhcp be it from your wlc or pfsense doesn't really matter.. But they need to be on the pfsense network.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            J 1 Reply Last reply Reply Quote 0
            • J
              Jozy @johnpoz
              last edited by

              @johnpoz we want to use pfsense captiv portal due to vouchers which can be generated on pfsense.

              Currently they are on the same L2 network, only difference is that dhcp is on win server and clients get ip add from that range but wlc redirection to pfsense captiv portal not working

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @Jozy
                last edited by johnpoz

                @Jozy said in Captiv portal and vouchers integration with ssid on wlc 9800:

                dd from that range but wlc redirection to pfsense captiv portal not working

                What part are you not understanding??? If the clients are on a pfsense network, and they have to point to pfsense as their gateway. Your captive portal would be setup on pfsense on this network the clients are on.. There would be no redirection or setup of any captive portal anything in your wlc.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jozy @johnpoz
                  last edited by

                  @johnpoz im not talking on setup any captiv portal on wlc but wlc is controller for all access points, so wlc is place where ssid is cofigured and there is policy you configure your clients to use pfsense captiv portal.
                  So, I dont understand if I need to have L3 configured on router, there are some details missing but dont know what? :)
                  What is right conf step by step?

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @Jozy
                    last edited by johnpoz

                    @Jozy who cares what setups up the wifi, doesn't matter if its a wlc that manages multiple AP, or stand alone AP or some wifi router being used as an AP.

                    When it comes down to it the AP is a bridge from your wifi to your wired network..

                    You have a network 192.168.100.0./24 -- your wifi clients are on this 192.168.100.0 network.. When they try and go to the internet via pfsense as say 192.168.100.1 pfsense captive portal says hey need to auth.

                    That is all there is too it.. The whatever that gets your wifi client on this network is not part of this process..

                    Yes you need to have an L3 on pfsense - how else would it route traffic for your wifi clients?? That are on this network..

                    If you want devices to use pfsense as the captive portal - they should use pfsense as their gateway, and dns most likely too. if pfsense is not the gateway off this whatever network it has zero to do with controlling any thing else on the network.. It can only control who can talk to it to go to some other network.. So yes it needs an L3, and these clients need to be on this same L2/L3 network if you expect to use pfsense as a captive portal.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Jozy @johnpoz
                      last edited by

                      @johnpoz I have configured DHCP on pfsense and clients get ip address from that range "10.223.160.0/24".

                      When trying ping outside from that interface i cant, pictures below.

                      37bd14f2-13d5-4e1c-be00-f6814e288a12-image.png

                      e577f0be-bacc-4bee-9d7b-995d688f84c7-image.png
                      From other interfaces it works fine:

                      f4a9c12a-dd4d-4d9a-a4b3-375828d5c955-image.png
                      Whatever NAT or rule I configure it doesnt have access to outside.

                      Second thing is:
                      When PC gets IP address over DHCP it can go to captiv portal is case I manually type URL of Captiv Portal but when tyring to connect to CP over WiFi it is not working.
                      Anyway, when I remove redirections from the WLC and try to connect to WiFI it doesnt redirects me to CP anymore.
                      9447684b-adcb-4a15-9b87-532e9760270e-image.png

                      WiFi on pfsense - 10.223.160.229
                      DCHP for clients and Gateway is as well 10.223.160.229

                      ?

                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator @Jozy
                        last edited by johnpoz

                        @Jozy are your clients using pfsense as dns? Did you create rules on your interface to allow internet? What nat rules - did you edit your outbound nat to not be auto?

                        First thing I would do is make sure your connection is working before attempting to enable captive portal

                        That redirection sure doesn't look correct - where did that 192.0.2.1 come from? You still trying to redirect in wlc - that sure doesn't look like pfsense captive portal setup.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jozy @johnpoz
                          last edited by Jozy

                          @johnpoz Yes, after chnaning NAT rule to below it started pinging outside.
                          Hybrid Outbound NAT rule generation.
                          (Automatic Outbound NAT + rules below)

                          Anyway, when I get IP address over WiFi on my cell phone or PC over DHCP from pfsense I can not ping 10.223.160.229 whic is interface for WiFi configured on pfSense, but when I get ip address over DHCP on wired network I can ping 10.223.160.229.

                          Btw, i cant ping deafulr gateway as well for even if I can ping 8.8.8.8 form the LAN interface.

                          regarding 192.0.2.1 it is mandatory since if I dont configure it it redirects me to WLC captiv portal
                          c6d9331a-f052-44fe-a3cf-d7bcbba9c5f3-image.png
                          It is very weird that I have to use redirection on WLC to pfSense Captiv Portal. Shouldn't pfSense be one who will do it if DHCP is configured there?

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator @Jozy
                            last edited by johnpoz

                            @Jozy said in Captiv portal and vouchers integration with ssid on wlc 9800:

                            It is very weird that I have to use redirection on WLC to pfSense Captiv Portal.

                            YOU DON'T! You should not set any web auth anything on this ssid you setup in wlc.

                            If your client that gets and IP on this network you have can not ping pfsense IP on that interface - what are the rules you setup on that interface in pfsense?

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Jozy @johnpoz
                              last edited by

                              @johnpoz
                              Rules below
                              160d3272-1bf5-454a-8b72-487473e69fcd-image.png

                              dc608af4-9bfb-427f-98e0-e430ed4478ba-image.png

                              I disabled web adn can see that there is no redirection
                              20d98b87-2e9a-4115-8462-8cd3379c8ca5-image.png

                              "You said - You should not set any web auth anything on this ssid you setup in wlc. " Yes, I know but in case I dont set any web auth it redirects to nowhere.

                              I dont know if it is possible to setup to work, since Cisco maybe has itself rules or incompatibility with ?

                              If you know anyone who already did this ??

                              GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
                              • GertjanG
                                Gertjan @Jozy
                                last edited by Gertjan

                                @Jozy

                                What / why is this ?

                                f200bf7c-a5aa-42b8-bbc7-d23424be3230-image.png

                                Btw : don't use things (devices) or rules like this that no one else has ever tried.
                                Use proven methods.

                                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
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator @Jozy
                                  last edited by johnpoz

                                  @Jozy said in Captiv portal and vouchers integration with ssid on wlc 9800:

                                  I dont know if it is possible to setup to work, since Cisco maybe has itself rules or incompatibility with ?

                                  nonsense - it can clearly setup a SSID that just connects to the network with no auth - just an open network.

                                  auth.jpg

                                  Normally when you run a captive portal the connection to the wifi is open, and the user auths with the captive portal.

                                  maybe this would be a good video for you to watch

                                  Youtube Video

                                  And with @Gertjan why would you setup a port forward???

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    Jozy @johnpoz
                                    last edited by

                                    @johnpoz this is just basic video of how to configure basic/initial things.
                                    I agree with you that is should be just setup ssid and connect to network.
                                    I get dhcp address on both PC and wirelles, PC works on somw and wifi not.
                                    Not sure why cant ping over wifi my pfsense lan address but over wired network it works. There must be some other rule or permission on wlc or somwhere whic dont send echo replay or something.
                                    Im tired, seems will look for some other solution ๐Ÿ˜๐Ÿ˜

                                    johnpozJ 1 Reply Last reply Reply Quote 0
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator @Jozy
                                      last edited by

                                      @Jozy again what rules do you have on this pfsense interface? What makes more sense wlc doing some odd firewalling thing when its just a AP when comes down to it or you have no rule to allow icmp on pfsense which when you create a new interface zero rules are on it.

                                      Create you simple wifi setup and do not enable captive portal on pfsense yet for this network. Make sure you have rules on this interface that allows what you want. I would start with any any rule.

                                      Make sure that works, you can ping pfsense IP, you can surf the internet, etc..

                                      Then enable the captive portal.

                                      to pfsense there is zero difference between a wireless client or a wired client - because to pfsense they come in on a wire.

                                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                                      If you get confused: Listen to the Music Play
                                      Please don't Chat/PM me for help, unless mod related
                                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                      J 1 Reply Last reply Reply Quote 0
                                      • J
                                        Jozy @johnpoz
                                        last edited by

                                        @johnpoz this is what I sent earlier is interface OPT1 with any any
                                        d74d244d-d669-4946-8aa0-3dcc5f02f56a-image.png

                                        It is the same, with or without captiv portal enabled.
                                        The thing is as you said I deal with you that wlc have some restictions and should bypass it, but what ๐Ÿ˜๐Ÿ˜๐Ÿ˜‡

                                        johnpozJ 1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator @Jozy
                                          last edited by johnpoz

                                          @Jozy so your saying you can browse the internet through pfsense, but it doesn't answer ping?

                                          And those are the only rules you have for this interface - do you have any rules in floating?

                                          On your client when you try and ping pfsense IP, do you see the mac in the arp table?

                                          Do you have some ACLs set on your WLC - why would you block icmp??

                                          If your mac shows up and you say you can get internet through pfsense.. I would do a simple packet capture on that opt1 interface while you pinging.. If you do not see the ping - they yeah you have something blocking it between the client and pfsense. If you see the pings but just no answer than points to a floating rule in pfsense blocking it.. Or some weirdness with mask or something, but seems unlikely that internet through pfsense would work then.

                                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                                          If you get confused: Listen to the Music Play
                                          Please don't Chat/PM me for help, unless mod related
                                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                                          J 1 Reply Last reply Reply Quote 0
                                          • J
                                            Jozy @johnpoz
                                            last edited by

                                            @johnpoz I have following situation.
                                            Ping from OPT1 to 8.8.8.8 is working
                                            9d31ed50-a4eb-43b2-8b3a-6384550e8738-image.png
                                            Ping from PC to 8.8.8.8 and resolving you can see below
                                            3d900a8a-d4c7-43fa-817d-9b3f7e2bf026-image.png

                                            I can not ping gateway from the PC but can ping lan ip address
                                            d0c7dfa5-758d-4a3b-b8a9-c2e3e779fe87-image.png

                                            arp table below
                                            9bca89bb-0cfc-45fd-b144-c696fa58507d-image.png

                                            why default gateway is offline?? hm
                                            30938951-b264-4337-af02-ce8a88001278-image.png

                                            Floating rules
                                            f97419e5-c2f7-4a50-b03c-ab410ba0106c-image.png

                                            Wan rules
                                            cf22d6c9-d036-430f-b3e6-1b995ebe1902-image.png

                                            OPT1 rules where is network for wifi and im testing wired as well
                                            e611405d-e608-434c-a842-6841d31ad8ca-image.png

                                            NAT rules

                                            339b8303-06b9-4814-9e30-b0b5476e730b-image.png

                                            It is wierd I get captiv portal page but dont get internet even if I can ping and resolve it
                                            64fa25c8-e430-47ee-b1c3-a2eca113d0d7-image.png

                                            On port group on vmware for WLC I found missing vlan id 1160 which im using in network and dhcp and I have added it.
                                            First have to figure out why I dont get internet over OPT1 network even if Captiv portal is showing up.

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