## CentreCOM AR550S 設定例集 2.9 ## 165 L2TP+IPsecを用いた2拠点間接続+回線冗長(OSPF) ## ルーターAのコンフィグ ## ## 「#」で始まる行は、コンソールから入力しないと意味を持たないコマンドです。 ADD USER=secoff PASSWORD=secoff PRIVILEGE=SECURITYOFFICER CREATE PPP=0 OVER=eth0-ANY SET PPP=0 OVER=eth0-ANY BAP=OFF IPREQUEST=ON USER=userA@isp PASSWORD=isppasswdA LQR=OFF ECHO=ON ENABLE L2TP ENABLE L2TP SERVER=BOTH SET L2TP PASSWORD=l2tpA ADD L2TP CALL=remote IP=10.1.0.1 TYPE=VIRTUAL REMOTE=remote PRECEDENCE=IN PASSWORD=l2tpB CREATE PPP=1 OVER=TNL-remote IDLE=999999 BAP=OFF LQR=OFF ENABLE IP ENABLE IP REMOTEASSIGN ADD IP INT=ppp0 IP=0.0.0.0 ADD IP INT=ppp1 IP=172.16.1.1 MASK=255.255.255.252 OSPFMETRIC=5 ADD IP INT=eth1 IP=20.0.0.1 MASK=255.255.255.0 ADD IP INT=vlan1 IP=192.168.10.1 MASK=255.255.255.0 ADD IP ROUTE=10.1.0.1 MASK=255.255.255.255 INT=ppp0 NEXTHOP=0.0.0.0 ENABLE FIREWALL CREATE FIREWALL POLICY=net ENABLE FIREWALL POLICY=net ICMP_F=PING,UNREACH DISABLE FIREWALL POLICY=net IDENTPROXY ADD FIREWALL POLICY=net INT=ppp0 TYPE=PUBLIC ADD FIREWALL POLICY=net INT=vlan1 TYPE=PRIVATE ADD FIREWALL POLICY=net INT=ppp1 TYPE=PRIVATE ADD FIREWALL POLICY=net INT=eth1 TYPE=PRIVATE ADD FIREWALL POLICY=net RULE=1 AC=ALLOW INT=ppp0 PROTO=UDP PO=1701 IP=10.0.0.1 ADD FIREWALL POLICY=net RULE=2 ACTION=ALLOW INTERFACE=ppp0 PROTOCOL=UDP PORT=500 IP=10.0.0.1 ADD OSPF AREA=0.0.0.0 ADD OSPF RANGE=172.16.1.0 MASK=255.255.255.252 AREA=0.0.0.0 ADD OSPF RANGE=192.168.10.0 MASK=255.255.255.0 AREA=0.0.0.0 ADD OSPF RANGE=20.0.0.0 MASK=255.255.255.0 AREA=0.0.0.0 ADD OSPF INT=vlan1 AREA=0.0.0.0 ADD OSPF INT=ppp1 AREA=0.0.0.0 ADD OSPF INT=eth1 AREA=0.0.0.0 SET OSPF INT=vlan1 PASSIVE=ON ENABLE OSPF # CREATE ENCO KEY=1 TYPE=GENERAL VALUE="secret" # LOGIN secoff # ENABLE SYSTEM SECURITY_MODE CREATE ISAKMP POLICY="i" PEER=10.1.0.1 KEY=1 SENDN=TRUE HEARTBEATMODE=BOTH ENABLE ISAKMP 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" INTERFACE=ppp0 ACTION=IPSEC KEYMAN=ISAKMP BUNDLE=1 PEER=10.1.0.1 SET IPSEC POLICY="vpn" LAD=10.0.0.1 LPORT=1701 RAD=10.1.0.1 RPORT=1701 ENABLE IPSEC