Application:PPTP vpn
From WebOS Internals
Contents |
Summary
PPTP is a VPN protocol used on Windows workstations. For more information see Wikipedia page Wikipedia: PPTP
This tutorial describe howto connect your WebOS device to private network... For example, it can be use for access to internal tracking systems from your phone.
Tip: If you want simple graphic interface for manage VPNs, you can try early snapshots of PreVPNc - webOS VPN manager
What you need before
- WebOS 1.4.1 with kernel 2.6.24-palm-joplin-3430
- Chrooted Debian
- Some experience with Linux
Installation
All comands type in chrooted Debian environment.
- Install pptp daemon
apt-get install ppp apt-get install pptp-linux
- Write your client configuration to /etc/ppp/peers/myvpn (I use configuration generated by kvpnc application...)
For example:
# name of tunnel, used to select lines in secrets files remotename myvpn # name of tunnel, used to name /var/run pid file linkname myvpn # name of tunnel, passed to ip-up scripts ipparam myvpn # data stream for pppd to use pty "/usr/sbin/pptp --debug --loglevel 1 vpn.domain.com --nolaunchpppd" # domain and username, used to select lines in secrets files name "username" # retrieve DNS from peer usepeerdns # use MPPE encryption require-mppe nomppe-stateful require-mppe-128 # we do not require the peer to authenticate itself noauth # enable debug debug # we want to see what happen nodetach # lock the device lock # Use BSD compression bsdcomp 9 # Use deflate method deflate 9 # do not replace defaultroute defaultroute # userdefined MTU mtu 1492 # userdefined MRU mru 1492 # kernel level debug kdebug 4 # refuse EAP refuse-eap
- Download and unpack kernel modules and starting script
wget http://www.karry.wz.cz/download/webos-vpnc.tar.gz zcat webos-vpnc.tar.gz | tar -xf -
- Edit your user name, password and vpn route rules in script ./vpnc/vpn.sh
Start VPN
- Run vpn.sh script...
cd vpnc ./vpn.sh
Warning!
Module ppp_mppe (Microsoft Point-to-Point Encryption support) is experimental in version 2.6.24!