Ad Widget

Collapse

HTTPS and SSH services appear to be down only on pfSense firewall CARP backup

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • inventor96
    Junior Member
    • Dec 2021
    • 13

    #1

    HTTPS and SSH services appear to be down only on pfSense firewall CARP backup

    We use a Zabbix 6.2 server to monitor our pfSense firewalls. We have the zabbix 6.0 package running on all of them, but that's not terribly relevant to this issue. The zabbix server checks the availability of the HTTPS and SSH services of the firewalls using the HTTPS service and SSH service templates. We have two sites, each with two firewalls configured for High Availability, and the sites are connected via an OpenVPN site-to-site setup. The zabbix server is monitoring each of them on their dedicated LAN IP (not any shared CARP IP).

    Since their configuration with zabbix, the zabbix server incorrectly reports that the HTTPS and SSH services go down on only the firewalls with the CARP backup role (the firewalls with the master role have no such reporting). It's also worth noting that the zabbix agent does not appear to go down during these times. Each service is checked every minute by default. Each firewall has a different intermittency from each other, but the services for each are simultaneous with each other (e.g. if pfSense A has HTTPS reported as down, SSH will also be reported as down; and when one comes up, the other comes with it. pfSense B could be reported as just fine for both the whole time). During the windows when it's reported down, I'm able to access both services just fine, so I know it's false positives.

    Below are the service up/down history for the past four hours for both firewalls with the CARP backup role.​

    First firewall:

    Click image for larger version

Name:	1666432030823-34271d2e-b074-4784-859c-e56f4e615c83-image.png
Views:	633
Size:	102.1 KB
ID:	453128

    Second firewall:
    Click image for larger version

Name:	1666431942177-d7e1b101-eeaf-498f-9202-318c86699c14-image.png
Views:	487
Size:	106.2 KB
ID:	453129

    I've been thinking this one over for a while now, but I can't seem to think of any reason why only those services would go down (at varying frequencies and durations) when the agent stays up, and only on the backup firewalls...

    The closest thing I can think of is if there's some sort of self-protection built-in that blocks access from any address if it has so many unsuccessful logins within a period of time. But if that is the case, I would expect the frequency and duration to be consistent and to happen with the master firewalls, too.

    Any thoughts or pointers would be greatly appreciated!​​​
  • Answer selected by inventor96 at 25-10-2022, 00:15.
    inventor96
    Junior Member
    • Dec 2021
    • 13

    Well, it looks like my expectations about the self-protection were wrong! I found in the system logs of the pfSense firewalls that it was flagging the checks from zabbix as an attack, and would periodically block all access from the zabbix server IP. I was able to whitelist that IP from the login protections, and I haven't seen any issues since. I still have no idea why this issue only manifested for the backup firewalls and not the master ones, seeing as their configurations are nearly identical, but hopefully this helps someone else in the future!

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      Does Zabbix server log say anything about these?

      Now that you suspect that Zabbix is detecting the problems incorrectly, can you run tcpdump on the Zabbix server filtering with those IP addresses and see what happens in the connections? Can you run the capture at the same time on the pfSense boxes? If you need help analyzing the traffic, feel free to post the capture files here (or a link where it can be downloaded).

      I don't have any experience on pfSense so I don't know if it has some peculiarities or how to check its own protection.

      Markku

      Comment

      • inventor96
        Junior Member
        • Dec 2021
        • 13

        #3
        Well, it looks like my expectations about the self-protection were wrong! I found in the system logs of the pfSense firewalls that it was flagging the checks from zabbix as an attack, and would periodically block all access from the zabbix server IP. I was able to whitelist that IP from the login protections, and I haven't seen any issues since. I still have no idea why this issue only manifested for the backup firewalls and not the master ones, seeing as their configurations are nearly identical, but hopefully this helps someone else in the future!

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #4
          Thanks for taking the time to respond here as well.

          Markku

          Comment

          Working...