Pejman Moghadam / Redhat

Redhat 8.0 - pptpclient

Public domain


Kernel 2.4.31 & mppe-mppc patch

# cd /usr/src
# wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.31.tar.bz2
# tar -jxvf linux-2.4.31.tar.bz2
# cd /usr/src/linux-2.4.31
# cp /boot/config-2.4.18-14 .config
# make oldconfig
# wget http://mppe-mppc.alphacron.de/linux-2.4.31-mppe-mppc-1.3.patch.gz
# zcat linux-2.4.31-mppe-mppc-1.3.patch.gz | patch -p1
# make menuconfig

    Processor type and features ---> 386
    File systems ---> <*> Ext3 journalling file system support
    Network device support --->
      <M> Microsoft PPP compression/encryption (MPPC/MPPE)
      <M> PPP BSD-Compress compression
      <M> PPP over Ethernet (EXPERIMENTAL)
    Cryptographic options --->
      <M> SHA1 digest algorithm
      <M> ARC4 cipher algorithm

# make dep && make bzImage && make modules && make modules_install && make install
# cd /usr/src
# ln -s /usr/src/linux-2.4.31 linux
# vi /boot/grub/grub.conf

    default=0

# vi /etc/modules.conf

    alias ppp-compress-18 ppp_mppe_mppc
    alias char-major-108 ppp_generic
    alias tty-ldisc-3 ppp_async
    alias tty-ldisc-14 ppp_synctty
    alias ppp-compress-21 bsd_comp
    alias ppp-compress-24 ppp_deflate
    alias ppp-compress-26 ppp_deflate
    alias net-pf-47 ip_gre

# reboot
# modprobe ppp-compress-18

PPPD 2.4.3

# rpm -e ppp
# cd /usr/src/
# wget http://samba.org/ftp/ppp/ppp-2.4.3.tar.gz
# tar -zxvf ppp-2.4.3.tar.gz
# cd /usr/src/ppp-2.4.3
# wget http://mppe-mppc.alphacron.de/ppp-2.4.3-mppe-mppc-1.1.patch.gz
# zcat ppp-2.4.3-mppe-mppc-1.1.patch.gz | patch -p1
# ./configure
# make
# make install
# strings `which pppd` | grep -i mppe | wc --lines

PPTP Client 1.7.1

# cd /usr/src
# wget http://mesh.dl.sourceforge.net/sourceforge/pptpclient/pptp-1.7.1.tar.gz
# tar -zxvf pptp-1.7.1.tar.gz
# cd /usr/src/pptp-1.7.1
# vi Makefile

    PPPD = /usr/local/sbin/pppd

# make
# make install
# vi /etc/ppp/options.pptp

    lock noauth nobsdcomp nodeflate refuse-eap
    #persist maxfail 0 proxyarp
    #debug dump logfd 2 nodetach

# vi /etc/ppp/chap-secrets

    pejman PPTP 123456 *

# mkdir -p /etc/ppp/peers
# vi /etc/ppp/peers/pptp-peer

    pty "pptp 83.170.42.1 --nolaunchpppd"
    name pejman
    remotename PPTP
    file /etc/ppp/options.pptp

Calling pptp

  # pppd call pptp-peer
or
  # pptp 83.170.42.1 lock noauth nobsdcomp nodeflate refuse-eap name pejman remotename PPTP

BY: Pejman Moghadam
TAG: mppc, vpn-client, pptpclient
DATE: 2007-11-27 10:15:52


Pejman Moghadam / Redhat [ TXT ]