WAN IPv4 checker & email notifier for computers behind dynamic IP/DHCP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
762 B

  1. # Cache/Log directory of the script
  2. WANIP_DIR="/var/spool/mail"
  3. # Log file for checked/resolved IPv4 WAN addresses
  4. WANIP_LOG="${WANIP_DIR}/ip_wan.log"
  5. # 1 = Enable fallback DNS servers, overrides /etc/resolv.conf in case of DNS failure
  6. # Recommended:
  7. #
  8. # - curl built with options '--enable-dnsshuffle' & '--enable-ares'
  9. # - if you work only on IPv4 environments, it is strongly recommended to build curl with '--disable-ipv6'
  10. # as fallback name resolution attempts may fail otherwise
  11. #
  12. # - /usr/lib/libresolvconf-override.so
  13. #
  14. ENABLE_FALLBACK_DNS=1
  15. # Email sender
  16. # Same than in /etc/ssmtp/ssmtp.conf
  17. EMAIL_SENDER=(
  18. mailsender@foo.com
  19. )
  20. # Emails to send notification to
  21. EMAIL_RECIPIENTS=(
  22. whogetsthemail_1@foo.com
  23. whogetsthemail_2@foo.com
  24. )