Application:PPTP vpn

From WebOS Internals
Revision as of 01:35, 5 June 2010 by Karry (talk | contribs) (add link to PreVPNc project)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

<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">

  1. name of tunnel, used to select lines in secrets files

remotename myvpn

  1. name of tunnel, used to name /var/run pid file

linkname myvpn

  1. name of tunnel, passed to ip-up scripts

ipparam myvpn

  1. data stream for pppd to use

pty "/usr/sbin/pptp --debug --loglevel 1 vpn.domain.com --nolaunchpppd"

  1. domain and username, used to select lines in secrets files

name "username"

  1. retrieve DNS from peer

usepeerdns

  1. use MPPE encryption

require-mppe nomppe-stateful require-mppe-128

  1. we do not require the peer to authenticate itself

noauth

  1. enable debug

debug

  1. we want to see what happen

nodetach

  1. lock the device

lock

  1. Use BSD compression

bsdcomp 9

  1. Use deflate method

deflate 9

  1. do not replace defaultroute

defaultroute

  1. userdefined MTU

mtu 1492

  1. userdefined MRU

mru 1492

  1. kernel level debug

kdebug 4

  1. 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!