poptop (pptp + mppe) on slackware 14.1
Download and build:
cd /usr/src/ wget https://gigenet.dl.sourceforge.net/project/poptop/pptpd/pptpd-1.4.0/pptpd-1.4.0.tar.gz tar -zxvf pptpd-1.4.0.tar.gz cd pptpd-1.4.0 ./configure make;make install ln -sn /usr/local/lib/pptpd/ /usr/lib
Create and Edit Configuration Files:
vi /etc/pptpd.conf option /etc/ppp/options.pptpd localip 10.0.0.1 remoteip 10.0.0.2-100
vi /etc/ppp/options.pptpd lock name * mtu 1450 mru 1450 proxyarp auth asyncmap 0 -chap -mschap +mschap-v2 require-mppe lcp-echo-failure 30 lcp-echo-interval 5 ipcp-accept-local ipcp-accept-remote ms-dns 8.8.8.8 #uncomment if you want to use radius server #plugin radius.so #plugin radattr.so
vi /etc/ppp/pap-secrets # Secrets for authentication using PAP # client server secret IP addresses * *
vi /etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses mehdi * 123 *
Run:
/usr/local/sbin/pptpd
In Case of using RADIUS SERVER:
cd /usr/src wget https://download.samba.org/pub/ppp/ppp-2.4.5.tar.gz tar -zxvf ppp-2.4.5.tar.gz mkdir /usr/local/etc/radiusclient cp -R /usr/src/ppp-2.4.5/pppd/plugins/radius/etc/* /usr/local/etc/radiusclient/ rm -rf /etc/radiusclient ln -sn /usr/local/etc/radiusclient /etc/ vi /usr/local/etc/radiusclient/servers #Server Name or Client/Server pair Key #---------------- --------------- #portmaster.elemental.net hardlyasecret #portmaster2.elemental.net donttellanyone 127.0.0.1 radius_secret
vi /etc/ppp/options.pptpd
lock name * mtu 1450 mru 1450 proxyarp auth asyncmap 0 -chap -mschap +mschap-v2 require-mppe lcp-echo-failure 30 lcp-echo-interval 5 ipcp-accept-local ipcp-accept-remote ms-dns 8.8.8.8 plugin radius.so plugin radattr.so
By: Mehdi Sadighian
Contact: mehdi.sadighian@hotmail.com
TAG: slackware, pptp, pptpd, poptop, mppe, mppc, vpn, pptp encryption