2013年2月3日星期日

[GFW BLOG(功夫网与翻墙)] 在Ubuntu上安装PPTP VPN 服务器和SSH翻墙服务器

安装SSH代理服务器,请参考:小方文章

安装PPTP VPN服务器,请参考:http://www.lc365.net/blog/b/14060/

附:PPTP VPN中的ms-dns也可以使用 OpenVPN的 208.67.222.222 / 208.67.220.220

小方这里还写了一个升级版createUser,可以将上面的小方文章中的SSH 翻墙服务中的createUser进行升级,使用一次,同时建立SSH账号和VPN账号:

   #! /bin/bash     username=$1  pwd=$2  month=$3  if [ "$month" == "" ]; then          month="3"  fi  check=$(cat /etc/passwd | grep /$username:)     if [ $check ]; then          echo "User $username is already existed. Exit."          exit  fi     date=`date --date="+$month month" +"%Y-%m-%d"`     useradd -s /bin/false -e $date -M $username  -p `mkpasswd $pwd`  #remove username in pptp user list  pptpSed="/$username pptpd/d"  sed "$pptpSed" /etc/ppp/chap-secrets > /etc/ppp/chap-secrets.tmp  mv /etc/ppp/chap-secrets.tmp /etc/ppp/chap-secrets  echo "$username pptpd $pwd *" >> /etc/ppp/chap-secrets  echo "Vpn+SSH User created. Expired date for $username is $date"
原文:http://www.xiaofang.me


--
Posted By GFW BLOG 功夫网与翻墙 to GFW BLOG(功夫网与翻墙) at 2/03/2013 07:12:00 AM

--
--
1、翻墙利器赛风3下载地址: http://dld.bz/caonima326http://dld.bz/caonima745/
2、我们的订阅地址:http://feeds2.feedburner.com/chinagfwblog
3、停止订阅,请发邮件到
gfw-blog+unsubscribe@googlegroups.com
翻越防火长城,你可以到达世界上的每一个角落。(Across the Great Firewall, you can reach every corner in the world.)
 
---
您收到此邮件是因为您订阅了 Google 网上论坛的"GFW Blog"论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 gfw-blog+unsubscribe@googlegroups.com。
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

没有评论:

发表评论