# rpm -ivh pptpd-1.4.0-1.el6.x86_64.rpm
# vi /etc/sysctl.conf
net.ipv4.ip_forward = 1# vi /etc/pptpd.conf
connections 10# vi /etc/ppp/options.pptpd
localip 192.168.249.1
remoteip 192.168.249.10-19
ms-dns 168.95.1.1# vi /etc/ppp/chap-secrets
Your_User_Name pptpd Your_PassWord *# 修改 iptables 設定
iptables -A INPUT -p tcp -m state --state NEW,RELATED,ESTABLISHED -m tcp --dport 1723 -j ACCEPT# 重啟 iptables
iptables -A INPUT -p gre -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.239.0/24 -j MASQUERADE
# service pptpd restart
# sysctl -p
最後記得開啟防火牆(校外→校內) 47 及 1723 這 2 個 port 。
沒有留言:
張貼留言