Configuration examples
U
SER
G
UIDE
363
set eth1 on
set adsl encap rfc1483-llc
set adsl pvc-number 1
set adsl description 054113517692
set adsl pvc atm0 vpi 8 vci 35
set adsl pvc atm0 service UBR
set adsl pvc atm0 pcr 0
set adsl pvc atm0 default-route
set adsl pvc atm0 no-masquerade
set adsl pvc atm0 ipaddr 94.94.112.186
set adsl pvc atm0 netmask 255.255.255.252
set adsl on
set iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o atm0 -j SNAT --to 80.21.88.177
HDSL
CONNECTION
It is described here a base configuration of the HDSL interface, with a private IP address on the eth1
LAN and a public IP on the eth0 interface.
To permit the data exchange with to outside, a NAT rule is set for those packets coming from the
private LAN.
set eth0 ipaddr <PUBLIC-IP> netmask <NETMASK-IP-PUBLIC>
set eth0 on
set eth1 ipaddr <PRIVATE-IP> netmask <NETMASK-IP-PRIVATE>
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 <LMI-TYPE>
set frame-relay pvc pvc0 dlci <DLCI-NUMBER>
set frame-relay pvc pvc0 ipaddr <PTP-IP-ADDR> nexthop <PEER-IP-ADDR>
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 <PRVAT-LAN>/N -o pvc0 -j SNAT --to <PUBLIC-IP>
Practical example:
set eth0 ipaddr 80.21.88.177 netmask 255.255.255.240
set eth0 on