環境:
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
2008年7月12日 星期六
2008年2月6日 星期三
VPN+NAT
設定:
在設置VPN之前,請先設置好NAT功能,可參考以下網址
http://teed7334.blogspot.com/2008/01/dhcpnat.html
vi /etc/init.d/nat
modprobe ppp-compress-18
vi /etc/modules
alias net-pf-47 ip_gre
在設置VPN之前,請先設置好NAT功能,可參考以下網址
http://teed7334.blogspot.com/2008/01/dhcpnat.html
vi /etc/init.d/nat
modprobe ppp-compress-18
vi /etc/modules
alias net-pf-47 ip_gre
訂閱:
文章 (Atom)