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

    CE and Plus wierdness

    Scheduled Pinned Locked Moved General pfSense Questions
    20 Posts 5 Posters 1.1k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @rbwillis
      last edited by johnpoz

      @rbwillis the logical answer to this would be your hitting different installs of pfsense.

      What makes more sense pfsense presents itself as CE to machine A and accepts your creds, but presents as plus to machine B and doesn't take your creds..

      Or that machine A is talking pfsense 1, and B is talking to some other pfsense 2.

      Are you wireless or wired here? Simple answer would be your on your neighbors wifi.. Have seen that more than once actually helping friends.. Your not connected to your linksys wireless, your connected to the guy across the streets linksys wireless. Kind of the reason you change your ssid and use your own psk, not the default ;)

      Look at your arp table on machine 1 and machine 2 - is the IP that is your gateway (pfsense) the same mac address?

      lets assume pfsense IP is 192.168.0.1 on both of these machines - do an

      arp -a

      On each machine - what is the mac for 192.168.0.1?

      $ arp -a
      
      Interface: 192.168.9.100 --- 0x5
        Internet Address      Physical Address      Type
        192.168.9.10          00-11-32-7b-29-7d     dynamic
        192.168.9.253         00-08-a2-0c-e6-24     dynamic
      

      My pfsense is 192.168.9.253 in that output, now look on your machine B - is the IP for pfsense the same mac (physical address)

      Here is from my nas on the same network

       arp -an
      ? (192.168.9.99) at 70:6e:6d:f3:11:93 [ether] on ovs_eth0
      ? (192.168.9.253) at 00:08:a2:0c:e6:24 [ether] on ovs_eth0
      

      Notice the same mac 00:08:a2:0c:e6:24, if they are not the same - then your not talking to the same 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.8, 24.11

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

        @Gblenn said in CE and Plus wierdness:

        but the self signed cert is not accepted by the browser ...

        Or the cert dates are invalid - they do expire.
        Or, what I saw last week : my browser, Firefox told me that self generated cert that I've put in place wasn't usable. No exception possible. The previous cert used I had the HSTS option set, and as pfSense comes default with this option not checked (so activated) :

        02eaf302-75cd-4be9-9f0e-c402183bc797-image.png

        I had to dive into the firefox 'known certs database' (something like that) and remove it.

        By default, HSTS lock you out for a year or so.
        All the big player use it these days. Example here. What it means (afiak) : even if you manged to spoof the cert, if you already visited the site ones, the spoofed one will fail. HSTS means : no way to proxy this site ...

        Anyway, I'm back to my "5 box a year" solution which works flawlessly - no more cert issues - like ever.
        It's always the same : you deal with it, or you have your wallet deal with the problem.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        G 1 Reply Last reply Reply Quote 0
        • G
          Gblenn @Gertjan
          last edited by

          @Gertjan said in CE and Plus wierdness:

          Or the cert dates are invalid - they do expire.

          Yes, that's more correct of course!!

          1 Reply Last reply Reply Quote 0
          • R
            rbwillis @Gertjan
            last edited by rbwillis

            @Gertjan - Thanks for your reply, both machine's are running W10. Curious where that lonig pg id hosted?

            @Johnpoz - Thanks, both machines are wired via Ubiquiti switch so no and SSID issue. Also confirmed (via direct conect to the console) that CE is loaded on the appliance.
            Tried the password reset option which didchange it on PC2 but not PC1
            I'll check the arp table and report back.

            @Gblenn - Come to think of it I vaguely recall renewing a cert over the holidays, didn't think anything of it. But:
            -Why would a new cert change my login creds?
            -Why would the new cert show a different version?
            and more important...
            -Any idea how to roll it back or fix it?

            Thanks everyone for the assist!

            johnpozJ G 2 Replies Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @rbwillis
              last edited by johnpoz

              @rbwillis if you are hitting 2 different machines - then yeah the cert not going to match up with what your client has if it use to talk to pfsense 1 vs now this other one running plus.

              It would seem impossible to me that pfsense could present like that if it is in fact the same device.. Could be something cached in a browser maybe.. But if was the same device and browser showing some cached pages from another pfsense you had talked to on the same IP.. The password would be the same if its actually the same pfsense instance.

              But as a sanity check I would for sure look at the mac your seeing for what is your pfsense IP your hitting.

              You are using IP to talk to pfsense gui - or are you putting in a fqdn? Possible those resolve to 2 different IPs on 2 different client machines.

              Personally I find it highly improbable that your actually talking to the same pfsense instance from from your 2 different clients - it just seems impossible how pfsense could present 2 different pages one + and the other CE, and even if it did - the username and password would be the same no matter what web page it presented.

              -Why would a new cert change my login creds?
              -Why would the new cert show a different version?

              They wouldn't

              The logical answer to what your seeing is your talking to two different instances of 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.8, 24.11

              1 Reply Last reply Reply Quote 0
              • G
                Gblenn @rbwillis
                last edited by Gblenn

                @rbwillis said in CE and Plus wierdness:

                • Come to think of it I vaguely recall renewing a cert over the holidays, didn't think anything of it. But:
                  -Why would a new cert change my login creds?

                It wouldn't but it may look like it's not accepting your login. I gues in such a case one would be looking at a cached page, that needs to be refreshed.

                -Why would the new cert show a different version?

                Definitely shouldn't, and that part is a mystery, unless it was some mistake on your part, like wrong IP? Sometimes you enter an IP, but when you click, the autoenter feature of the webbrowser has given you something else...

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Yeah check the cert checksums on each page (assuming both are https) and make sure they really are different.

                  You could have something cached on one of the client machines. If it ever connected to a Plus device on the standard LAN address.

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rbwillis @stephenw10
                    last edited by

                    @stephenw10
                    So, here are the arp-a logs from both machines.

                    0718c77d-1857-45fc-836a-9fdd7bc5acbb-image.png

                    75d427d7-0d06-4427-8204-a7a556c84c83-image.png

                    Different PC's hitting the same MAC with two different login screens.

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

                      @rbwillis your hitting port 8008 on one and just normal 443 on the other.. 8008 is the captive portal login I do believe. I know the captive portal is 800 something might be 2 or 3 depending if http or https, but I think if you fire up more than one that can change, etc.

                      But clearly that is not the normal web gui port on 8008. So yeah your normal admin login might not work on whatever your hitting there on that odd port.

                      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.8, 24.11

                      1 Reply Last reply Reply Quote 1
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Yup it adds two new ports for each instance I believe.

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

                          @stephenw10 yeah I just enabled a couple and 2 different ports got added, so like 8002,3 and then 8004,5

                          If you track down per pid on what is listening, you can track it to the command that is running, etc

                          captive.jpg

                          And then here is my 2nd one running

                          2ndcaptive.jpg

                          So 8008 to me would be like the 3rd captive portal running. Or something like that, maybe 4th.. Not sure how exactly chooses those ports or how it cycles through them when you add more instances - or if you check to run a https one as well, etc.

                          but yeah seems like he is hitting a captive portal gui vs just the normal web gui.

                          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.8, 24.11

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rbwillis @johnpoz
                            last edited by rbwillis

                            @johnpoz - Is there a simple way to point my requests back to a "normal" web gui or do I need to mod something?
                            Where does that captive portal login reside? Can I just delete it?

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Do you actually have captive portal enabled at all? It's in Services > Captive Portal.

                              If you are not entering port 8008 directly then you're being redirected to it by the captive portal. On something.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                rbwillis @stephenw10
                                last edited by rbwillis

                                @stephenw10
                                Captive portal is not set up.
                                7d7ddea9-3d9d-4bc6-892b-80b525860e4c-image.png
                                I have HP Wolf security on my machine...could that be redirecting me?
                                I tried disabling all the services, but still landed on the same page.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Hmm, well it sure looks like that one client is behind some other pfSense Plus device that is running CP.

                                  Try running on the pfSense you can access: sockstat -l4
                                  See if it's actually listening on port 8008.

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

                                    @stephenw10 well from his mac address he posted its the same machine.

                                    Like to see what is listening on the captive portal port.. When I disable my test captive portals it stops listening on the 8000 ports.. But maybe something didn't get killed and its still listening, and somehow that machine keeps going back to there because of cache, etc.

                                    but something is odd because my test captive portals don't show the pfsense+ logo. they just show pfsense

                                    This other machine maybe at one time connected to a captive portal, or just normal gui where they had changed the port to 8008 vs 443, or some other port.. For example my pfsense uses 8443 because I set that.

                                    The one that is working without the + looks to just be on https (443) but guess it didn't trust the cert is why it shows not secure. And the one that shows + is connecting to port 8008, which yeah would assume is captive portal..

                                    I would look to see what is listening with on 8008, you can track down the command that was used via ps -awx once you know the pid(s) there are prob a few being shown for what is listening on 8008.

                                    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.8, 24.11

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Yeah the MAC address being the same is odd...

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