
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.10.11/24 | 親機LAN側の経路交換セグメントに対応するアドレス |
| lan1 | 10.0.0.2/29 | IPsec-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.16.1.101/32 | A-aとのVPNトンネルのアドレス |
| ipsec1 | 172.16.1.102/32 | B-aとのVPNトンネルのアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.10.12/24 | 親機LAN側の経路交換セグメントに対応するアドレス |
| lan1 | 10.0.1.2/29 | IPsed-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.17.1.101/32 | A-sとのVPNトンネルのアドレス |
| ipsec1 | 172.17.1.102/32 | B-sとのVPNトンネルのアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.0.254/24 | 親拠点LAN内に対応するLAN側アドレス |
| lan1 | 192.168.10.101/24 | 親拠点内経路交換セグメントに対応するWAN側アドレス |
| VIP | 192.168.0.2/24 | 親拠点のLAN内に提供するVPN網向へ単一のゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.0.253/24 | 親拠点LAN内に対応するLAN側アドレス |
| lan1 | 192.168.10.102/24 | 親拠点内経路交換セグメントに対応するWAN側アドレス |
| VIP | 192.168.0.2/24 | 親拠点のLAN内に提供するVPN網向へ単一のゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 10.0.0.1/29 | C-a:に提供するメイン網(インターネット)へのゲートウェイアドレス |
| pppoe0 | unnumbered | 接続サービスに依存 |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 10.0.1.1/29 | C-s:に提供するバックアップ網(インターネット)へのゲートウェイアドレス |
| pppoe0 | unnumbered | 接続サービスに依存 |
| I/F | I/F | 備考 |
|---|---|---|
| --- | 192.168.0.1/24 | インターネットアクセスのためのゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.1.10/24 | 子拠点AのLAN内に対応するLAN側アドレス |
| pppoe0 | 10.1.0.1/32 | IPsec-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.16.101.1/32 | C-a:とのVPNトンネル |
| VIP | 192.168.1.1/24 | VRRPで子拠点AのLAN内に提供するデフォルトゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.1.11/24 | 子拠点AのLAN内に対応するLAN側アドレス |
| pppoe0 | 10.1.1.1/32 | IPsec-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.17.101.1/32 | C-s:とのVPNトンネル |
| VIP | 192.168.1.1/24 | VRRPで子拠点AのLAN内に提供するデフォルトゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.2.10/24 | 子拠点BのLAN内に対応するLAN側アドレス |
| pppoe0 | 10.2.0.1/32 | IPsec-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.16.102.1/32 | C-a:とのVPNトンネル |
| VIP | 192.168.2.1/24 (master) |
子拠点BのLAN内に提供するデフォルトゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| lan0 | 192.168.2.11/24 | 子拠点BのLAN内に対応するLAN側アドレス |
| pppoe0 | 10.2.1.1/32 | IPsec-Tunnel始点となるWAN側アドレス |
| ipsec0 | 172.17.102.1/32 | C-s:とのVPNトンネル |
| VIP | 192.168.2.1/24 (backup) |
子拠点BのLAN内に提供するデフォルトゲートウェイアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| --- | 10.123.0.1 | インターネット上のNTPサーバアドレス |
| I/F | I/F | 備考 |
|---|---|---|
| --- | 10.100.0.1 | 管理ホストAのアドレス |
| --- | 10.100.1.1 | 管理ホストBのアドレス |
1| hostname "Ca" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| interface lan0 media auto 7| interface lan0 add 192.168.10.11/24 8| interface lan1 media auto 9| interface lan1 queue normal 10| interface lan1 add 10.0.0.2/29 11| interface lan2 media auto 12| interface ipsec0 tunnel 10.0.0.2 10.1.0.1 13| interface ipsec0 mtu 1500 14| interface ipsec0 tcp-mss 1358 15| interface ipsec0 add 172.16.1.101/32 remote 172.16.101.1 16| interface ipsec1 tunnel 10.0.0.2 10.2.0.1 17| interface ipsec1 mtu 1500 18| interface ipsec1 tcp-mss 1358 19| interface ipsec1 add 172.16.1.102/32 remote 172.16.102.1 20| bridge disable 21| bridge ip-bridging on 22| bridge ipv6-bridging on 23| route add 10.123.0.1/32 10.0.0.1 24| route add 10.100.0.1/32 10.0.0.1 25| route add 10.100.1.1/32 10.0.0.1 26| route add 10.1.0.1/32 10.0.0.1 27| route add 10.2.0.1/32 10.0.0.1 28| route dynamic rip disable 29| route dynamic ospf router-id 192.168.10.11 30| route dynamic ospf enable 31| route dynamic ospf area add 0.0.0.0 32| route dynamic ospf area add 0.0.0.1 33| route dynamic ospf link add lan0 area 0.0.0.0 cost 10 34| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 10 35| route dynamic ospf link add ipsec1 area 0.0.0.1 cost 10 36| route dynamic redistribute static-to-rip disable 37| route dynamic redistribute static-to-ospf disable 38| route dynamic redistribute ospf-to-rip disable 39| route dynamic redistribute rip-to-ospf disable 40| route dynamic redistribute connected-to-rip disable 41| route dynamic redistribute connected-to-ospf disable 42| route dynamic pim-sparse disable 43| route6 dynamic ripng disable 44| route6 dynamic redistribute static-to-ripng disable 45| route6 dynamic redistribute connected-to-ripng enable 46| route6 dynamic pim-sparse disable 47| filter add Operation01 interface lan1 direction in action pass protocol 50 src 10.1.0.1/32 dst 10.0.0.2/32 state disable logging on enable 48| filter add Operation02 interface lan1 direction in action pass protocol 50 src 10.2.0.1/32 dst 10.0.0.2/32 state disable logging on enable 49| filter add Operation03 interface lan1 direction in action pass protocol tcpudp src 10.1.0.1/32 srcport 500 dst 10.0.0.2/32 dstport 500 state disable logging on enable 50| filter add Operation04 interface lan1 direction in action pass protocol tcpudp src 10.2.0.1/32 srcport 500 dst 10.0.0.2/32 dstport 500 state disable logging on enable 51| filter add Operation05 interface lan1 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 52| filter add Operation06 interface lan1 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 53| filter add Operation07 interface lan1 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 54| filter add Deny01 interface lan1 direction in action block state disable logging on enable 55| nat timeout 900 56| nat logging off 57| nat upnp off 58| nat upnp interface lan1 59| dhcp disable 60| dhcp mode server 61| dns forwarder disable 62| ntp enable 63| ntp server add 10.123.0.1 64| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 65| ike preshared-key add 10.1.0.1 "IKEpresharedKEY" 66| ike preshared-key add 10.2.0.1 "IKEpresharedKEY" 67| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 68| ike peer add Ca-Aa address 10.1.0.1 exchange-mode main proposals IKEP01 tunnel-interface enable 69| ike peer add Ca-Ba address 10.2.0.1 exchange-mode main proposals IKEP01 tunnel-interface enable 70| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 71| ipsec security-association add Ca-Aa tunnel-interface ipsec0 ike SAP01 esp enable 72| ipsec security-association add Ca-Ba tunnel-interface ipsec1 ike SAP01 esp enable 73| cbq link-bandwidth 100Mbps 74| snmp disable 75| snmp community "public" 76| snmp trap disable 77| syslog debug-level off 78| syslog facility local1 79| syslog remote off 80| translator timeout 300 81| encrypted-password admin ADMINPASSWD 82| encrypted-password user USERPASSWD 83| resolver disable 84| rtadvd disable 85| httpd disable 86| sshd hostkey rsa1 auto 87| sshd hostkey rsa none 88| sshd hostkey dsa none 89| sshd enable 90| telnetd enable 91| remote-console disable 92| vendor OEM
- tunnel始点はC-a:のWAN側グローバルアドレス、終点はA-a:のWAN側グローバルアドレスを設定します。
- mtuIPsecインターフェイスのMTUを指定します。
- tcp-mssIPsecインターフェイスのTCP MSS調整値を指定します。 フレッツ回線は1358、専用線接続やYahoo!BBは1460、それら以外(不明な場合を含む)は1280を指定します。
- add 172.16.1.101/32 remote 172.16.101.1IPsecインターフェイスのアドレスとして、ネットワーク全体で他の装置や インターフェイスと重複しないプライベートアドレスを設定します。また、対向側のアドレスに、 A-a:のIPsecインターフェイスのアドレスを指定します。
- add 10.1.0.1/32 10.0.0.1 add 10.2.0.1/32 10.0.0.1A-a:及びB-a:のグローバルアドレス(IPsecインターフェイスのトンネル終点)宛の 経路をR-a:のアドレスへ向けます。
- add 10.123.0.1/32 10.0.0.1 add 10.100.0.1/32 10.0.0.1 add 10.100.1.1/32 10.0.0.1NTPサーバ及び管理ホスト宛の経路をR-a:のアドレスへ向けます。
- router-id 192.168.10.11 route dynamic ospf enablelan0インターフェイスのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- area add 0.0.0.0 area add 0.0.0.1OSPFエリアを設定します。 0.0.0.0はバックボーンエリアとし、親拠点内のOSPF機器間での経路交換に使用されます。 0.0.0.1(0.0.0.X)はVPN構成(親機-子機・Active/Standby)のセットごとのOSPFエリアとして設定します。 子拠点の追加に伴い親機(Active/Standby)を増設した場合にはエリアを追加(0.0.0.2等)して割り当てます。
- link add lan0 area 0.0.0.0 cost 10lan0インターフェイスをバックボーンエリアに所属させ、リンクのOSPFコストを設定します。
- link add ipsec0 area 0.0.0.1 cost 10 link add ipsec1 area 0.0.0.1 cost 10拠点間のVPN通信を行うIPsecインターフェイスをエリア0.0.0.1に所属させ、OSPFコストを設定します。
- connected-to-rip disable connected-to-ospf disableConnected経路を再配布しないよう、disableに変更します。
- add Operation01 add Operation02 add Operation03 add Operation04 add Operation05 add Operation06 add Operation07 add Deny01親・子拠点間をつなぐIPsecパケット、管理ホストによるTelnet・SSH、NTPサーバによるアクセスはPass、その他すべての通信はBlockします。
| I/F | direction | action | protocol | src : srcport | dst : dstport |
|---|---|---|---|---|---|
| lan1 | in | pass | 50(esp) | 10.1.0.1/32 : --- | 10.0.0.2/32 : --- |
| lan1 | in | pass | 50(esp) | 10.2.0.1/32 : --- | 10.0.0.2/32 : --- |
| lan1 | in | pass | tcpudp | 10.1.0.1/32 : 500 | 10.0.0.2/32 : 500 |
| lan1 | in | pass | tcpudp | 10.2.0.1/32 : 500 | 10.0.0.2/32 : 500 |
| lan1 | in | pass | tcp | 10.100.0.1/32 : 0-65535 | --- : 22-23 |
| lan1 | in | pass | tcp | 10.100.1.1/32 : 0-65535 | --- : 22-23 |
| lan1 | in | pass | tcp | 10.123.0.1/32 : 0-65535 | --- : 123 |
| lan1 | in | block | --- | --- : --- | --- : --- |
1| hostname "Cs" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| interface lan0 media auto 7| interface lan0 add 192.168.10.12/24 8| interface lan1 media auto 9| interface lan1 queue normal 10| interface lan1 add 10.0.1.2/29 11| interface lan2 media auto 12| interface ipsec0 tunnel 10.0.1.2 10.1.1.1 13| interface ipsec0 mtu 1500 14| interface ipsec0 tcp-mss 1358 15| interface ipsec0 add 172.17.1.101/32 remote 172.17.101.1 16| interface ipsec1 tunnel 10.0.1.2 10.2.1.1 17| interface ipsec1 mtu 1500 18| interface ipsec1 tcp-mss 1358 19| interface ipsec1 add 172.17.1.102/32 remote 172.17.102.1 20| bridge disable 21| bridge ip-bridging on 22| bridge ipv6-bridging on 23| route add 10.123.0.1/32 10.0.1.1 24| route add 10.100.0.1/32 10.0.1.1 25| route add 10.100.1.1/32 10.0.1.1 26| route add 10.1.1.1/32 10.0.1.1 27| route add 10.2.1.1/32 10.0.1.1 28| route dynamic rip disable 29| route dynamic ospf router-id 192.168.10.12 30| route dynamic ospf enable 31| route dynamic ospf area add 0.0.0.0 32| route dynamic ospf area add 0.0.0.1 33| route dynamic ospf link add lan0 area 0.0.0.0 cost 10 34| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 100 35| route dynamic ospf link add ipsec1 area 0.0.0.1 cost 100 36| route dynamic redistribute static-to-rip disable 37| route dynamic redistribute static-to-ospf disable 38| route dynamic redistribute ospf-to-rip disable 39| route dynamic redistribute rip-to-ospf disable 40| route dynamic redistribute connected-to-rip disable 41| route dynamic redistribute connected-to-ospf disable 42| route dynamic pim-sparse disable 43| route6 dynamic ripng disable 44| route6 dynamic redistribute static-to-ripng disable 45| route6 dynamic redistribute connected-to-ripng enable 46| route6 dynamic pim-sparse disable 47| filter add Operation01 interface lan1 direction in action pass protocol 50 src 10.1.1.1/32 dst 10.0.1.2/32 state disable logging on enable 48| filter add Operation02 interface lan1 direction in action pass protocol 50 src 10.2.1.1/32 dst 10.0.1.2/32 state disable logging on enable 49| filter add Operation03 interface lan1 direction in action pass protocol tcpudp src 10.1.1.1/32 srcport 500 dst 10.0.1.2/32 dstport 500 state disable logging on enable 50| filter add Operation04 interface lan1 direction in action pass protocol tcpudp src 10.2.1.1/32 srcport 500 dst 10.0.1.2/32 dstport 500 state disable logging on enable 51| filter add Operation05 interface lan1 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 52| filter add Operation06 interface lan1 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 53| filter add Operation07 interface lan1 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 54| filter add Deny01 interface lan1 direction in action block state disable logging on enable 55| nat timeout 900 56| nat logging off 57| nat upnp off 58| nat upnp interface lan1 59| dhcp disable 60| dhcp mode server 61| dns forwarder disable 62| ntp enable 63| ntp server add 10.123.0.1 64| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 65| ike preshared-key add 10.1.1.1 "IKEpresharedKEY" 66| ike preshared-key add 10.2.1.1 "IKEpresharedKEY" 67| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 68| ike peer add Cs-As address 10.1.1.1 exchange-mode main proposals IKEP01 tunnel-interface enable 69| ike peer add Cs-Bs address 10.2.1.1 exchange-mode main proposals IKEP01 tunnel-interface enable 70| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 71| ipsec security-association add Cs-As tunnel-interface ipsec0 ike SAP01 esp enable 72| ipsec security-association add Cs-Bs tunnel-interface ipsec1 ike SAP01 esp enable 73| cbq link-bandwidth 100Mbps 74| snmp disable 75| snmp community "public" 76| snmp trap disable 77| syslog debug-level off 78| syslog facility local1 79| syslog remote off 80| translator timeout 300 81| encrypted-password admin ADMINPASSWD 82| encrypted-password user USERPASSWD 83| resolver disable 84| rtadvd disable 85| httpd disable 86| sshd hostkey rsa1 auto 87| sshd hostkey rsa none 88| sshd hostkey dsa none 89| sshd enable 90| telnetd enable 91| remote-console disable 92| vendor OEM
- tunnel始点はC-s:のWAN側グローバルアドレス、終点はA-s:のWAN側グローバルアドレスを設定します。
- add 172.17.1.101/32 remote 172.17.101.1IPsecインタフェースのアドレスとして、ネットワーク全体で他の装置やインタフェースと重複しないプライベートアドレスを設定します。また、対向側のアドレスに、A-sのIPsecインタフェースのアドレスを指定します。
- add 10.1.1.1/32 10.0.1.1 add 10.2.1.1/32 10.0.1.1A-s:B-s:のグローバルアドレス(IPsecインタフェースのトンネル終点)宛の経路をR-s:のアドレスへ向けます。
- router-id 192.168.10.12 route dynamic ospf enablelan0インタフェースのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- area add 0.0.0.0 area 0.0.0.1C-a:と同様にOSPFエリアを設定します。 0.0.0.0はバックボーンエリアとし、親拠点内のOSPF機器間での交換経路に使用されます。0.0.0.1(0.0.0.x)はVPN構成(親機-子機、Active/Standby)のセットごとのOSPFエリアとして設定します。子拠点の追加に伴い親機(Active/Standby)を増設した場合にはエリアを追加(0.0.0.2等)して割り当てます。
- link add lan0 area 0.0.0.0 cost 10lan0インタフェースをバックボーンエリアに所属させ、リンクのOSPFコストを設定します。
- link add ipsec0 area 0.0.0.1 cost 100 link add ipsec1 area 0.0.0.1 cost 100拠点間のVPN通信を行うIPsecインタフェースをエリア0.0.0.1に所属させ、OSPFコストを設定します。平常時はActive系の経路が選択されるよう、コストを大きく設定しています。
1| hostname "Va" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| interface lan0 media auto 7| interface lan0 add 192.168.0.254/24 8| interface lan1 media auto 9| interface lan1 queue normal 10| interface lan1 add 192.168.10.101/24 11| bridge disable 12| bridge ip-bridging on 13| bridge ipv6-bridging on 14| route add default 192.168.0.1 15| route dynamic rip disable 16| route dynamic ospf router-id 192.168.0.254 17| route dynamic ospf enable 18| route dynamic ospf default-route-originate enable metric 10 metric-type 1 19| route dynamic ospf area add 0.0.0.0 20| route dynamic ospf link add lan1 area 0.0.0.0 21| route dynamic redistribute static-to-rip disable 22| route dynamic redistribute static-to-ospf disable 23| route dynamic redistribute ospf-to-rip disable 24| route dynamic redistribute rip-to-ospf disable 25| route dynamic redistribute connected-to-rip disable 26| route dynamic redistribute connected-to-ospf disable 27| route dynamic pim-sparse disable 28| route6 dynamic ripng disable 29| route6 dynamic redistribute static-to-ripng disable 30| route6 dynamic redistribute connected-to-ripng enable 31| route6 dynamic pim-sparse disable 32| nat timeout 900 33| nat logging off 34| nat upnp off 35| nat upnp interface lan1 36| dhcp disable 37| dhcp mode server 38| dns forwarder disable 39| ntp disable 40| cbq link-bandwidth 10Mbps 41| snmp disable 42| snmp community "public" 43| snmp trap disable 44| syslog debug-level off 45| syslog facility local1 46| syslog remote off 47| translator timeout 300 48| encrypted-password admin ADMINPASSWD 49| encrypted-password user USERPASSWD 50| resolver disable 51| rtadvd disable 52| httpd disable 53| sshd hostkey rsa1 auto 54| sshd hostkey rsa none 55| sshd hostkey dsa none 56| sshd disable 57| telnetd enable 58| remote-console disable 59| vrrp watch-group add CenterVIP interface lan1 60| vrrp lan0 add vrid 1 address 192.168.0.2/24 prioritity 200 watch CenterVIP interval 10 delay 180 61| vendor OEM
- add default 192.168.0.1デフォルト経路(親拠点内や子拠点内で宛先が不明となるインターネット向けの通信の経路)をファイアウォール装置へ向けます。
- router-id 192.168.0.254 route dynamic ospf enablelan0インタフェースのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- default-route-originate enable metric 10 metric-type 1デフォルト経路をOSPFで配布し、VPN網内で宛先が不明となる通信を本機経由でファイアウォールへ向けます。
- area add 0.0.0.0 link add lan1 area 0.0.0.0バックボーンエリアとしてエリアID 0.0.0.0のOSPFエリアを設定し、lan1インタフェースをバックボーンエリアに所属させます。
- vrrp watch-groupVRRP監視グループを定義し、lan1インタフェースのup/downを判定条件に含めます。
- lan0 add vrid 1lan0インタフェースのリンクにおけるVRIDを1とし、仮想IPアドレス"192.168.0.2"を設定します。 V-a:を平常時はVRRPのマスターとして動作させるため、V-s:よりも高い優先度(priority)を設定します。
1| hostname "Vs" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| interface lan0 media auto 7| interface lan0 add 192.168.0.253/24 8| interface lan1 media auto 9| interface lan1 queue normal 10| interface lan1 add 192.168.10.102/24 11| bridge disable 12| bridge ip-bridging on 13| bridge ipv6-bridging on 14| route add default 192.168.0.1 15| route dynamic rip disable 16| route dynamic ospf router-id 192.168.0.253 17| route dynamic ospf enable 18| route dynamic ospf default-route-originate enable metric 100 metric-type 1 19| route dynamic ospf area add 0.0.0.0 20| route dynamic ospf link add lan1 area 0.0.0.0 21| route dynamic redistribute static-to-rip disable 22| route dynamic redistribute static-to-ospf disable 23| route dynamic redistribute ospf-to-rip disable 24| route dynamic redistribute rip-to-ospf disable 25| route dynamic redistribute connected-to-rip disable 26| route dynamic redistribute connected-to-ospf disable 27| route dynamic pim-sparse disable 28| route6 dynamic ripng disable 29| route6 dynamic redistribute static-to-ripng disable 30| route6 dynamic redistribute connected-to-ripng enable 31| route6 dynamic pim-sparse disable 32| nat timeout 900 33| nat logging off 34| nat upnp off 35| nat upnp interface lan1 36| dhcp disable 37| dhcp mode server 38| dns forwarder disable 39| ntp disable 40| cbq link-bandwidth 10Mbps 41| snmp disable 42| snmp community "public" 43| snmp trap disable 44| syslog debug-level off 45| syslog facility local1 46| syslog remote off 47| translator timeout 300 48| encrypted-password admin ADMINPASSWD 49| encrypted-password user USERPASSWD 50| resolver disable 51| rtadvd disable 52| httpd disable 53| sshd hostkey rsa1 auto 54| sshd hostkey rsa none 55| sshd hostkey dsa none 56| sshd disable 57| telnetd enable 58| remote-console disable 59| vrrp watch-group add CenterVIP interface lan1 60| vrrp lan0 add vrid 1 address 192.168.0.2/24 prioritity 100 watch CenterVIP interval 10 delay 180 61| vendor OEM
- add default 192.168.0.1Active機同様、デフォルト経路(親拠点内や子拠点内で宛先が不明となるインターネット向け通信の経路)をファイアウォール装置へ向けます。
- router-id 192.168.0.253 route dynamic ospf enablelan0インタフェースのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- default-route-originate enable metric 100 metric-type 1デフォルト経路をOSPFで配布し、VPN網内で宛先が不明となる通信を本機経由でファイアウォールへ向けます。Standby系の経路が平常時に選択されないよう、metricを大きく設定します。
- area add 0.0.0.0 link add lan1 area 0.0.0.0バックボーンエリアとしてエリアID 0.0.0.0のOSPFエリアを設定し、lan1インタフェースをバックボーンエリアに所属させます。
- vrrp watch-groupVRRP監視グループを定義し、lan1インタフェースのup/downを判定条件に含めます。
- lan0 add vrid 1lan0インタフェースのリンクにおけるVRIDを1とし、仮想IPアドレス"192.168.0.2"を設定します。 V-s:を平常時はVRRPのバックアップとして動作させるため、V-a:よりも低い優先度(priority)を設定します。
1| hostname "Aa" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| ppp add IIJ keepalive 30 ipcp enable ipcp-address on ipcp-dns on ipv6cp disable authentication-method chap identifier pppaccount@example.jp passphrase PPPPASSWD tcp-mss auto 7| interface lan0 media auto 8| interface lan0 add 192.168.1.10/24 9| interface lan1 media auto 10| interface lan1 queue normal 11| interface pppoe0 over lan1 12| interface pppoe0 ppp-configuration IIJ 13| interface ipsec0 tunnel 10.1.0.1 10.0.0.2 14| interface ipsec0 mtu 1500 15| interface ipsec0 tcp-mss 1358 16| interface ipsec0 add 172.16.101.1/32 remote 172.16.1.101 17| bridge disable 18| bridge ip-bridging on 19| bridge ipv6-bridging on 20| route add 10.123.0.1/32 pppoe0 21| route add 10.100.0.1/32 pppoe0 22| route add 10.100.1.1/32 pppoe0 23| route add 10.0.0.2/32 pppoe0 24| route dynamic rip disable 25| route dynamic ospf router-id 192.168.1.10 26| route dynamic ospf enable 27| route dynamic ospf area add 0.0.0.1 28| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 10 29| route dynamic ospf link add lan0 area 0.0.0.1 cost 500 30| route dynamic redistribute static-to-rip disable 31| route dynamic redistribute static-to-ospf disable 32| route dynamic redistribute ospf-to-rip disable 33| route dynamic redistribute rip-to-ospf disable 34| route dynamic redistribute connected-to-rip disable 35| route dynamic redistribute connected-to-ospf disable 36| route dynamic pim-sparse disable 37| route6 dynamic ripng disable 38| route6 dynamic redistribute static-to-ripng disable 39| route6 dynamic redistribute connected-to-ripng enable 40| route6 dynamic pim-sparse disable 41| filter add Operation01 interface pppoe0 direction in action pass protocol 50 src 10.0.0.2/32 dst 10.1.0.1/32 state disable logging on enable 42| filter add Operation02 interface pppoe0 direction in action pass protocol tcpudp src 10.0.0.2/32 srcport 500 dst 10.1.0.1/32 dstport 500 state disable logging on enable 43| filter add Operation03 interface pppoe0 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 44| filter add Operation04 interface pppoe0 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 45| filter add Operation05 interface pppoe0 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 46| filter add Deny01 interface pppoe0 direction in action block state disable logging on enable 47| nat timeout 900 48| nat logging off 49| nat upnp off 50| nat upnp interface lan1 51| dhcp disable 52| dhcp mode server 53| dns forwarder disable 54| ntp enable 55| ntp server add 10.123.0.1 56| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 57| ike preshared-key add 10.0.0.2 "IKEpresharedKEY" 58| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 59| ike peer add Aa-Ca address 10.0.0.2 exchange-mode main proposals IKEP01 tunnel-interface enable 60| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 61| ipsec security-association add Aa-Ca tunnel-interface ipsec0 ike SAP01 esp enable 62| cbq link-bandwidth 10Mbps 63| snmp disable 64| snmp community "public" 65| snmp trap disable 66| syslog debug-level off 67| syslog facility local1 68| syslog remote off 69| translator timeout 300 70| encrypted-password admin ADMINPASSWD 71| encrypted-password user USERPASSWD 72| resolver disable 73| rtadvd disable 74| httpd disable 75| sshd hostkey rsa1 auto 76| sshd hostkey rsa none 77| sshd hostkey dsa none 78| sshd enable 79| telnetd enable 80| remote-console disable 81| vrrp lan0 add vrid 1 address 192.168.1.1/24 priority 200 interval 10 delay 180 82| vendor OEM
- tunel始点はA-a:のWAN側グローバルアドレス、終点はC-a:のWAN側グローバルアドレスを設定します。
- mtuIPsecインタフェースのMTUを指定します。
- tcp-mssIPsecインタフェースのTCP MSS調整値を指定します。 フレッツ回線は1358、専用回線やYahoo!BBは1460、それら以外(不明な場合を含む)は1280を指定します。
- add 172.16.101.1/32 remote 172.16.1.101IPsecインタフェースのアドレスとして、ネットワーク全体で他の装置やインタフェースと重複しないアドレスを設定します。また、対向側のアドレスに、C-a:のIPsecインタフェースのアドレスを指定します。
- add 10.0.0.2/32 pppoe0IPsecトンネル終点(C-a:のグローバルアドレス)宛の経路を直接インターネット側へ向けます。
- router-id 192.168.1.10 route dynamic ospf enablelan0インタフェースのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- area add 0.0.0.1OSPFエリアを設定します。 0.0.0.1(0.0.0.X)はVPN構成(親機-子機、Active/Standby)のセットごとのOSPFエリアとして設定します。子拠点の追加に伴い親機(Active/Standby)を増設した場合にはエリアを追加(0.0.0.2等)して割り当てます。
- link add ipsec0 area 0.0.0.1 cost 10 link add lan0 area 0.0.0.1 cost 500拠点間のVPN通信を行うIPsecインタフェースをエリア0.0.0.1に所属させます。lan0インタフェースへ向かう(Standby機ヘ向かう)OSPFコストは、平常時に選択されないよう大きな値を設定します。
- lan0 add vrid 1lan0インタフェースのリンクにおけるVRIDを1とし、仮想IPアドレス"192.168.1.1"を設定します。 A-a:を平常時はVRRPのマスターとして動作させるため、A-s:よりも高い優先度(priority)を設定します。
1| hostname "As" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| ppp add IIJ keepalive 30 ipcp enable ipcp-address on ipcp-dns on ipv6cp disable authentication-method chap identifier pppaccount@example.jp passphrase PPPPASSWD tcp-mss auto 7| interface lan0 media auto 8| interface lan0 add 192.168.1.11/24 9| interface lan1 media auto 10| interface lan1 queue normal 11| interface pppoe0 over lan1 12| interface pppoe0 ppp-configuration IIJ 13| interface ipsec0 tunnel 10.1.1.1 10.0.1.2 14| interface ipsec0 mtu 1500 15| interface ipsec0 tcp-mss 1358 16| interface ipsec0 add 172.17.101.1/32 remote 172.17.1.101 17| bridge disable 18| bridge ip-bridging on 19| bridge ipv6-bridging on 20| route add 10.123.0.1/32 pppoe0 21| route add 10.100.0.1/32 pppoe0 22| route add 10.100.1.1/32 pppoe0 23| route add 10.0.1.2/32 pppoe0 24| route dynamic rip disable 25| route dynamic ospf router-id 192.168.1.11 26| route dynamic ospf enable 27| route dynamic ospf area add 0.0.0.1 28| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 100 29| route dynamic ospf link add lan0 area 0.0.0.1 cost 500 30| route dynamic redistribute static-to-rip disable 31| route dynamic redistribute static-to-ospf disable 32| route dynamic redistribute ospf-to-rip disable 33| route dynamic redistribute rip-to-ospf disable 34| route dynamic redistribute connected-to-rip disable 35| route dynamic redistribute connected-to-ospf disable 36| route dynamic pim-sparse disable 37| route6 dynamic ripng disable 38| route6 dynamic redistribute static-to-ripng disable 39| route6 dynamic redistribute connected-to-ripng enable 40| route6 dynamic pim-sparse disable 41| filter add Operation01 interface pppoe0 direction in action pass protocol 50 src 10.0.1.2/32 dst 10.1.1.1/32 state disable logging on enable 42| filter add Operation02 interface pppoe0 direction in action pass protocol tcpudp src 10.0.1.2/32 srcport 500 dst 10.1.1.1/32 dstport 500 state disable logging on enable 43| filter add Operation03 interface pppoe0 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 44| filter add Operation04 interface pppoe0 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 45| filter add Operation05 interface pppoe0 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 46| filter add Deny01 interface pppoe0 direction in action block state disable logging on enable 47| nat timeout 900 48| nat logging off 49| nat upnp off 50| nat upnp interface lan1 51| dhcp disable 52| dhcp mode server 53| dns forwarder disable 54| ntp enable 55| ntp server add 10.123.0.1 56| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 57| ike preshared-key add 10.0.1.2 "IKEpresharedKEY" 58| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 59| ike peer add As-Cs address 10.0.1.2 exchange-mode main proposals IKEP01 tunnel-interface enable 60| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 61| ipsec security-association add As-Cs tunnel-interface ipsec0 ike SAP01 esp enable 62| cbq link-bandwidth 10Mbps 63| snmp disable 64| snmp community "public" 65| snmp trap disable 66| syslog debug-level off 67| syslog facility local1 68| syslog remote off 69| translator timeout 300 70| encrypted-password admin ADMINPASSWD 71| encrypted-password user USERPASSWD 72| resolver disable 73| rtadvd disable 74| httpd disable 75| sshd hostkey rsa1 auto 76| sshd hostkey rsa none 77| sshd hostkey dsa none 78| sshd enable 79| telnetd enable 80| remote-console disable 81| vrrp lan0 add vrid 1 address 192.168.1.1/24 priority 200 interval 10 delay 180 82| vendor OEM
- add 172.17.101.1/32 remote 172.17.1.101IPsecインタフェースのアドレスとして、ネットワーク全体での他の装置やインターフェイスと重複しないアドレスを設定します。また、対向側のアドレスに、C-s:のIPsecインタフェースのアドレスを設定します。
- add 10.0.1.2/32 pppoe0IPsecトンネル終点(C-s:のグローバルアドレス)宛の経路を直接インターネット側へ向けます。
- router-id 192.168.1.11 route dynamic ospf enablelan0インタフェースのIPアドレスをルータIDとして使用し、OSPF機能を有効(enable)にします。
- area add 0.0.0.1A-a:と同様にOSPFエリアを設定します。
- link add ipsec0 area 0.0.0.1 cost 100 link add lan0 area 0.0.0.1 cost 500拠点間のVPN通信を行うIPsecインタフェースをエリア0.0.0.1に所属させます。 Standby系VPNトンネルへ向かう経路が平常時に選択されないよう、IPsec0インタフェースのOSPFコストをA-a:より大きく設定します。
- lan0 add vrid 1lan0インタフェースのリンクにおけるVRIDを1とし、仮想IPアドレス"192.168.1.1"を設定します。 A-s:を平常時はVRRPのバックアップとして動作させるため、A-a:よりも低い優先度(priority)を設定します。
1| hostname "Ba" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| ppp add IIJ keepalive 30 ipcp enable ipcp-address on ipcp-dns on ipv6cp disable authentication-method chap identifier pppaccount@example.jp passphrase PPPPASSWD tcp-mss auto 7| interface lan0 media auto 8| interface lan0 add 192.168.2.10/24 9| interface lan1 media auto 10| interface lan1 queue normal 11| interface pppoe0 over lan1 12| interface pppoe0 ppp-configuration IIJ 13| interface ipsec0 tunnel 10.2.0.1 10.0.0.2 14| interface ipsec0 mtu 1500 15| interface ipsec0 tcp-mss 1358 16| interface ipsec0 add 172.16.102.1/32 remote 172.16.1.102 17| bridge disable 18| bridge ip-bridging on 19| bridge ipv6-bridging on 20| route add 10.123.0.1/32 pppoe0 21| route add 10.100.0.1/32 pppoe0 22| route add 10.100.1.1/32 pppoe0 23| route add 10.0.0.2/32 pppoe0 24| route dynamic rip disable 25| route dynamic ospf router-id 192.168.2.10 26| route dynamic ospf enable 27| route dynamic ospf area add 0.0.0.1 28| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 10 29| route dynamic ospf link add lan0 area 0.0.0.1 cost 500 30| route dynamic redistribute static-to-rip disable 31| route dynamic redistribute static-to-ospf disable 32| route dynamic redistribute ospf-to-rip disable 33| route dynamic redistribute rip-to-ospf disable 34| route dynamic redistribute connected-to-rip disable 35| route dynamic redistribute connected-to-ospf disable 36| route dynamic pim-sparse disable 37| route6 dynamic ripng disable 38| route6 dynamic redistribute static-to-ripng disable 39| route6 dynamic redistribute connected-to-ripng enable 40| route6 dynamic pim-sparse disable 41|filter add Operation01 interface pppoe0 direction in action pass protocol 50 src 10.0.0.2/32 dst 10.2.0.1/32 state disable logging on enable 42| filter add Operation02 interface pppoe0 direction in action pass protocol tcpudp src 10.0.0.2/32 srcport 500 dst 10.2.0.1/32 dstport 500 state disable logging on enable 43| filter add Operation03 interface pppoe0 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 44| filter add Operation04 interface pppoe0 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 45| filter add Operation05 interface pppoe0 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 46| filter add Deny01 interface pppoe0 direction in action block state disable logging on enable 47| nat timeout 900 48| nat logging off 49| nat upnp off 50| nat upnp interface lan1 51| dhcp disable 52| dhcp mode server 53| dns forwarder disable 54| ntp enable 55| ntp server add 10.123.0.1 56| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 57| ike preshared-key add 10.0.0.2 "IKEpresharedKEY" 58| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 59| ike peer add Ba-Ca address 10.0.0.2 exchange-mode main proposals IKEP01 tunnel-interface enable 60| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 61| ipsec security-association add Ba-Ca tunnel-interface ipsec0 ike SAP01 esp enable 62| cbq link-bandwidth 10Mbps 63| snmp disable 64| snmp community "public" 65| snmp trap disable 66| syslog debug-level off 67| syslog facility local1 68| syslog remote off 69| translator timeout 300 70| encrypted-password admin ADMINPASSWD 71| encrypted-password user USERPASSWD 72| resolver disable 73| rtadvd disable 74| httpd disable 75| sshd hostkey rsa1 auto 76| sshd hostkey rsa none 77| sshd hostkey dsa none 78| sshd enable 79| telnetd enable 80| remote-console disable 81| vrrp lan0 add vrid 1 address 192.168.2.1/24 priority 200 interval 10 delay 180 82| vendor OEM
- router-id 192.168.2.10 route dynamic ospf enableA-a:の設定とは、OSPFのルータIDの設定値のみ異なります。
1| hostname "Bs" 2| timezone "Japan" 3| environment login-timer 300 4| option ip monitor-linkstate on 5| option ip redirects off 6| ppp add IIJ keepalive 30 ipcp enable ipcp-address on ipcp-dns on ipv6cp disable authentication-method chap identifier pppaccount@example.jp passphrase PPPPASSWD tcp-mss auto 7| interface lan0 media auto 8| interface lan0 add 192.168.2.11/24 9| interface lan1 media auto 10| interface lan1 queue normal 11| interface pppoe0 over lan1 12| interface pppoe0 ppp-configuration IIJ 13| interface ipsec0 tunnel 10.2.1.1 10.0.1.2 14| interface ipsec0 mtu 1500 15| interface ipsec0 tcp-mss 1358 16| interface ipsec0 add 172.17.102.1/32 remote 172.17.1.102 17| bridge disable 18| bridge ip-bridging on 19| bridge ipv6-bridging on 20| route add 10.123.0.1/32 pppoe0 21| route add 10.100.0.1/32 pppoe0 22| route add 10.100.1.1/32 pppoe0 23| route add 10.0.1.2/32 pppoe0 24| route dynamic rip disable 25| route dynamic ospf router-id 192.168.2.11 26| route dynamic ospf enable 27| route dynamic ospf area add 0.0.0.1 28| route dynamic ospf link add ipsec0 area 0.0.0.1 cost 100 29| route dynamic ospf link add lan0 area 0.0.0.1 cost 500 30| route dynamic redistribute static-to-rip disable 31| route dynamic redistribute static-to-ospf disable 32| route dynamic redistribute ospf-to-rip disable 33| route dynamic redistribute rip-to-ospf disable 34| route dynamic redistribute connected-to-rip disable 35| route dynamic redistribute connected-to-ospf disable 36| route dynamic pim-sparse disable 37| route6 dynamic ripng disable 38| route6 dynamic redistribute static-to-ripng disable 39| route6 dynamic redistribute connected-to-ripng enable 40| route6 dynamic pim-sparse disable 41| filter add Operation01 interface pppoe0 direction in action pass protocol 50 src 10.0.1.2/32 dst 10.2.1.1/32 state disable logging on enable 42| filter add Operation02 interface pppoe0 direction in action pass protocol tcpudp src 10.0.1.2/32 srcport 500 dst 10.2.1.1/32 dstport 500 state disable logging on enable 43| filter add Operation03 interface pppoe0 direction in action pass protocol tcp src 10.100.0.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 44| filter add Operation04 interface pppoe0 direction in action pass protocol tcp src 10.100.1.1/32 srcport 0-65535 dstport 22-23 state disable logging on enable 45| filter add Operation05 interface pppoe0 direction in action pass protocol tcp src 10.123.0.1/32 srcport 0-65535 dstport 123 state disable logging off enable 46| filter add Deny01 interface pppoe0 direction in action block state disable logging on enable 47| nat timeout 900 48| nat logging off 49| nat upnp off 50| nat upnp interface lan1 51| dhcp disable 52| dhcp mode server 53| dns forwarder disable 54| ntp enable 55| ntp server add 10.123.0.1 56| ike interval 40s phase1-timeout 01m phase2-timeout 02m20s 57| ike preshared-key add 10.0.1.2 "IKEpresharedKEY" 58| ike proposal add IKEP01 encryption 3des hash sha1 authentication preshared-key dh-group modp1024 lifetime-of-time 1d 59| ike peer add Bs-Cs address 10.0.0.2 exchange-mode main proposals IKEP01 tunnel-interface enable 60| ipsec security-association proposal add SAP01 pfs-group modp1024 authentication-algorithm hmac-sha1 encryption-algorithm 3des lifetime-of-time 03h 61| ipsec security-association add Bs-Cs tunnel-interface ipsec0 ike SAP01 esp enable 62| cbq link-bandwidth 10Mbps 63| snmp disable 64| snmp community "public" 65| snmp trap disable 66| syslog debug-level off 67| syslog facility local1 68| syslog remote off 69| translator timeout 300 70| encrypted-password admin ADMINPASSWD 71| encrypted-password user USERPASSWD 72| resolver disable 73| rtadvd disable 74| httpd disable 75| sshd hostkey rsa1 auto 76| sshd hostkey rsa none 77| sshd hostkey dsa none 78| sshd enable 79| telnetd enable 80| remote-console disable 81| vrrp lan0 add vrid 1 address 192.168.2.1/24 priority 200 interval 10 delay 180 82| vendor OEM
- router-id 192.168.2.10 route dynamic ospf enableA-s:の設定とは、OSPFのルータIDの設定値のみ異なります。
※ 設置される順序や構成に併せた順序で確認してください。