Configuration examples
U
SER
G
UIDE
370
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 88.34.53.2
set adsl pvc atm0 no-nexthop
set adsl pvc atm0 netmask 255.255.255.252
set adsl on
set backup checking-ipaddr 2.21.172.162 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 set gprs on
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 192.168.1.0/24 -o atm0 -j SNAT --to 2.21.172.162
set autocmd set backup on
set autocmd set gprs off
ADSL
WITH
GPRS
BACKUP WITH BACKUP ANNOUNCE VIA SMS
It is described here a base configuration of a primary public ADSL connection with GPRS backup.
An internal private address is configured on the eth1 LAN and an IP address from the public address
pool on the eth0 interface.
To allow the data exchange with the outside, a NAT rule is set for those packets coming from the
private LAN. It is also set the announcement of the GPRS backup condition via SMS to a certain
phone number.
set eth0 ipaddr <PUBLIC-IP> netmask <NETMASK-IP-PUBLIC>
set eth0 on
set eth1 ipaddr <PRIVATE-IP> netmask <NETMASK-PRIVATE>
set eth1 on
set gprs apn ibox.tim.it
set gprs idle 0