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

Mail notification on WAN IP Change (cron)

Scheduled Pinned Locked Moved pfSense Packages
5 Posts 3 Posters 7.0k 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.
  • B
    birdsthewurd
    last edited by Jul 13, 2012, 4:25 AM

    One package that I wouldn't mind seeing is some sort of script that runs every x hours (or it could be based on WAN DHCP lease time) that sends you an email when your dynamic WAN IP address has changed. I'd like to TRY to produce this myself (and of course share with all), but I cannot find where the config file is that contains the current WAN IP address.

    Is something like this already out there? I have comcast as an ISP and my IP changes every now and then. It'd be nice to get an alert on my phone (email) that lets me know of these changes.

    THANKS!

    1 Reply Last reply Reply Quote 0
    • L
      louis-m
      last edited by Jul 13, 2012, 5:58 AM

      isn't this already done via the dynamic dns provider eg dyndns? i'm sure that some of them have email reporting once they detect a change. that being siad, maybe a package would be useful.

      1 Reply Last reply Reply Quote 0
      • B
        birdsthewurd
        last edited by Jul 13, 2012, 1:42 PM

        This can absolutely be done through a your dynamic DNS provider. However, I would much rather have my pfSense box monitor this for me. If the WAN IP is stored in a config file somewhere on the local filesystem, I would imagine that I'd be able to poll the file at regular intervals. If the result is not the same as the last poll, then it could shoot an email to my gmail account. Sounds pretty straight forward.

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jul 16, 2012, 5:57 PM

          This is already done on 2.1 during a dyndns update. If it detects the IP has changed, it will send a notification that it changed. If you have smtp notifications enabled, that means it will send you an e-mail when it happens.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • B
            birdsthewurd
            last edited by Jul 20, 2012, 4:55 PM

            Excellent. I'll be sure to enable smtp notifications and see if that helps. Appreciate the response!

            1 Reply Last reply Reply Quote 0
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received