简单VPN建设
时间:2010-06-30 来源:大隐隐于床
建设VPN可以使用pptp,在OpenSuse的安装映像里自带。
1 安装pptpd
2 /etc/pptpd.conf
L22: option /etc/ppp/options.ppp0 to option /etc/ppp/options.pptp
L58: localip 211.162.182.233
3 /etc/ppp/chap-secrets
username /t proxy /t password /t iprange
eg: leon pptp 951753 *
4 /etc/ppp/options
L193: ms-dns 8.8.8.8
5 /etc/ppp/options.pptp
L20:#require-mppe
执行以下命令,可以加入/etc/rc.d/after.local文件
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE
echo "1">/proc/sys/net/ipv4/ip_forward

<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748214895997494.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748214895997494.png" alt="机器人狙击手最新版" />
飞行射击 下载
<img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748213241693464.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0526/1748213241693464.png" alt="我的枪有子弹最新版" />
飞行射击 下载- 4 <img preview="http://pic.pdowncc.com/uploadimg/ico/2025/0525/1748174029364713.jpg" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/ico/2025/0525/1748174029364713.jpg" alt="战斗地带汉化版" />下载58.6 MB · 95℃
1970-01-01
- 5 <img preview="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" alt="超级兔子人联机版手机版" />下载45.51 MB · 99℃
1970-01-01
- 6 <img preview="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" width="32" height="32" src="http://pic.pdowncc.com/uploadimg/img/2025/0526/1748208215706549.png" alt="超级兔子人联机版手机版" />下载169.80 MB · 95℃
1970-01-01