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

    Best practices for apinger, gateway monitoring / DNS

    Scheduled Pinned Locked Moved Routing and Multi WAN
    13 Posts 7 Posters 8.3k 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.
    • P
      phil.davis
      last edited by

      See this feature request: https://redmine.pfsense.org/issues/1189
      IMO your analysis is correct - just needs to be implemented in code one day.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

        This is a good idea even when pfsense has a public IP on it, and single wan connection.  Since it is quite possible for the isp gateway to top resonding to ping, or become sluggish in answering pings that exceed a timeout, while through the isp gateway still works and connection is therefore still up.  So if monitoring a IP past your isp gateway you would not go down since this still answers..

        And also quite possible that the upstream IP you picked be it a dns or not could also just be down or not answering pings any more, etc.  Having multiple IPs to monitor would make it less likely to get false down issue.

        That feature request is like 4 years old ;)  So is this something slated for 2.2? or 2.2.1 or 2.3?

        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
        • P
          phil.davis
          last edited by

          It won't happen in 2.2. But after 2.2 is released I am happy to work on an implementation, because I would really like such a feature, the way internet and ISPs routing and… goes up, down and all around here in Nepal.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • luckman212L
            luckman212 LAYER 8
            last edited by

            Phil that would be an incredible enhancement - I really hope you'll find some time time to work on this!

            1 Reply Last reply Reply Quote 0
            • luckman212L
              luckman212 LAYER 8
              last edited by

              Phil, now that 2.2.x has been out and starting to settle down a bit, do you still think this is something that you would be open to working on? I want to start a bounty to help you with the effort.

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                I had a look at the feature request again and added another comment to see if enhancing this using PHP scripts would be acceptable. Given the current issues with apinger, and possibilities of a replacement utility being written from scratch, there is not much point modifying the existing apinger code to do the multiple monitor IPs thing.

                I don't care about the bounty - if something comes of this then just buy some gifts from the gift catalog in my signature  :)

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                1 Reply Last reply Reply Quote 0
                • luckman212L
                  luckman212 LAYER 8
                  last edited by

                  Thanks - I read your comment and it does certainly make sense. I didn't know a replacement or rewite of apinger was even being considered but that is good news. I would certainly be willing to help fund that effort if others are involved. In the meantime, if there is a kludge you can hack together using PHP + the existing binaries then I would of course be grateful for such a thing.

                  1 Reply Last reply Reply Quote 0
                  • E
                    eSpezi
                    last edited by

                    +1
                    for a new and reliable Apinger with 2 or more checked IPs
                    I also am willing to fund this.

                    1 Reply Last reply Reply Quote 0
                    • luckman212L
                      luckman212 LAYER 8
                      last edited by

                      Blast from the past! Digging up this old thread.

                      Now that 2.3 is around the corner and apinger is being replaced with dpinger it would be awesome if the multiple-target monitoring method could be implemented for multi-wan.  To state again: having a single host's uptime as the deciding factor determining whether a gateway gets marked down is not ideal — 3-5 monitor IPs would be more robust.

                      1 Reply Last reply Reply Quote 0
                      • R
                        reqlez
                        last edited by

                        Actually, screw pings, often ISPs mess with ICMP packets, have an option to do a DNS check instead of PINGS  ! Very needed.

                        1 Reply Last reply Reply Quote 0
                        • O
                          Overlan
                          last edited by

                          I put this same question to myself and after some time I decided to use 8.8.8.8.
                          I never had 8.8.8.8 going down (never noticed that to be precise).
                          Having the same reliability of google as a icmp reply I think is close to the best you can achieve, how can this be not enough?

                          I agree with the one who said that another protocol as a failover should be present, icmp alone is not enough to say internet is there.

                          about that I wish to add a thing: I monitor my vpn by pinging a dns inside her and is says under 2ms, just impossible, how this could happen?

                          1 Reply Last reply Reply Quote 0
                          • V
                            VoxisTelcom
                            last edited by

                            Any re-thought about adding this? while sending the fail signal if multiple points are down could be useful, we really want it to for Historical Quality reporting, Packet Loss, Latency… really like the new easy to read Std. deviation in 2.3.. nice

                            We always have multiple points of reference, in EU ISP network, Our data center, Our ISP and all possible interconnects between. Having this historical info in EU end points would be very helpful in a lot of ways.

                            anyway the first step in getting multiple fail confirm, is to have multiple monitoring!!!!

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