Configuration examples
U
SER
G
UIDE
371
set gprs rx-idle 1800
set gprs no-default-route
set gprs masquerade
set gprs mtu 1500
set gprs debug
set gprs sgauth 1
set gprs pwroff-modem
set gprs sms-handle
set gprs off
set adsl encap rfc1483-llc
set adsl pvc-number 1
set adsl pvc atm0 vpi 8 vci 35
set adsl pvc atm0 service UBR
set adsl pvc atm0 pcr 0
set adsl pvc atm0 no-default-route
set adsl pvc atm0 no-masquerade
set adsl pvc atm0 ipaddr <PTP-IP-ADDRESS>
set adsl pvc atm0 no-nexthop
set adsl pvc atm0 netmask 255.255.255.252
set adsl on
set backup checking-ipaddr <IP-PUBLIC> via bfd through-interface atm0
set backup check-interval 30
set backup check-retries 3
set backup check-wait 5
set backup deactivate-delay 30
set backup on
set trigger backup up send-sms -d <TEL-NUMBER> ADSL DOWN BACKUP ON
set trigger backup up set gprs on
set trigger backup down send-sms -d <TEL-NUMBER> ADSL UP BACKUP OFF
set trigger backup down set gprs off
set route net 0.0.0.0 netmask 0.0.0.0 dev atm0 distance 10
set route net 0.0.0.0 netmask 0.0.0.0 dev ppp0 distance 5
set iptables -t nat -A POSTROUTING -s <PRIVATE-LAN>/N -o atm0 -j SNAT --to <PUBLIC-IP>
set autocmd set backup on
set autocmd set gprs off
If you want to send the message periodically every day at 12:05 p.m. until the line is restored, the
following commands must be added:
set cron repeat-sms hour 12 min 5
set cron repeat-sms command send-sms -d <PHO-NUM> ADSL DOWN BACKUP ACTIVATED