A-A+

Linux云路由vyatta的体验报告(五):VPN的架设

2015年11月20日 站长资讯 暂无评论

在家办公肿么办,利用vyatta在办公室自己架设一台VPN,可以让你在家办公,这里使用pptp 。

接之前的环境,eth0为内网,地址10.0.0.100/24

eth1为外网,地址192.168.122.100/24

有一点需要注意,eth1能够访问公网还不够,必须有真实的公网地址,否则你从家里是拨不进来的。

将192.168.122.100替换为你的公网地址

set vpn pptp remote-access outside-address 192.168.122.100

设置内网IP起始结束地址

set vpn pptp remote-access client-ip-pool start 10.0.0.240

set vpn pptp remote-access client-ip-pool stop 10.0.0.245

设置验证模式

set vpn pptp remote-access authentication mode local

设置用户名和密码

set vpn pptp remote-access authentication local-users username user01 password user01password

commit

最后来说说防火墙的配置和使用。

标签:

给我留言