set gre tun0 tunnel-source ppp0
set gre tun0 tunnel-destination <GRE-DESTINATION>
set gre tun0 tunnel-address <GRE-IP-ADDRESS>/30
set gre tun0 tunnel-peer <GRE-PEER-IP-ADDRESS>/30
set gre tun0 multicast
set gre tun0 ttl 64
set gre tun0 mtu 1452
set gre tun0 keepalive-intval 10
set gre tun0 keepalive-retries 6
set gre tun0 on
set route host <GRE-DESTINATION> dev ppp0
set route net 0.0.0.0 netmask 0.0.0.0 dev tun0
set trigger gprs up set gre tun0 on
The authentication oh the RADIUS takes place both in dynamic mode and in CHAP or PAP mode. If
the RADIUS does not support only the PAP authentication and not the CHAP one, then you need to
add the following commands:
set gprs sgauth 1
set gprs directive refuse-chap
Practical example:
set eth0 ipaddr 10.10.113.1 netmask 255.255.0.0
set eth0 on
set eth1 ipaddr 192.168.1.254 netmask 255.255.255.0
set eth1 on
set gprs apn intranet.tim.it
set gprs login tiesse1 password tiesse2
set gprs idle 0
set gprs rx-idle 1800
set gprs mtu 1476
set gprs usepeerdns
set gprs debug
set gprs sgauth 1
set gprs no-default-route
set gprs no-masquerade
set gprs speed 230400
set gprs pwroff-modem
set gprs no-sms-handle
set gprs on
set gre tun0 tunnel-source 172.30.16.2
set gre tun0 tunnel-destination 10.1.50.29