PPTP構築メモ

vinelinuxでのPPTPによるvpn構築メモ。
以下編集中
参考↓
http://fedorasrv.com/pptp.shtml
aptでpppをインストール。
pptpdパッケージをソースからビルドしてインストール。
ターゲットはi686
pptpd設定ファイル編集
file:/etc/pptpd.conf 
最後に追加

localip 192.168.1.1 サーバーIPアドレス
remoteip 192.168.1.200-231 接続してきたクライアントに振るIPアドレスの範囲を指定

LAN内と重複しないように。

pptpdオプションファイル編集
file:/etc/ppp/options.pptpd

# If pppd is acting as a server for Microsoft Windows clients, this
# option allows pppd to supply one or two DNS (Domain Name Server)
# addresses to the clients. The first instance of this option
# specifies the primary DNS address; the second instance (if given)
# specifies the secondary DNS address.
#ms-dns 10.0.0.1
#ms-dns 10.0.0.2
ms-dns 1.2.3.4 内部向けDNSサーバーアドレス

# If pppd is acting as a server for Microsoft Windows or "Samba"
# clients, this option allows pppd to supply one or two WINS (Windows
# Internet Name Services) server addresses to the clients. The first
# instance of this option specifies the primary WINS address; the
# second instance (if given) specifies the secondary WINS address.
#ms-wins 10.0.0.3
#ms-wins 10.0.0.4
ms-wins 1.2.3.4 SambaのIPアドレス(サーバーがあったら)

WindowsからPPTPサーバーへ接続時に使用するユーザ名とパスワードを設定
file:/etc/ppp/chap-secrets

username pptpd password *


あとは起動させて自動起動とかの設定。
windows側で接続設定。
ファイアウォール、ルータのTCP1723番ポート、プロトコル47番(GRE)をオープン。
そんなとこでうまくいかず。