## CentreCOM AR415S 設定例集 2.9 ## 163 CUGサービスを利用した拠点間のPIM-DMによるIPマルチキャストルーティング(L2TP+IPsec) ## ルーターAのコンフィグ ## ## 「#」で始まる行は、コンソールから入力しないと意味を持たないコマンドです。 ADD USER=secoff PASSWORD=PasswordS PRIVILEGE=SECURITYOFFICER 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=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=ppp11 IP=172.16.1.1 MASK=255.255.255.0 ADD IP INT=ppp12 IP=172.16.2.1 MASK=255.255.255.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 RIP INT=ppp11 SEND=RIP2 RECEIVE=RIP2 ADD IP RIP INT=ppp12 SEND=RIP2 RECEIVE=RIP2 ENABLE IP IGMP ENABLE IP IGMP INT=ppp11 ENABLE IP IGMP INT=ppp12 ENABLE IP IGMP INT=vlan1 ENABLE PIM ADD PIM INT=ppp11 MODE=DENSE ADD PIM INT=ppp12 MODE=DENSE ADD PIM INT=vlan1 MODE=DENSE ENABLE FIREWALL CREATE FIREWALL POLICY=net ENABLE FIREWALL POLICY=net ICMP_F=PING,UNREACH DISABLE FIREWALL POLICY=net IDENTPROXY ADD FIREWALL POLICY=net INT=vlan1 TYPE=PRIVATE ADD FIREWALL POLICY=net INT=ppp11 TYPE=PRIVATE ADD FIREWALL POLICY=net INT=ppp12 TYPE=PRIVATE ADD FIREWALL POLICY=net INT=ppp0 TYPE=PUBLIC ADD FIREWALL POLICY=net RULE=1 AC=ALLOW INT=ppp0 PROT=UDP PO=500 IP=172.16.0.1 ADD FIREWALL POLICY=net RULE=2 AC=ALLOW INT=ppp0 PROT=UDP PO=1701 IP=172.16.0.1 # CREATE ENCO KEY=1 TYPE=GENERAL VALUE="secret1" # CREATE ENCO KEY=2 TYPE=GENERAL VALUE="secret2" # LOGIN secoff # ENABLE SYSTEM SECURITY_MODE CREATE ISAKMP POLICY="i-1" PEER=172.16.0.2 KEY=1 SENDN=TRUE HEARTBEATMODE=BOTH CREATE ISAKMP POLICY="i-2" PEER=172.16.0.3 KEY=2 SENDN=TRUE HEARTBEATMODE=BOTH CREATE IPSEC SASPEC=1 KEYMAN=ISAKMP PROTOCOL=ESP ENCALG=DES HASHALG=SHA CREATE IPSEC BUNDLE=1 KEYMAN=ISAKMP STRING="1" CREATE IPSEC POLICY="isa" INT=ppp0 ACTION=PERMIT LPORT=500 RPORT=500 TRANSPORT=UDP CREATE IPSEC POLICY="vpn-1" INTERFACE=ppp0 ACTION=IPSEC KEYMAN=ISAKMP BUNDLE=1 PEER=172.16.0.2 SET IPSEC POLICY="vpn-1" LAD=172.16.0.1 LPORT=1701 RAD=172.16.0.2 RPORT=1701 CREATE IPSEC POLICY="vpn-2" INTERFACE=ppp0 ACTION=IPSEC KEYMAN=ISAKMP BUNDLE=1 PEER=172.16.0.3 SET IPSEC POLICY="vpn-2" LAD=172.16.0.1 LPORT=1701 RAD=172.16.0.3 RPORT=1701 ENABLE IPSEC ENABLE ISAKMP