set eth1 ipaddr 192.168.1.254 netmask 255.255.255.0
set eth1 on
set wan protocol frame-relay
set wan mode v35
set frame-relay baud-rate external
set frame-relay station dte
set frame-relay lmi-type ansi
set frame-relay pvc pvc0 dlci 261
set frame-relay pvc pvc0 ipaddr 85.46.113.142 nexthop 85.46.113.141
set frame-relay pvc pvc0 default-route
set frame-relay pvc pvc0 no-masquerade
set frame-relay pvc pvc0 mtu 1500
set frame-relay on
set iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o pvc0 -j SNAT --to 80.21.88.177
GPRS ON PUBLIC APN (INTERNET NAVIGATION)
It is described here a base configuration of the GPRS interface with a public (internet) connection
profile, with the management IP on the eth0 interface and a private IP on the eth1 LAN.
To allow the data exchange with the outside (internet), the GPRS interface is configured so that it
make PAT.
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 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 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