# # Winnyフィルター機能とDHCP端末認証機能 (端末の独立性を高め、ウィルス感染等の脅威から守りたい) # # # 拠点1 ルーター(1) # # # イーサネットフィルターの設定 # ethernet filter 1 reject-log dhcp-not-bind 192.168.1.1 ethernet filter 2 pass-nolog *:*:*:*:*:* *:*:*:*:*:* # # LANインターフェースの設定 # ip lan1 address 192.168.1.1/24 ip lan1 secondary address 172.16.0.1/24 ip lan3 address 192.168.100.1/24 # # WANインターフェースの設定 # pp select 1 pp always-on on pppoe use lan2 pp auth accept pap chap pp auth myname (ISP1に接続するID) (ISP1に接続するパスワード) ppp lcp mru on 1454 ppp ipcp ipaddress on ip pp mtu 1454 ip pp nat descriptor 1 ip pp secure filter in 1020 1030 1040 1041 2000 ip pp secure filter out 1010 1011 1012 1013 1014 1015 3000 dynamic 100 101 102 103 104 105 106 107 pp enable 1 ip route default gateway pp 1 # # VPN(IPsec)の設定 # tunnel select 1 ipsec tunnel 1 ipsec sa policy 1 1 esp 3des-cbc sha-hmac ipsec ike keepalive use 1 on ipsec ike local address 1 192.168.1.1 ipsec ike local name 1 kyoten1 ipsec ike pre-shared-key 1 text (パスワード1) ipsec ike remote address 1 (グローバルアドレス1) tunnel enable 1 ip route 192.168.101.0/24 gateway tunnel 1 # # VPN(IPsec)の設定(共通項目) # ipsec auto refresh on # # イーサネットフィルターの適用 # ethernet lan1 filter in 1 2 # # フィルターの設定 # ip filter source-route on ip filter directed-broadcast on ip filter 1010 reject * * udp,tcp 135 * ip filter 1011 reject * * udp,tcp * 135 ip filter 1012 reject * * udp,tcp netbios_ns-netbios_ssn * ip filter 1013 reject * * udp,tcp * netbios_ns-netbios_ssn ip filter 1014 reject * * udp,tcp 445 * ip filter 1015 reject * * udp,tcp * 445 ip filter 1020 reject 192.168.1.0/24 * ip filter 1030 pass * 192.168.1.0/24 icmp ip filter 1040 pass * 192.168.1.1 udp * 500 ip filter 1041 pass * 192.168.1.1 esp ip filter 2000 reject * * ip filter 3000 pass * * ip filter dynamic 100 * * ftp ip filter dynamic 101 * * www ip filter dynamic 102 * * domain ip filter dynamic 103 * * smtp ip filter dynamic 104 * * pop3 ip filter dynamic 105 * * submission ip filter dynamic 106 * * tcp ip filter dynamic 107 * * udp # # NATの設定 # nat descriptor type 1 masquerade nat descriptor masquerade static 1 1 192.168.1.1 udp 500 nat descriptor masquerade static 1 2 192.168.1.1 esp # # DHCPの設定 # dhcp service server dhcp server rfc2131 compliant except remain-silent dhcp scope lease type 1 bind-only fallback=2 dhcp scope 1 192.168.1.2-192.168.1.191/24 dhcp scope 2 172.16.0.2-172.16.0.191/24 # # IPアドレスの予約 # dhcp scope bind 1 192.168.1.100 ethernet (接続を許可する端末のMACアドレス) # # DNSの設定 # dns host lan1 dns server (ISP1から指定されたDNSサーバーのIPアドレス) dns private address spoof on