pacman -S pptpd
2. edit the configuration file
vim /etc/pptpd.conf
--
option /etc/ppp/pptpd-options
localip 172.16.1.254
remoteip 172.16.1.1-253
localip is ip of pptp server
remoteip is the ip range which vpn client will get from
3. edit /etc/ppp/pptpd-options
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
ms-dns 168.95.1.1
ms-dns 168.95.192.1
require-mppe-128 enables encryption
ms-dns is dns server address
4. start pptp server
/etc/rc.d/pptpd start
5. add username and password to /etc/ppp/chap-secrets for ppp authentication
<username> pptpd <password> *
6. make your iphone be a pptp client, General -> Network -> VPN -> Add a VPN -> PPTP
then fill all required fields and save
7. turn on VPN then you'll see the timer starts to timing
沒有留言:
張貼留言