## CentreCOM AR550S 設定例集 2.9
##  162 CUGサービスを利用した3拠点間L2TP接続（インターネット接続は各ルーター経由）
##  ルーターBのコンフィグ

ENABLE L2TP 
ENABLE L2TP SERVER=BOTH 
ADD L2TP PASSWORD=l2tpB 
ADD L2TP CALL=remote1 REMOTE=remote1 TYPE=VIRTUAL IP=172.16.0.1 PRECEDENCE=OUT PASSWORD=l2tpA 
CREATE PPP=0 OVER=eth0-ANY
SET PPP=0 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=userB@cug PASSWORD=cugpasswdB LQR=OFF ECHO=ON
CREATE PPP=1 OVER=eth0-ANY ↓ 
SET PPP=1 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=ispuserB@isp PASSWORD=isppasswdB LQR=OFF ECHO=ON
CREATE PPP=11 OVER=TNL-remote1 IDLE=ON BAP=OFF LQR=OFF
ENABLE IP
ENABLE IP REMOTEASSIGN
ADD IP INT=vlan1 IP=192.168.20.1 MASK=255.255.255.0
ADD IP INT=ppp0 IP=0.0.0.0
ADD IP INT=ppp1 IP=0.0.0.0
ADD IP INT=ppp11 IP=0.0.0.0
ADD IP ROUTE=172.16.0.1 MASK=255.255.255.255 INTERFACE=ppp0 NEXTHOP=0.0.0.0
ADD IP ROUTE=192.168.10.0 MASK=255.255.255.0 INTERFACE=ppp11 NEXTHOP=0.0.0.0
ADD IP ROUTE=0.0.0.0 INT=ppp1 NEXTHOP=0.0.0.0 
ENABLE FIREWALL
CREATE FIREWALL POLICY=net
ENABLE FIREWALL POLICY=net ICMP_FORWARDING=PING,UNREACH
DISABLE FIREWALL POLICY=net IDENTPROXY
ADD FIREWALL POLICY=net INTERFACE=vlan1 TYPE=PRIVATE
ADD FIREWALL POLICY=net INTERFACE=ppp0 TYPE=PUBLIC
ADD FIREWALL POLICY=net INTERFACE=ppp1 TYPE=PUBLIC
ADD FIREWALL POLICY=net INTERFACE=ppp11 TYPE=PRIVATE
ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=vlan1 GBLINTERFACE=ppp1
ADD FIREWALL POLICY=net RU=1 AC=ALLOW INT=ppp0 PROT=UDP PORT=1701 IP=172.16.0.2
