RTX1200でVPN(L2TP)設定

YAMAHA RTX1200

概要

  • 前回の、ルータをRTX1200に置き換えて快適生活!に引き続き、リモートから自宅にVPNするための設定
  • 現在のRTX1200の最新ファームウェアである、10.01.65は、L2TPの設定は全てWebインターフェイスから設定可能です。

負荷状態

1本1時間ぐらいセッションを張った状態。負荷は余裕ですね。

RTX1200 status
RTX1200 status

設定

アカウント関連の情報はxxxxxでマスクしてあります。

# RTX1200 Rev.10.01.65 (Tue Oct 13 12:23:48 2015)
# MAC Address : 00:a0:de:68:90:0c, 00:a0:de:68:90:0d, 00:a0:de:68:90:0e
# Memory 128Mbytes, 3LAN, 1BRI
# main:  RTX1200 ver=c0 serial=D2F004125 MAC-Address=00:a0:de:68:90:0c MAC-Address=00:a0:de:68:90:0d MAC-Address=00:a0:de:68:90:0e
# Reporting Date: Dec 27 04:23:25 2015
ip route default gateway pp 1 filter 500000
ip keepalive 1 icmp-echo 10 5 dhcp lan3
ip lan1 address 192.168.1.1/24
ip lan1 proxyarp on
ip lan1 secure filter in 100000 100001 100002 100003 100004 100005 100006 100007 100099
ip lan2 secure filter in 102003 102020 102021 102022 102023 102024 102025 102030 102032
ip lan2 secure filter out 102013 102020 102021 102022 102023 102024 102025 102026 102027 102099 dynamic 102080 102081 102082 102083 102084 102085 102098 102099
ip lan2 nat descriptor 299
description lan3 PRV/DHCP/226:
lan shutdown lan3
ip lan3 address dhcp
ip lan3 secure filter in 102003 102020 102021 102022 102023 102024 102025 102030 102032
ip lan3 secure filter out 102013 102020 102021 102022 102023 102024 102025 102026 102027 102099 dynamic 102080 102081 102082 102083 102084 102085 102098 102099
pp select 1
 description pp PRV/PPPoE/0:livedoor
 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 [email protected] 9934fc3a
 ppp lcp mru on 1454
 ppp ipcp ipaddress on
 ppp ipcp msext on
 ppp ccp type none
 ip pp secure filter in 200003 200020 200021 200022 200023 200024 200025 200030 200032 1 2 3 4 5 6
 ip pp secure filter out 200013 200020 200021 200022 200023 200024 200025 200026 200027 200099 dynamic 200080 200081 200082 200083 200084 200085 200098 200099
 ip pp nat descriptor 1000
 pp enable 1
pp select anonymous
 pp name "pptp server"
 pp bind tunnel1
 pp auth request mschap-v2
 pp auth username xxxxx xxxxxxxx
 ppp ipcp ipaddress on
 ppp ipcp msext on
 ip pp remote address pool dhcp
 ip pp mtu 1258
 pp enable anonymous
tunnel select 1
 tunnel encapsulation l2tp
 ipsec tunnel 1
  ipsec sa policy 1 1 esp aes-cbc sha-hmac
  ipsec ike keepalive log 1 off
  ipsec ike keepalive use 1 off
  ipsec ike nat-traversal 1 on
  ipsec ike pre-shared-key 1 text xxxxxxxx
  ipsec ike remote address 1 any
 l2tp tunnel auth off 
 l2tp tunnel disconnect time off
 l2tp keepalive use on
 ip tunnel tcp mss limit auto
 tunnel enable 1
