扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:简单网络 来源:简单网络 2008年4月7日
关键字: dlink设置
步骤一:Objects ->Address book -> InterfaceAddresses:
Edit the following items:
Change lan_ip to 192.168.1.1
Change lannet to 192.168.1.0/24
Change wan1_ip to 172.18.224.253
Change wan1net to 172.18.224.0/24
步骤二:Add a new IP4 Host/Network object:
Name: gw
IP Address: 172.18.224.254
Name: pptp-server-ip
IP Address: 10.1.1.1
Name:pptp-ip-pool
IP Address: 10.1.1.2-10.1.1.100
步骤三:Interfaces -> Ethernet:
The settings for the wan1 interface should be:
IP Address: wan1_ip
Network: wan1net
Default Gateway: gw
步骤四:User Authentication -> Local User Databases.
Add a new Local Userdatabase
Name: pptp-user
步骤五:User Authentication -> Local User Databases ->pptp-user
Name: dlink
Password: dlink
Confirm Password: dlink
步骤六:Interfaces -> L2TP/PPTP Servers.
Name: PPTP-tun
Inner IP Address: pptp-server-ip
Tunnel Protocol: PPTP
Outer Interface Filter: wan1
Server IP: wan1-ip
PPP Parameters
IP Pool: pptp_ip-pool
步骤七:User Authentication -> User Authentication Rules.
Name: PPTP-auth
Agent: PPP
Authentication Source: Local
Interface: pptp-tun
Originator IP: all-nets
Terminator IP: wan1-ip
Authentication Options
Local User DB: pptp-user
步骤八:Rules > IP Rules > Add > IP Rule:
Name: allow-pptp-lan1
Action:allow
Service: all-services
Source Interface: pptp-tun
Source Network: pptp-ip-pool
Destination Interface: lan1
Destination Network: lan1net
步骤九:Rules > IP Rules > Add > IP Rule:
Name: allow-pptp-wan1
Action: nat
Service: all-services
Source Interface: pptp-tun
Source Network:pptp-ip-pool
Destination Interface: wan1
Destination Network: all-nets
婵″倹鐏夐幃銊╂姜鐢瓕鎻╅崚鍥╂畱閹厖绨$憴顤廡妫板棗鐓欓張鈧弬棰侀獓閸濅椒绗岄幎鈧張顖欎繆閹垽绱濋柇锝勭疄鐠併垽妲勯懛鎶姐€婄純鎴炲Η閺堫垶鍋栨禒璺虹殺閺勵垱鍋嶉惃鍕付娴f娊鈧柨绶炴稊瀣╃閵嗭拷