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

    Our Sites become unavailable randomly

    Scheduled Pinned Locked Moved General pfSense Questions
    106 Posts 13 Posters 20.8k 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
      wheemer
      last edited by

      @johnpoz:

      "It just that our setup is so generic without any fancy packages"

      Well then lets see it.. It can not be too generic since you have a carp setup.  So what is in front of pfsense?  How is your webserver/dns/whateverelse server connected to both of your pfsense boxes?

      Not sure how they are connected has anything to do with it. Regarless of any of the info you are asking for, the boxes worked fine for two years which wouldn't have happened had they been misconfigured. The carp setup is nothing outside of default. There is a Cisco router in front of the PFsense boxes that is supplied and controlled by our ISP. The PFsense have three network cards each, LAN, WAN and CARP.

      What just blows me away is how someone could be in charge of a network and having what I assume is a production down issue and not even get the IP that is supposedly causing your problem that you thought you were blocking, etc. etc.  But your not sure since you don't even know what IPs are in the list your blocking nor what the IPs was..  You could of clearly just looked in pfsense to see the number of connections to your dns server from the outside, etc.

      Why would you shut off your main pfsense without some basic details of what was going on, etc.

      Just blows my freaking mind!!!

      I have not claimed to be a PFSense expert, I am a PFSense Noob. Not sure why you are personally attacking me here? I checked PFSense and could not find out the IP. Perhaps I was not looking in the right spot, sure, like I said I am not an expert on PFSense.

      My job is to keep out connection alive and that's what I did. You think I should let the connection be down while I poke around trying to understand the problem?

      Also does one configure such setup, so where is your other ns for these domains.  Also behind pfsense pointing to the same 2k12 box?  So your registrar allowed you to just use 1 public IP for your 2 required dns?

      For F sake I wanted to play with a domain for dnsssec that nobody uses and I still put up 2 ns in different parts of the world - one in LV and the other in Luxembourg.  why you would host your own production off a 2k12 is nuts..

      We are a small company without the need to change our setup that has been working for us for many years. We have multiple public IPs. And we have multiple DNS servers. Really not sure why you are making assumptions, you know how that make you look right? Yeah we have a single Pipe, but if our connection drops then so does our webserver, so having secondary dns hosted somewhere else wouldn't help.

      And then you didn't even bother to setup any sort of rate limiting you said.  What safe guards did you put in place other than trying to block china and russia ips?  I can send queries to your "authoritative" dns from spoofed IP asking for something your authoritative for, you then send reply to spoofed IP.. So your dns is now the amplifier in an attack - be it your allowing recursive or not.

      I already said we are going to move DNS offsite for more security. Before this happened I thought PFSense was offering protection against such things out of the box. Forgive me for thinking PFSense could protect me from DDOS attacks as a default.

      What is this domain btw, love to see the report on the dns and what it shows for ns, etc.  PM it to me please if you don't want to make it public.

      With how unprofessional you sound I would not want to share this info. And besides if there was any issues with how our DNS is configured then our email would experience problems sending places. We have it all configured just fine. Like I said intodns.com says it's all good.

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

        whatever dude - good luck then.

        Where have you shown its a ddos attack that is your issue?  Where have you shown what the problem is, there is no firewall on the planet that stops ddos attacks btw.

        If the pipe is filled up to your firewall, firewall can do nothing about that.  If firewall is told to allow traffic to something, and you then overload that system or send it bad queries or whatever that causes an issue with that service.  the firewall did what you told it to do - allow the traffic, etc

        You don't even know the IP address of what you thought was the source of your problem.

        All you have told us if you reboot one of your pfsense boxes the issue seems to go away..  What other info have you given that I might have missed?

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

          The problem is solved already and both boxes have been back to humming along fine.

          After our ISP found the IP they blocked it upstream. Our ISP said it was a 55 connection DDOS attack on port 53 udp.

          Our DNS server was never overloaded or affected itself. It was just PFSense that was somehow not allowing requests through.

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

            Strangely this morning we had both websites go down again, with "the connection has been reset" error.

            During this time I did check DNS and it was responding no problem. It seems as if port 80 was not making it through PFSense.

            I tried to enter Persistent Carp Maintenance Mode, however our sites still would not load.

            After turning off PCMM and rebooting the first firewall it came back up immediately.

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

              So lets see your firewall rules, and lets see sniffing on wan and lan that traffic is forwarded.

              Your seeing nothing in pfsense logs any errors? anything?  Nothing in firewall logs that traffic was blocked?

              So your mail was working while your sites where down?

              So from the PM you sent I see 3 IPs public.156, .157 and .158 and .158 and .157 are your mx boxes..  Do you have 2 of them or is this all being served up off your 1 2k12 box?  And your just forwarding multiple IPs to the same private IP behind 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
              • W
                wheemer
                last edited by

                I am not sure I am looking in the right place to find relevant info. Maybe I can give you access to PFSense directly.

                I did not check our mail ports specifically. I just checked if dns was resolving and it was.

                Yeah we have three VMs we are running DNS on. They are not pointed to the same windows server.

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

                  so that changed?  Where you not before running dns off your 2k12 box?

                  if you pm me login info I will take a look see..

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

                    No I didn't change anything recently. DNS is running off three different win server 2k12 R2 VMs. Those servers also do other stuff (light load)

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

                      Our main website just went down again. The only thing in the log is:

                      lighttpd[25396]: (connections.c.305) SSL: 1 error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher

                      The strange thing is that our WebMail site is loading fine on one IP, yet our main site is not loading on another.

                      It's like PFSense is selectively blocking only one port 80 rule.

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

                        I show the site up..  The domain you sent me loads fine.

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

                          Yeah that's because I rebooted both our PFSense boxes already.

                          We have customers sending us files all day long, so when it's down it has to be back up right away.

                          Nothing I try in the GUI has any affect, entering Persistent Carp Maintenance mode does not bring it up.

                          I even tried resetting states.

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

                            so did you do a sniff on wan and lan when it was down?

                            Was the firewall showing any blocks?

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

                              I am unfamiliar with how to sniff network traffic.

                              At the time of the problem there was nothing showing as blocked, however I unchecked " Log packets matched from the default block rules put in the ruleset"

                              Now when I look there is a few lines:

                              block/1000106024
                              Jun 4 10:50:29 WAN Block private networks from WAN block 192.168/16 (1000106024) Icon Reverse Resolve with DNS Icon Easy Rule: Add to Block List 192.168.1.112:5351 Icon Reverse Resolve with DNS Icon Easy Rule: Pass this traffic 224.0.0.1:5350 UDP

                              192.168.1.112 is the internal IP of our main PFSense box.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Supermule Banned
                                last edited by

                                I believe so. You volunteer to test?

                                @cmb:

                                You also can't bring down a system with a few Mbps DDoS IF it's sized and configured accordingly to handle that kind of resource exhaustion attack.

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

                                  Our main site is down again… How do I sniff the connection?

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

                                    When entering persistent carp maintenance mode I would expect the site to come back up right away. However that doesn't work.

                                    If I physically power off box one then the site comes back immediately when box two takes over.

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tim.mcmanus
                                      last edited by

                                      @wheemer:

                                      When entering persistent carp maintenance mode I would expect the site to come back up right away. However that doesn't work.

                                      If I physically power off box one then the site comes back immediately when box two takes over.

                                      Is there a chance the physical NIC is starting to fail.  Is it always the same server, same interface that fails?  Is it possible to clone the questionable server onto different hardware?

                                      I can give you some suggestions for setting up a packet sniffer.  It's not too tough if the hardware you are using now supports port mirroring.  If it does not, I can recommend a piece of hardware that will do it for you that is relatively inexpensive ($50).  It would be a temporary thing, but you could always reuse the hardware in a similar fashion for other things.

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

                                        There no chance it's hardware related in my opinion.

                                        The fact is it's only port 80 that is being blocked, sometimes for one IP and at times two public IPs have port 80 blocked.

                                        Everything else works just fine, I can RDP through, FTP connections unaffected, etc. Our connection out is also not affected.

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          cmb
                                          last edited by

                                          @wheemer:

                                          There no chance it's hardware related in my opinion.

                                          Given the symptoms, I agree, there's no way a hardware failure would discriminate between diff types of traffic. I'm thinking based on the description thus far that it's actually the server returning the RST, but a packet capture will prove that one way or another.

                                          @wheemer:

                                          How do I sniff the connection?

                                          Diagnostics>Packet Capture. Choose interface WAN, count 0, click Start. Let it run for a minute or so while you attempt to load something from the Internet that isn't working. Click Stop, then download the capture. Repeat the same process but for interface LAN. If those are sub-20 MB, you can email them to me (cmb at pfsense dot org) as attachments with a link to this thread and I'll take a look. If they're bigger than that, upload them somewhere and send a URL via PM here is fine.

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

                                            or you can just ssh to pfsense and do a tcpdump on both your wan and lan at the same time..  write those to a file for later viewing

                                            This way you get dump going at same time both on the wan and the lan.  If you need the actual command tell me what your interfaces are for your wan and lan, are they em0, re0 and em1, etc. etc.

                                            something like

                                            tcpdump -i em0 -w wancap.pcap

                                            hit cntrl c to stop the capture.

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