2015年12月27日星期日

OpenWRT路由器搭建PPTP服务器

实例环境:openwrt14.04 7620A  CPU 路由。理论14.04固件都可按照此文来操作。

ssh连上去后,
opkg update
opkg install kmod-mppe
opkg install pptpd
rm /etc/init.d/pptpd
touch /etc/functions.sh

#下载luci-app-vpnserver.ipk,
http://bdbea3.duapp.com/pcs_download.php?id=1794&link=%2Fapps%2Fhgf_blog%2Fluci-app-vpnserver-1.ipk
or
https://drive.google.com/file/d/0B_9zc8l8q91STHFlejhVTW1WdWc/view?usp=sharing

#WinSCP上传上去tmp目录并安装
cd /tmp
opkg install luci-app-vpnserver-1.ipk

#如果提示错误,则
rm /etc/init.d/pptpd
touch /etc/functions.sh
opkg install luci-app-vpnserver-1.ipk

等安装好后,去web管理界面,进行管理Services - VPN Services,默认设置即可,只用按照喜好调整DNS或者用户名即可。




IP常变动可参考这里,给OpenWRT安装DDNS服务;


信息来源:
http://blog.csdn.net/myweishanli/article/details/45354213

没有评论:

发表评论

设置debian/ubuntu 2分钟后 定时重启

 #使用以下命令,安装at并安排系统在两分钟后执行重启: apt-get install at -y && echo "shutdown -r now" | sudo at now + 2 minutes