PIROVANO
1 Alix Slackware
1.7 VPN-Server
Get my pre-built pptpd-package for Slackware 12.1 from here.
Get my pre-built pptpd-package for Slackware 12.2 from here.
OR
Let's build the package by ourselves:
The Downloads for Slackware 12.1 and 12.2 are the same. Build-script here, mirror. Source here, mirror.
You need to have some development- and library-packages installed from your Slackware-CD: gcc, make, glibc, kernel-headers, binutils.
tar xzvf pptpd.tar.gz
cp pptpd-1.3.4.tar.gz pptpd
cd pptpd
./pptpd.SlackBuild
installpkg pptpd-1.3.4-i486-1_SBo.tgz
##echo "/sbin/modprobe ppp_mppe" >> /etc/rc.d/rc.modules
Once the module ppp_mppe is loaded manually and VPN connection established successfully, after a system-reboot and vpn-connection-attempt the module should load automatically. If not, execute the above line.
vi /etc/pptpd.conf
ppp /usr/sbin/pppd
option /etc/ppp/options.pptpd
#debug
# stimeout 10
#noipparam
#logwtmp
#bcrelay eth1
#delegate
#connections 100
localip 192.168.20.1
remoteip 192.168.20.234,192.168.20.245
vi /etc/ppp/options.pptpd
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
vi /etc/ppp/chap-secrets
"USERNAME_FOR_CLIENT" pptpd "PASSWORD_FOR_CLIENT" *
put pptpd into /etc/rc.d/rc.local
modprobe ppp_mppe
pptpd
Let us enable VPN connections from the internet
vi /etc/rc.d/rc.firewall
iptables -F
...
...
iptables -A INPUT -i ppp0 -p tcp --dport 1723 -j ACCEPT
...
...
iptables -A INPUT -i ppp0 -j DROP
/etc/rc.d/rc.firewall
Windows VPN-Client
Create a new VPN connection on your Windows 2000/XP using Network-Neighborhood-properties.
Ensure that MS-CHAP v2 is selected.
Give it either your internal IP of alix, if you are connected internally, for testing purpose,
or put your dyndns.org-address if setup.
Connect. Now you have access to your internal IP-Adresses/Devices.
Copyright 2009 pirovano.ch. Last modified 2009-08-03 1200 CEST.
E-Mail: pirovano(at)[this-very-domain]