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

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