## CentreCOM AR415S 設定例集 2.9 ## 161 CUGサービスを利用した3拠点間L2TP接続(インターネット接続はセンタールーター経由) ## ルーターAのコンフィグ ENABLE L2TP ENABLE L2TP SERVER=BOTH ADD L2TP PASSWORD=l2tpA ADD L2TP CALL=remote1 REMOTE=remote1 TYPE=VIRTUAL IP=172.16.0.2 PRECEDENCE=IN PASSWORD=l2tpB ADD L2TP CALL=remote2 REMOTE=remote2 TYPE=VIRTUAL IP=172.16.0.3 PRECEDENCE=IN PASSWORD=l2tpC CREATE PPP=0 OVER=eth0-ANY SET PPP=0 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=userA@cug PASSWORD=cugpasswdA LQR=OFF ECHO=ON CREATE PPP=1 OVER=eth0-ANY SET PPP=1 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=ispuserA@isp PASSWORD=isppasswdA LQR=OFF ECHO=ON CREATE PPP=11 OVER=TNL-remote1 IDLE=ON BAP=OFF LQR=OFF CREATE PPP=12 OVER=TNL-remote2 IDLE=ON BAP=OFF LQR=OFF ENABLE IP ENABLE IP REMOTEASSIGN ADD IP INT=vlan1 IP=192.168.10.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 INT=ppp12 IP=0.0.0.0 ADD IP ROUTE=172.16.0.2 MASK=255.255.255.255 INTERFACE=ppp0 NEXTHOP=0.0.0.0 ADD IP ROUTE=172.16.0.3 MASK=255.255.255.255 INTERFACE=ppp0 NEXTHOP=0.0.0.0 ADD IP ROUTE=192.168.20.0 MASK=255.255.255.0 INTERFACE=ppp11 NEXTHOP=0.0.0.0 ADD IP ROUTE=192.168.30.0 MASK=255.255.255.0 INTERFACE=ppp12 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 INTERFACE=ppp12 TYPE=PRIVATE ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=vlan1 GBLINTERFACE=ppp1 ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=ppp11 GBLINTERFACE=ppp1 ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=ppp12 GBLINTERFACE=ppp1 ADD FIREWALL POLICY=net RU=1 AC=ALLOW INT=ppp0 PROT=UDP PORT=1701 IP=172.16.0.1