2008年7月12日 星期六

架設pptpd

環境:
Server Domain:teed7334.idv.tw
Server IP:192.168.0.1
DNS Server IP:192.168.0.1
Wins Server IP:192.168.0.1
Networks:192.168.0.1/255.255.255.0


設定:
apt-get install pptpd

vi /etc/pptpd.conf


#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245

To

localip 192.168.0.1 #VPN Server 本地IP
remoteip 192.168.0.0-192.168.0.255 #VPN Client IP分配範圍


vi /etc/ppp/pptpd-options

#ms-dns 10.0.0.1
.
.
.
#ms-wins 10.0.0.3
.
.
.
#debug

To

ms-dns 192.168.0.1 #指定分配給VPN Client的DNS
.
.
.
ms-wins 192.168.0.1 #指定分配給VPN Client的WINS
.
.
.
debug #指定建立日誌檔

Add

name teed7334.idv.tw #指定VPN Server的Domain


vi /etc/ppp/chap-secrets

# Secrets for authentication using CHAP
# client server secret IP addresses

Add

#使用者名稱 伺服器Domain 密碼 允許連入IP
teed7334 teed7334.idv.tw teed7334 *


/etc/init.d/pptpd restart

沒有留言: