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

    website security problems

    Scheduled Pinned Locked Moved General pfSense Questions
    69 Posts 6 Posters 16.1k Views 7 Watching
    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.
    • N Offline
      nimrod @jc1976
      last edited by

      @jc1976 this was never a pfSense or Xfinity issue to begin with. The error you got was clearly a browser/plugin issue as i described in my first post in this thread. Just because you didnt have any issues before, doesnt mean that the issue was not there. Browsers and their plugins are constantly getting updated, and with those updates, their behavior changes as well. Previous versions could try to establish HTTPS traffic, and if they fail, they just continue to HTTP without you even knowing. This could be browser "security issue" so Mozilla decided to change this and warn you if HTTPS traffic is not possible, and force you to "accept the risks" before you continue.

      There is no need to use gparted or any other 3rd party software to wipe partitions. pfSense installer is doing that by default. Im not sure why you removed pfBlockerNG, Squid and Suricata if you have more than capable hardware. Neither of those packages were causing the issue you had. You are just paranoid now for no reason.

      You also said, and i quote:

      "i just need to figure out why i'm having so many issues with it all of a sudden. I wish i new how to read logs better.."

      What other issues are you having ?

      As for the RAM memory, some amount of your total system memory is shared with onboard graphic card. This can be changed in BIOS. pfSense doesnt need much video RAM since its not running Xorg graphic server. Its all textual or web interface mode. Unfortunately some BIOS-es wont let you set this shared memory size less than 32, 64 and on some system even 128mb of RAM. If you want to overcome this issue, you need a dedicated video card, which is totally pointless since you have 16GB of RAM which is overkill anyway.

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

        This is not a RAM issue.

        It's almost certainly a browser issue. That should be easy to check though by just using a different browser.
        It could be a combination of things and that browser plugin is just revealing it.

        Like something is resolving those to a different page, maybe a warning or error, and your browser is showing that because it's http.

        Steve

        johnpozJ N 2 Replies Last reply Reply Quote 0
        • johnpozJ Offline
          johnpoz LAYER 8 Global Moderator @stephenw10
          last edited by johnpoz

          What is funny is his example is showing https://amazon.com in the url address bar.

          If you go to amazon.com via http or https it should be sending his browser a redirection.

          Resolving amazon.com (amazon.com)... 205.251.242.103, 176.32.103.205, 54.239.28.85
          Connecting to amazon.com (amazon.com)|205.251.242.103|:80... connected.
          HTTP request sent, awaiting response... 301 Moved Permanently
          Location: https://amazon.com/ [following]
          --2021-11-11 09:29:03--  https://amazon.com/
          Connecting to amazon.com (amazon.com)|205.251.242.103|:443... connected.
          
          --2021-11-11 09:29:39--  https://amazon.com/
          Resolving amazon.com (amazon.com)... 205.251.242.103, 176.32.103.205, 54.239.28.85
          Connecting to amazon.com (amazon.com)|205.251.242.103|:443... connected.
          HTTP request sent, awaiting response... 301 Moved Permanently
          Location: https://www.amazon.com/ [following]
          --2021-11-11 09:29:39--  https://www.amazon.com/
          Resolving www.amazon.com (www.amazon.com)... 23.11.225.174
          Connecting to www.amazon.com (www.amazon.com)|23.11.225.174|:443... connected.
          

          Notice the "301 Moved Permanently" and then the new www. url and following to that..

          He could have something blocking something - and his browser is showing this error as a red herring because it doesn't know any better?

          I would love to see a wget even - take the browser out of the equation.

          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
          • N Offline
            nimrod @stephenw10
            last edited by

            @stephenw10 said in website security problems:

            This is not a RAM issue.

            It's almost certainly a browser issue. That should be easy to check though by just using a different browser.
            It could be a combination of things and that browser plugin is just revealing it.

            Like something is resolving those to a different page, maybe a warning or error, and your browser is showing that because it's http.

            Steve

            @stephenw10 not sure if you saw, but issue is already resolved. Check the post from @johnpoz. Issue is exactly what i described in my first post. Also, i never said it was a RAM issue. @jc1976 was wondering where did the certain amount of total system RAM go, so i explained him that system RAM is shared with onboard graphics.

            johnpozJ stephenw10S 2 Replies Last reply Reply Quote 0
            • johnpozJ Offline
              johnpoz LAYER 8 Global Moderator @nimrod
              last edited by johnpoz

              @nimrod I am not sure I would consider it "resolved" until we actually hear from the user that he has it working now.

              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

              N 1 Reply Last reply Reply Quote 0
              • stephenw10S Offline
                stephenw10 Netgate Administrator @nimrod
                last edited by stephenw10

                @nimrod said in website security problems:

                @stephenw10 not sure if you saw, but issue is already resolved. Check the post from @johnpoz. Issue is exactly what i described in my first post. Also, i never said it was a RAM issue.

                I realise. But @jc1976 suspected it might be and I was ruling that out.

                Yeah, is that browser setting blocking the http redirect? Seems like that should happen over https but I've never dug too deeply into that.

                Steve

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nimrod @johnpoz
                  last edited by

                  @johnpoz

                  Im constantly getting notified that posts have been edited, i thought i saw he said issue was resolved. I scrolled back now, and i dont see it. Im sorry, my bad.

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jc1976 @nimrod
                    last edited by

                    @nimrod

                    Regarding trying this all out with a different browser and different computers, that was done.

                    i attempted the same thing with edge, and my GF is using her mac with chrome, she's having the same issues as well. She has two mac laptops (one for work, one personal), both have the same issue.

                    So, i'll make the change with firefox but as i said before, this wasn't an issue a few weeks ago and up until last night absolutely nothing has changed. last night i uninstalled, rebooted, reinstalled (as default) firefox and the issue is still there.

                    johnpozJ B 2 Replies Last reply Reply Quote 0
                    • johnpozJ Offline
                      johnpoz LAYER 8 Global Moderator @jc1976
                      last edited by johnpoz

                      @jc1976 said in website security problems:

                      and my GF is using her mac with chrome, she's having the same issues as well.

                      And again pfsense has ZERO systems to make such a notification to the browser - that error is a BROWSER thing.. Now its possible your filtering the 301 redirection, but I really don't see anything in pfsense that would do that.. Maybe some sort of IPS?

                      How about you do a simple fetch or wget.. Now www.amazon.com is going to resolve to something different than amazon.com as you can see in my outputs from wget..

                      If your browser is not seeing the redirection and tries to load https://amazon.com via 443 then yeah the cert could fail and your BROWSER would warn you about it..

                      edit:
                      But when you look at my test of https://amazon.com I get the 301 redirect over 443, and the cert is trusted, etc.. Maybe you have something wrong with your systems Trusted Certs?

                      Here for example using debug on the wget I can see the ssl info, etc. and via that connection I get 301 that it moved to https://www.amazon.com

                      --2021-11-11 15:05:53--  https://amazon.com/
                      Resolving amazon.com (amazon.com)... 205.251.242.103, 176.32.103.205, 54.239.28.85
                      Caching amazon.com => 205.251.242.103 176.32.103.205 54.239.28.85
                      Connecting to amazon.com (amazon.com)|205.251.242.103|:443... connected.
                      Created socket 3.
                      Releasing 0x00005653b3975a30 (new refcount 1).
                      Initiating SSL handshake.
                      Handshake successful; connected socket 3 to SSL handle 0x00005653b3975b50
                      certificate:
                        subject: CN=*.peg.a2z.com
                        issuer:  CN=DigiCert Global CA G2,O=DigiCert Inc,C=US
                      X509 certificate successfully verified and matches host amazon.com
                      
                      ---request begin---
                      GET / HTTP/1.1
                      User-Agent: Wget/1.20.3 (linux-gnu)
                      Accept: */*
                      Accept-Encoding: identity
                      Host: amazon.com
                      Connection: Keep-Alive
                      
                      ---request end---
                      HTTP request sent, awaiting response... 
                      ---response begin---
                      HTTP/1.1 301 Moved Permanently
                      Server: Server
                      Date: Thu, 11 Nov 2021 21:05:53 GMT
                      Content-Type: text/html
                      Content-Length: 179
                      Connection: keep-alive
                      Location: https://www.amazon.com/
                      Permissions-Policy: interest-cohort=()
                      

                      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 Offline
                        stephenw10 Netgate Administrator
                        last edited by

                        Mmm, that error you're seeing in Firefox is a specific firefox error. So what error do you see in other browsers? There are almost certainly some clues there.

                        Steve

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

                          @stephenw10 I have tried to duplicate this with firefox turning on https-only, etc. And going to http or https://amazon.com or pfsense.com etc.. all just work fine - with the 301 redirection to www.

                          Maybe a proxy or ips thing? Proxy maybe doing some sort of https mitm?

                          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
                          • B Offline
                            bPsdTZpW @jc1976
                            last edited by bPsdTZpW

                            @jc1976 I suspect DNS is serving incorrect addresses, or possibly some security software is acting as a MITM and is not handling amazon.com's redirect correctly. What's the output if you nslookup amazon.com , then nslookup www.amazon.com ? Is the former IP in a range owned by Amazon (lookup at https://whois.arin.net )?

                            FWIW, I do not see this problem when enabling HTTPS-only mode in FF (v94.0).

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

                              Mmm, I could certainly believe DNS shenanigans.

                              Try just resolving locally, stop sending your queries to Cloudflare.

                              J stephenw10S 2 Replies Last reply Reply Quote 0
                              • J Offline
                                jc1976 @stephenw10
                                last edited by

                                @stephenw10

                                Hey fellas! really, thank you SO much for your input in all this!

                                the issue also came up on edge and chrome. i only have firefox and edge on my home workstation. I tried it all on my laptop as well and had the same issues.

                                regarding resolving locally instead of cloudflare, i'm a bit uncertain what you mean by that. DNS settings are:

                                127.0.0.1
                                1.1.1.1
                                1.0.0.1

                                I don't use dnsmasq (forwarder), just unbound.

                                disabling https: only mode in all windows (under firefox) seems to have things behaving more normally, but again, i don't have ANY services enabled (suricata, pfblocker, squid/clamav). so who knows what will happen if i were to re-enable those.

                                I also don't have any rules setup, so i don't know what is causing my trading apps to hang upon startup, at least not at the moment because again, anything that would block them has been shut down..

                                i've even shut down my windows defender firewall to make sure that couldn't be causing the hang-up.. it's all very weird.

                                Johnpoz mentioned filtering 301 redirection.. i'm gonna do my research and find out how to figure that out because this whole thing feels like a filtering issue, i just don't know how to go about figuring that out (still learning).

                                i trying to explain to our consultant at work what goes on..
                                -i opened up firefox to DDG.
                                -searched for ad blocker test
                                -given a list of sites to test ad blocks.
                                one of which i used is "https://canyoublockit.com"

                                clicking on the link for https://canyoublockit.com yields nothing.. the site just doesn't open. clicking multiple times does nothing, it just sits there as if i didn't click on anything. sometimes it would give me the security error... but otherwise nothing happens.. then if i close out and come back, maybe the site would open.. it's random..

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

                                  @jc1976 said in website security problems:

                                  I have cloudflare setup for dns over tls

                                  If you are doing that then you're sending DNS queries to them rather than resolving locally. Assuming it's setup correctly.

                                  What error do you see in Edge? Or any other browser on any other client?

                                  Steve

                                  J 1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jc1976 @stephenw10
                                    last edited by

                                    @stephenw10 it's not even the browsers, it's my software.

                                    i have an old crappy cisco rv042 from long ago as a backup.
                                    right now, i have that plugged in because aside from websites not loading, even my trading apps are hanging.

                                    i have EVERY service/package shut down so there shouldn't be anything blocking anything, other than the default ruleset that blocks all incoming connections.

                                    I'm going to have to reinstall it all from scratch when i get a chance.
                                    really aggravating.

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

                                      Backup your config, restore to defaults, re-test. It's easy to restore the config if it doesn't help.

                                      J 1 Reply Last reply Reply Quote 1
                                      • J Offline
                                        jc1976 @stephenw10
                                        last edited by

                                        @stephenw10 yup!

                                        i'm happy to say that my GF left for the weekend so performing a ground-up reload of pfsense is what i'll be doing tonight after i get home from work.

                                        I'll keep you posted.

                                        Thanks again for all your input!

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jc1976 @jc1976
                                          last edited by

                                          @jc1976
                                          looks like i'm back in business..

                                          gparted the drive and reloaded pfsense from scratch. I've got the base config down, only modifications done are to dns over tls with cloudflare..

                                          so far, so good.. very snappy and the throughput is where it's supposed to be..

                                          did a backup.. not sure if i wanna bother adding packages yet.. it's nice to have it back up and running. just reeeaaaaally despise the ads and marketing from my devices..

                                          N 1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            nimrod @jc1976
                                            last edited by

                                            @jc1976

                                            I dont see any reason why you should not install pfBlockerNG.

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