ip filter 1 pass * 192.168.1.7 tcp * 22,www,https,domain
ip filter 2 pass * 192.168.1.7 udp * domain
ip filter 3 pass * 192.168.1.1 esp * *
ip filter 4 pass * 192.168.1.1 udp * 500
ip filter 5 pass * 192.168.1.1 udp * 4500
ip filter 6 pass * 192.168.1.1 udp * 1701
ip filter 100000 reject * * udp,tcp 135 *
ip filter 100001 reject * * udp,tcp * 135
ip filter 100002 reject * * udp,tcp netbios_ns-netbios_dgm *
ip filter 100003 reject * * udp,tcp * netbios_ns-netbios_dgm
ip filter 100004 reject * * udp,tcp netbios_ssn *
ip filter 100005 reject * * udp,tcp * netbios_ssn
ip filter 100006 reject * * udp,tcp 445 *
ip filter 100007 reject * * udp,tcp * 445
ip filter 100099 pass * * * * *
ip filter 102000 reject 10.0.0.0/8 * * * *
ip filter 102001 reject 172.16.0.0/12 * * * *
ip filter 102002 reject 192.168.0.0/16 * * * *
ip filter 102003 reject 192.168.1.0/24 * * * *
ip filter 102010 reject * 10.0.0.0/8 * * *
ip filter 102011 reject * 172.16.0.0/12 * * *
ip filter 102012 reject * 192.168.0.0/16 * * *
ip filter 102013 reject * 192.168.1.0/24 * * *
ip filter 102020 reject * * udp,tcp 135 *
ip filter 102021 reject * * udp,tcp * 135
ip filter 102022 reject * * udp,tcp netbios_ns-netbios_ssn *
ip filter 102023 reject * * udp,tcp * netbios_ns-netbios_ssn
ip filter 102024 reject * * udp,tcp 445 *
ip filter 102025 reject * * udp,tcp * 445
ip filter 102026 restrict * * tcpfin * www,21,nntp
ip filter 102027 restrict * * tcprst * www,21,nntp
ip filter 102030 pass * 192.168.1.0/24 icmp * *
ip filter 102031 pass * 192.168.1.0/24 established * *
ip filter 102032 pass * 192.168.1.0/24 tcp * ident
ip filter 102033 pass * 192.168.1.0/24 tcp ftpdata *
ip filter 102034 pass * 192.168.1.0/24 tcp,udp * domain
ip filter 102035 pass * 192.168.1.0/24 udp domain *
ip filter 102036 pass * 192.168.1.0/24 udp * ntp
ip filter 102037 pass * 192.168.1.0/24 udp ntp *
ip filter 102099 pass * * * * *
ip filter 103000 pass * * tcp * 8000
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.1.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.1.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.1.0/24 icmp * *
ip filter 200031 pass * 192.168.1.0/24 established * *
ip filter 200032 pass * 192.168.1.0/24 tcp * ident
ip filter 200034 pass * 192.168.1.0/24 tcp,udp * domain
ip filter 200035 pass * 192.168.1.0/24 udp domain *
ip filter 200036 pass * 192.168.1.0/24 udp * ntp
ip filter 200037 pass * 192.168.1.0/24 udp ntp *
ip filter 200099 pass * * * * *
ip filter 500000 restrict * * * * *
ip filter dynamic 102080 * * ftp
ip filter dynamic 102081 * * domain
ip filter dynamic 102082 * * www
ip filter dynamic 102083 * * smtp
ip filter dynamic 102084 * * pop3
ip filter dynamic 102085 * * submission
ip filter dynamic 102098 * * tcp
ip filter dynamic 102099 * * udp
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 1 masquerade
nat descriptor address outer 1 ipcp
nat descriptor address inner 1 auto
nat descriptor masquerade static 1 1 192.168.1.1 esp
nat descriptor masquerade static 1 2 192.168.1.1 udp 500
nat descriptor masquerade static 1 3 192.168.1.1 udp 4500
nat descriptor type 299 masquerade
nat descriptor address outer 299 primary
nat descriptor type 1000 masquerade
nat descriptor masquerade static 1000 1 192.168.1.7 tcp www
nat descriptor masquerade static 1000 2 192.168.1.7 udp domain
nat descriptor masquerade static 1000 3 192.168.1.7 tcp domain
nat descriptor masquerade static 1000 4 192.168.1.7 tcp 22
nat descriptor masquerade static 1000 5 192.168.1.7 tcp https
nat descriptor masquerade static 1000 6 192.168.1.1 esp
nat descriptor masquerade static 1000 7 192.168.1.1 udp 4500
nat descriptor masquerade static 1000 8 192.168.1.1 udp 500
ipsec auto refresh on
ipsec transport 1 1 udp 1701
syslog debug on
dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.1.100-192.168.1.254/24
dns server pp 1
dns server dhcp lan3
dns server select 500001 pp 1 any . restrict pp 1
dns server select 500227 dhcp lan3 any .
dns private address spoof on
snmp sysname yamaha-rtx1200-00a0de68900c
schedule at 1 */* 05:00:00 * ntpdate ntp.sfc.keio.ac.jp syslog
l2tp service on
httpd host lan1
statistics cpu on
statistics memory on
statistics traffic on
#

考察

  • VPNは、約1秒で接続完了します。超速いのでストレス無し!
  • 1アカウント、同時に1本しかコネクションを張れません。

参考資料

など。あちらこちらから、必要な設定を寄せ集めて作りました。

Comments

タイトルとURLをコピーしました