## CentreCOM AR550S 設定例集 2.9 ## 142 Pingポーリングによるメイン回線からISDNバックアップへの自動切り替え(インターネットVPN+ISDNバックアップ〜IPsec編〜) ## ルーターBのコンフィグ ## ## 「#」で始まる行は、コンソールから入力しないと意味を持たないコマンドです。 ADD USER=secoff PASSWORD=PasswordS PRIVILEGE=SECURITYOFFICER ADD ISDN CALL=BACKUP NUMBER=0312341111 PRECEDENCE=OUT SET ISDN CALL=BACKUP SEARCHCLI=ON CREATE PPP=0 OVER=eth0-ANY SET PPP=0 BAP=OFF USERNAME=user@isp PASSWORD=isppasswd SET PPP=0 OVER=eth0-ANY LQR=OFF ECHO=ON CREATE PPP=1 IDLE=60 OVER=ISDN-BACKUP SET PPP=1 OVER=ISDN-BACKUP LQR=OFF BAP=OFF ENABLE IP ENABLE IP REMOTEASSIGN ADD IP INTERFACE=vlan1 IPADDRESS=192.168.20.1 MASK=255.255.255.0 ADD IP INTERFACE=ppp0 IPADDRESS=200.100.20.1 MASK=255.255.255.255 ADD IP INTERFACE=ppp1 IPADDRESS=0.0.0.0 ADD IP ROUTE=0.0.0.0 MASK=0.0.0.0 INTERFACE=ppp0 NEXT=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=ppp1 TYPE=PRIVATE ADD FIREWALL POLICY=net INTERFACE=ppp0 TYPE=PUBLIC ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=vlan1 GBLINTERFACE=ppp0 GBLIP=200.100.20.1 ADD FIREWALL POLICY=net NAT=ENHANCED INTERFACE=ppp1 GBLINTERFACE=ppp0 GBLIP=200.100.20.1 ADD FIREWALL POLICY=net RULE=1 ACTION=ALLOW INTERFACE=ppp0 PROTOCOL=UDP GBLPORT=500 GBLIP=200.100.20.1 PORT=500 IP=200.100.20.1 ADD FIREWALL POLICY=net RULE=2 ACTION=NON INTERFACE=vlan1 PROTOCOL=ALL IP=192.168.20.1-192.168.20.254 SET FIREWALL POLICY=net RULE=2 REMOTEIP=192.168.10.1-192.168.10.254 ADD FIREWALL POLICY=net RULE=3 ACTION=NON INTERFACE=ppp0 PROTOCOL=ALL IP=192.168.20.1-192.168.20.254 ENCAP=IPSEC ADD PING POLL=1 IPADDRESS=200.100.10.1 NORMALINTERVAL=10 UPCOUNT=5 SAMPLESIZE=10 ENABLE PING POLL=1 # CREATE ENCO KEY=1 TYPE=GENERAL VALUE="secret" CREATE ISAKMP POLICY="i" PEER=200.100.10.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=200.100.10.1 SET IPSEC POLICY="vpn" LAD=192.168.20.0 LMA=255.255.255.0 RAD=192.168.10.0 RMA=255.255.255.0 CREATE IPSEC POLICY="inet" INTERFACE=ppp0 ACTION=PERMIT ENABLE IPSEC ENABLE TRIGGER CREATE TRIGGER=4 MODULE=PING EVENT=DEVICEUP POLL=1 SCRIPT=pingu.scp CREATE TRIGGER=5 MODULE=PING EVENT=DEVICEDOWN POLL=1 SCRIPT=pingd.scp # LOGIN secoff # ENABLE SYSTEM SECURITY_MODE