Yamaha RT58iでVPNサーバの設定をする
だいぶ前に挑戦して、うまくいかなかったので放置していた自宅LANへのVPN接続設定を久しぶりに行ってみた。ルーターが新しいものになって、機能が増えているかもしれないという期待もあったので。
実際には、機能面ではほとんど変化がなかったのだが、今回は適切な設定を見つけ出すことができ、無事にサーバー設定ができるようになった。設定のメモ書きをここに残します。
PP anonymous
pp select anonymous pp name RAS/VPN: pp bind tunnel1 pp auth request mschap-v2(認証方式はMS-CHAP v2にする。こうしないとWindows7からVPN接続できない) pp auth username (PPTP接続のユーザID) (パスワード) ppp ipcp ipaddress on ppp ccp type mppe-any ppp ipv6cp use off ip pp remote address pool 192.168.2.80-192.168.2.83(←PPTP接続した端末に割り当てるIPを固定設定) pptp service type server pp enable anonymous
#
TUNNEL configuration
#
tunnel disable all
TUNNEL 1
tunnel select 1 tunnel encapsulation pptp pptp tunnel disconnect time off(←PPTPトンネルの接続を自動で切らない) tunnel enable 1
#
IP filter configuration
#
ip filter 200070 pass * * tcp * 1723(←フィルタの設定。ここはGUI上で自動設定されないので注意。※必要部分のみ掲載) ip filter 200071 pass * * gre * *(←フィルタの設定。ここはGUI上で自動設定されないので注意。※必要部分のみ掲載)
#
NAT Descriptor configuration
#
nat descriptor masquerade static 1000 11 192.168.2.1 tcp 1723 nat descriptor masquerade static 1000 12 192.168.2.1 gre