set gprs masquerade
set gprs default-route
set gprs mtu 1500
set gprs usepeerdns
set gprs debug
set gprs sgauth 1
set gprs speed 230400
set gprs pwroff-modem
set gprs on
Practical example:
set eth0 ipaddr 10.10.113.1 netmask 255.255.255.252
set eth0 on
set eth1 ipaddr 192.168.1.254 netmask 255.255.255.0
set eth1 on
set gprs apn ibox.tim.it
set gprs auto-network
set gprs idle 0
set gprs rx-idle 1800
set gprs masquerade
set gprs default-route
set gprs mtu 1500
set gprs usepeerdns
set gprs debug
set gprs vjc
set gprs sgauth 1
set gprs speed 230400
set gprs pwroff-modem
set gprs on
GPRS ON PRIVATE APN WITH GRE TUNNEL
It is described here a base configuration of the GPRS interface with a connection profile based on a private
APN, with a management IP address on the eth0 and a private IP on the eth1 LAN. The private internal LAN
connection, with the Master in its center, is being realized with a GRE tunnel (keepAlive), with a default
route.
To have the tunnel work correctly, the IP address released by the mobile interface must be static.
set eth0 ipaddr 10.10.113.1 netmask 255.255.255.252
set eth0 on
set eth1 ipaddr <PRIVATE-IP> netmask <NETMASK-IP-PRIVATE>
set eth1 on
set gprs apn <PRIVATE-APN>
set gprs login <APN-USER> password <APN-PASSWORD>