## CentreCOM AR550S 設定例集 2.9
##  94 RSAデジタル署名を利用したIPsec VPN（手動登録、片側のアドレス不定）
##  ルーターBのコンフィグ
##
## 「#」で始まる行は、コンソールから入力しないと意味を持たないコマンドです。

ADD USER=secoff PASSWORD=PasswordS PRIVILEGE=SECURITYOFFICER
CREATE PPP=0 OVER=eth0-any
SET PPP=0 IPREQUEST=ON USERNAME="test@isp.co.jp" PASSWORD="internet"
SET PPP=0 OVER=eth0-any LQR=OFF ECHO=ON BAP=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 ROUTE=0.0.0.0 INT=ppp0 NEXT=0.0.0.0
SET NTP UTCOFFSET=JST
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=ppp0 TYPE=PUBLIC
ADD FIREWALL POLICY=net NAT=ENHANCED INT=vlan1 GBLINT=ppp0
ADD FIREWALL POLICY=net RULE=2 ACTION=NONAT INT=vlan1 PROT=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=NONAT INT=ppp0 PROT=ALL IP=192.168.20.1-192.168.20.254 ENCAP=IPSEC
# LOAD FILE=ca.cer SERVER=192.168.20.5
ADD PKI CERTIFICATE=cacer LOCATION=ca.cer TYPE=CA TRUSTED=TRUE
SET SYSTEM DISTINGUISHEDNAME="cn=RouterB,o=birds,c=jp"
# CREATE ENCO KEY=1 TYPE=RSA LENGTH=1024
# CREATE PKI ENROLLMENTREQUEST=myreq PROTOCOL=MANUAL KEYPAIR=1 TYPE=PKCS10 FORMAT=PEM
# UPLOAD FILE=myreq.csr SERVER=192.168.20.5
# LOAD FILE=routerb.cer SERVER=192.168.20.5
ADD PKI CERTIFICATE=mycer LOCATION=routerb.cer TYPE=SELF
# SHOW PKI CERTIFICATE
CREATE ISAKMP POLICY=i PEER=4.4.4.1 MODE=AGGRESSIVE AUTHTYPE=RSASIG LOCALRSAKEY=1 SENDN=TRUE LOCALID="cn=RouterB,o=birds,c=jp"
CREATE IPSEC SASPEC=1 KEYMAN=ISAKMP PROT=ESP ENCALG=DES HASHALG=SHA
CREATE IPSEC BUNDLESPEC=1 KEYMAN=ISAKMP STRING="1"
CREATE IPSEC POLICY=isa INT=ppp0 ACTION=PERMIT LPORT=500 RPORT=500 TRANSPORT=UDP
CREATE IPSEC POLICY=vpn INT=ppp0 ACTION=IPSEC KEYMAN=ISAKMP BUNDLE=1 PEER=4.4.4.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 INT=ppp0 ACTION=PERMIT
ENABLE IPSEC
ENABLE ISAKMP
# LOGIN secoff
# ENABLE SYSTEM SECURITY_MODE
