Setup Enable PPTP VPN @ uBuntu 12.04 LTS
(execute these command with "sudo" or as root)
代碼:
1. apt-get install pptpd (Install it)
service pptpd stop (Stop it)
2. vi /etc/pptpd.conf (Just Uncomment them, the "Recommended")
=> localip 192.168.0.1
=> remoteip 192.168.0.234-238,192.168.0.245
3. vi /etc/ppp/chap-secrets
=> <username> pptpd <password> *
e.g. jack pptpd jack1234 *
rose pptpd rose5566 *
4. vi /etc/ppp/options (Change DNS for VPN Users)
=> ms-dns 8.8.8.8
=> ms-dns 168.95.1.1
5. vi /etc/sysctl.conf (Enable Packet Forwarding)
=> net.ipv4.ip_forward=1
6. sysctl -p (Reload Sysctl.conf)
7. service pptpd start (or Restart it)
8. /sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
________________
美術插畫設計案子報價系統 v0.1 Beta
爪哇禾雀