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.
    • 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
                                  • J Offline
                                    jc1976 @nimrod
                                    last edited by

                                    @nimrod well, i started off with installing squid..

                                    i ended up canning squid/clamav because even in it's basic installation it was causing issues.

                                    for good measure i also rebuilt the tcpip stack and winsock in my windows 10 pro install..

                                    i spent a while working through basic rule creation to make sure they wouldn't interfere with my apps, that way i know if i have any issues when i install suricata and pfblocker i'll have a better idea of who's causing problems, should any arise.

                                    What are peoples experience with the feodo, c2c(?), sslblacklist options that are part of the suricata install?

                                    do they cause a lotta false positives?

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

                                      @jc1976 said in website security problems:

                                      i ended up canning squid/clamav

                                      Ah you were running through a proxy - that for sure could cause speed issue.. Because your not just routing traffic your processing all of it as the proxy, etc.

                                      pfblocker shouldn't be able to cause slowdown - since its just doing dns.. and filtering what dns you want to filter, it has nothing to do with the actual processing of the traffic through 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

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

                                        @johnpoz nah not through a proxy.

                                        i am SO FED UP WITH THIS!! it just doesn't work!

                                        i thought it was my pc, so i switch... same thing.. i'm running pfsense stock out of the box, only change is that i have dns over tls enabled with cloudflare..

                                        just got a gl.inet that i was going to set up for my folks.. maybe i'll take that.. i dunno.. tired of dealing with this..

                                        sorry for the venting

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

                                          @jc1976 said in website security problems:

                                          i have dns over tls enabled with cloudflare..

                                          And do your security issues go away if you just let pfsense do dns? I have been using pfsense for 10+ years and there is really nothing in pfsense that would do this..

                                          As I went over going to amazon.com without a www gets you a redirection 301 that tells your browser to go to www.amazon.com etc.c.

                                          Pfsense has ZERO to do with that - ZERO!! There is nothing other than IPS or a proxy that would have anything to do with any of that.. Are you trying to go through cloudflare proxy to get to these sites?

                                          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 @stephenw10
                                            last edited by

                                            @stephenw10 said in website security problems:

                                            Mmm, I could certainly believe DNS shenanigans.

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

                                            Yup.

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