Application:PPTP vpn
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.
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
<source lang="bash"> apt-get install ppp apt-get install pptp-linux </source>
- Write your client configuration to /etc/ppp/peers/myvpn (I use configuration generated by kvpnc application...)
For example:
<source lang="apache">
- 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 </source>
- Download and unpack kernel modules and starting script
<source lang="bash"> wget http://www.karry.wz.cz/download/webos-vpnc.tar.gz zcat webos-vpnc.tar.gz | tar -xf - </source>
- Edit your user name, password and vpn route rules in script ./vpnc/vpn.sh
Start VPN
- Run vpn.sh script...
<source lang="bash"> cd vpnc ./vpn.sh </source>
Warning!
Module ppp_mppe (Microsoft Point-to-Point Encryption support) is experimental in version 2.6.24!