# RTX810 Rev.11.01.34 (Tue Nov 26 18:39:12 2019) # # IPoE DS-Liteによる通常のインターネット通信 + IPSecVPN の構築 # #設定情報 # # 拠点A LAN1 IPv4アドレス 192.168.10.1/24 LAN2 IPv4アドレス 192.168.1.250 # LAN2 IPv6アドレス DHCP ホスト名 : aaaaaa.i.open.ad.jp # DS-Lite AFTRアドレス # 拠点B LAN1 IPv4アドレス 192.168.20.1/24 # LAN2 IPv6アドレス DHCP ホスト名 : bbbbbb.i.open.ad.jp # # IPSec共有キー abcdefghijk / L2TP共有キー mnopqrstu # # IPSecのホスト名は https://i.open.ad.jp/ で取得します # # ゲートウェイアドレス(AFTR)はISPによって違うので調べてください # # # login timer 1800 ip route default gateway tunnel 1 gateway pp 1 filter 100001 100002 100003 100004 ip route 192.168.20.0/24 gateway tunnel 2 ipv6 route default gateway dhcp lan2 ip filter source-route on ip filter directed-broadcast on ip lan1 address 192.168.10.1/24 ### ↓のはRTX810の上位にHGWがあり、そのアクセス用です ### ip lan2 address 192.168.1.250/24 ipv6 lan2 address dhcp ip lan1 proxyarp on ipv6 prefix 1 dhcp-prefix@lan2::/64 ipv6 lan1 address dhcp-prefix@lan2::1/64 ipv6 lan1 rtadv send 1 o_flag=on ipv6 lan1 dhcp service server ipv6 lan2 prefix change log on ipv6 lan2 mtu 1500 ipv6 lan2 secure filter in 101000 101001 101002 101003 101004 101005 101006 101007 101078 ipv6 lan2 secure filter out 101079 dynamic 101080 101081 101082 101083 101084 101085 101098 101099 ipv6 lan2 dhcp service client ngn type lan2 ntt pp select 1 pp keepalive interval 30 retry-interval=30 count=12 pp always-on on pppoe use lan2 pppoe auto disconnect off pp auth accept pap chap pp auth myname <> <> ppp lcp mru on 1454 ppp ipcp ipaddress on ppp ipcp msext on ppp ccp type none ip pp mtu 1454 ip pp secure filter in 200003 200037 200081 200082 200083 200084 299997 ip pp secure filter out 200013 200020 200021 200022 200023 200024 200025 200026 200027 299999 dynamic 200080 200081 200082 200083 200084 200085 200098 200099 ip pp nat descriptor 1000 netvolante-dns hostname host pp server=1 .aa0.netvolante.jp netvolante-dns use pp server=1 auto pp enable 1 pp select anonymous pp bind tunnel3 pp auth request mschap-v2 pp auth username <> <> ppp ipcp ipaddress on ppp ipcp msext on ip pp remote address pool 192.168.10.150 ip pp mtu 1258 pp enable anonymous tunnel select 1 tunnel encapsulation ipip tunnel endpoint address <> ip tunnel mtu 1460 ip tunnel secure filter in 200030 299997 ip tunnel secure filter out 200097 200098 200099 dynamic 200080 200082 200083 200084 200098 200099 ip tunnel tcp mss limit auto tunnel enable 1 tunnel select 2 ipsec tunnel 102 ipsec sa policy 102 2 esp aes-cbc sha-hmac ipsec ike version 2 2 ipsec ike keepalive log 2 on ipsec ike keepalive use 2 on rfc4306 10 6 0 ipsec ike local name 2 aaaaaa.i.open.ad.jp fqdn ipsec ike pre-shared-key 2 text abcdefghijk ipsec ike remote name 2 bbbbbb.i.open.ad.jp fqdn ip tunnel tcp mss limit auto tunnel enable 2 tunnel select 3 tunnel encapsulation l2tp ipsec tunnel 103 ipsec sa policy 103 3 esp aes-cbc sha-hmac ipsec ike keepalive use 3 off ipsec ike local address 3 192.168.10.1 ipsec ike nat-traversal 3 on ipsec ike pre-shared-key 3 text mnopqrstu ipsec ike remote address 3 any l2tp tunnel disconnect time off l2tp keepalive use on 10 3 l2tp keepalive log on l2tp syslog on ip tunnel tcp mss limit auto tunnel enable 3 ip filter 100001 pass * * esp * * ip filter 100002 pass * * udp 500 * ip filter 100003 pass * * udp 4500 * ip filter 100004 pass * * udp 1701 * ip filter 200000 reject 10.0.0.0/8 * * * * ip filter 200001 reject 172.16.0.0/12 * * * * ip filter 200002 reject 192.168.0.0/16 * * * * ip filter 200003 reject 192.168.10.0/24 * * * * ip filter 200010 reject * 10.0.0.0/8 * * * ip filter 200011 reject * 172.16.0.0/12 * * * ip filter 200012 reject * 192.168.0.0/16 * * * ip filter 200013 reject * 192.168.10.0/24 * * * ip filter 200020 reject * * udp,tcp 135 * ip filter 200021 reject * * udp,tcp * 135 ip filter 200022 reject * * udp,tcp netbios_ns-netbios_ssn * ip filter 200023 reject * * udp,tcp * netbios_ns-netbios_ssn ip filter 200024 reject * * udp,tcp 445 * ip filter 200025 reject * * udp,tcp * 445 ip filter 200026 restrict * * tcpfin * www,21,nntp ip filter 200027 restrict * * tcprst * www,21,nntp ip filter 200030 pass * 192.168.10.0/24 icmp * * ip filter 200031 pass * 192.168.10.0/24 established * * ip filter 200032 pass * 192.168.10.0/24 tcp * ident ip filter 200033 pass * 192.168.10.0/24 tcp ftpdata * ip filter 200034 pass * 192.168.10.0/24 tcp,udp * domain ip filter 200035 pass * 192.168.10.0/24 udp domain * ip filter 200036 pass * 192.168.10.0/24 udp * ntp ip filter 200037 pass * 192.168.10.0/24 udp ntp * ip filter 200081 pass * 192.168.10.1 esp * * ip filter 200082 pass * 192.168.10.1 udp * 500 ip filter 200083 pass * 192.168.10.1 udp * 4500 ip filter 200084 pass * 192.168.10.1 udp * 1701 ip filter 200097 pass * * icmp * * ip filter 200098 pass * * tcp * * ip filter 200099 pass * * udp * * ip filter 299997 reject * * * * * ip filter 299998 reject-nolog * * established ip filter 299999 pass * * * * * ip filter dynamic 200080 * * ftp ip filter dynamic 200081 * * domain ip filter dynamic 200082 * * www ip filter dynamic 200083 * * smtp ip filter dynamic 200084 * * pop3 ip filter dynamic 200085 * * submission ip filter dynamic 200098 * * tcp ip filter dynamic 200099 * * udp nat descriptor type 1000 masquerade nat descriptor address outer 1000 ipcp nat descriptor address inner 1000 auto nat descriptor masquerade static 1000 1 192.168.10.1 esp nat descriptor masquerade static 1000 2 192.168.10.1 udp 500 nat descriptor masquerade static 1000 3 192.168.10.1 udp 4500 nat descriptor masquerade static 1000 4 192.168.10.1 udp 1701 ipsec auto refresh on ipsec transport 3 103 udp 1701 ipv6 filter 101000 pass * * icmp6 * * ipv6 filter 101001 pass * * tcp * ident ipv6 filter 101002 pass * * udp * 546 ipv6 filter 101003 pass * * esp * * ipv6 filter 101004 pass * * udp * 500 ipv6 filter 101005 pass * * udp * 1701 ipv6 filter 101006 pass * * udp * 4500 ipv6 filter 101007 pass * * 4 ipv6 filter 101078 reject * * * * * ipv6 filter 101079 pass * * * * * ipv6 filter dynamic 101080 * * ftp ipv6 filter dynamic 101081 * * domain ipv6 filter dynamic 101082 * * www ipv6 filter dynamic 101083 * * smtp ipv6 filter dynamic 101084 * * pop3 ipv6 filter dynamic 101085 * * submission ipv6 filter dynamic 101098 * * tcp ipv6 filter dynamic 101099 * * udp dhcp service server dhcp server rfc2131 compliant except remain-silent dhcp scope 2 192.168.10.11-192.168.10.99/24 dns host lan1 dns service fallback on dns server 2001:4860:4860::8888 2001:4860:4860::8844 2606:4700:4700::1111 2606:4700:4700::1001 dns server dhcp lan2 dns private address spoof on schedule at 1 */* *:*:00 * lua -e "rt.command(\"ping6 <>.i.open.ad.jp\")" l2tp service on telnetd host 192.168.10.1-192.168.10.199 httpd host 192.168.10.1-192.168.10.199 save #