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

    pfsense sends traffic to gateway monitoring ip (if dns resolves to this particular ip)

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 522 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.
    • E
      elemy
      last edited by elemy

      Hi,

      i have a gateway group (Gateway1/Tier1, Gateway2/Tier2) where i have to manually put an IP address for Gateway2 as the monitoring IP, as my provider filters pings.

      So i decided to put my mailserver IP address there, what caused imho a funny thing to happen.

      If i have the mailserver IP in there and i do a traceroute mymailserver it looks like this:

      traceroute to mymailserver (xx.xx.xx.xx), 30 hops max, 60 byte packets
       1  pfsense.workgroup.local (xx.xx.xx.xx)  0.326 ms  0.298 ms  0.271 ms
       2  gateway2 (xx.xx.xx.xx)  12.958 ms  12.959 ms  13.413 ms
      

      If i use another IP there it looks like this:

      traceroute to mymailserver (xx.xx.xx.xx), 30 hops max, 60 byte packets
       1  pfsense.workgroup.local (xx.xx.xx.xx)  0.784 ms  0.837 ms  0.818 ms
       2  gateway1 (xx.xx.xx.xx)  21.487 ms  21.640 ms  22.185 ms
      

      It even does this if i mark Gateway2 as down manually.

      Seems a bit strange to me :)

      Any thoughts?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @elemy
        last edited by

        @elemy
        When you enter a specific gateway monitoring IP, pfSense naturally routes this IP to the respective gateway. Otherwise gateway monitoring cannot work.

        E 1 Reply Last reply Reply Quote 1
        • E
          elemy @viragomann
          last edited by elemy

          @viragomann

          ok, that would make sense, i was a bit confused as i saw all my mails arriving from our backup line.

          thanks for clarification!

          wouldn't it be better to do something like ping -I opt5 monitoringip?

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @elemy
            last edited by

            @elemy
            The monitoring IP option let you state an alternative IP in case the ISP gateway is not responding to pings.
            You can enter any public IP there which is responding, however it must be outside your local network so that the IP is reachable across the gateway. Many people use Google 8.8.8.8 for monitoring.

            E 1 Reply Last reply Reply Quote 0
            • E
              elemy @viragomann
              last edited by

              @viragomann

              i'll use that than.

              thanks again.

              solved.

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