# # Amazon VPCとVPN(IPsec)接続するファイアウォールの設定 : コマンド設定 # # # ゲートウェイの設定 # ip route default gateway pp 1 filter 500000 gateway pp 1 # # LANのインタフェースの設定 #(LAN1ポートを使用) # ip lan1 address 192.168.100.1/24 # # WANのインタフェースの設定 #(LAN2ポートを使用) # pp select 1 pp always-on on pppoe use lan2 pppoe auto disconnect off pp auth accept pap chap pp auth myname (ISPへ接続するID) (ISPへ接続するパスワード) ppp lcp mru on 1454 ppp ipcp msext on ppp ccp type none ip pp address (ファイアウォールの固定グローバルIPアドレス) ip pp inbound filter list 1001 1002 1003 1004 1005 1006 1007 1099 ip pp nat descriptor 1000 pp enable 1 # # フィルターの設定 # ip filter 500000 restrict * * * * * ip inbound filter 1001 reject-nolog * * tcp,udp * 135 ip inbound filter 1002 reject-nolog * * tcp,udp 135 * ip inbound filter 1003 reject-nolog * * tcp,udp * netbios_ns-netbios_ssn ip inbound filter 1004 reject-nolog * * tcp,udp netbios_ns-netbios_ssn * ip inbound filter 1005 reject-nolog * * tcp,udp * 445 ip inbound filter 1006 reject-nolog * * tcp,udp 445 * ip inbound filter 1007 reject-nolog 192.168.100.0/24 * * * * ip inbound filter 1099 pass-nolog * * * * * ip policy interface group 101 name=Private local lan1 ip policy address group 101 name=Private 192.168.100.0/24 ip policy address group 102 name=Any * ip policy service group 101 name="Open Services" ip policy service group 102 name=General dns ip policy service group 103 name=Mail pop3 smtp submission ip policy service group 109 name=IPsec ike esp ip policy filter 1100 reject-nolog lan1 * * * * ip policy filter 1110 pass-nolog * * * * 102 ip policy filter 1122 static-pass-nolog * lan1 * * * ip policy filter 1123 static-pass-nolog * local * * * ip policy filter 1124 static-pass-log * * 192.168.100.0/24 * http ip policy filter 1130 pass-nolog * tunnel* * * * ip policy filter 1150 pass-nolog * pp1 * * * ip policy filter 1500 reject-nolog pp* * * * * ip policy filter 1520 pass-log * lan1 * * 101 ip policy filter 1540 static-pass-nolog * local * * 109 ip policy filter 1600 reject-nolog tunnel* * * * * ip policy filter 1610 pass-nolog * 101 * * * ip policy filter 1630 pass-nolog * tunnel* * * * ip policy filter 1660 reject-nolog * pp* * * * ip policy filter 1700 pass-nolog local * * * * ip policy filter 1710 static-pass-nolog * lan1 * * * ip policy filter 1730 static-pass-nolog * pp* * * 109 ip policy filter 3000 reject-nolog * * * * * ip policy filter set 101 name="Internet Access" 1100 [1110 1123 [1124] 1122 1150 1130] 1600 [1630 1610 1660] 1500 [1520 1540] 1700 [1710 1730] 3000 ip policy filter set enable 101 # # NATの設定 # nat descriptor type 1000 masquerade nat descriptor address outer 1000 (ファイアウォールの固定グローバルIPアドレス) nat descriptor masquerade static 1000 1 192.168.100.1 udp 500 nat descriptor masquerade static 1000 2 192.168.100.1 esp # # DNSの設定 # dns server (ISPから指定されたDNSサーバーのIPアドレス) dns private address spoof on # # DHCPの設定 # dhcp service server dhcp server rfc2131 compliant except remain-silent dhcp scope 1 192.168.100.2-192.168.100.191/24