Pejman Moghadam / Redhat

Redhat 8.0 - POPTOP Server

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

PPTPD 1.3.0

# cd /usr/src/
# wget http://heanet.dl.sourceforge.net/sourceforge/poptop/pptpd-1.3.0.tar.gz
# tar -zxvf pptpd-1.3.0.tar.gz
# cd /usr/src/pptpd-1.3.0
# ./configure
# make install
# vi /etc/pptpd.conf

    ppp /usr/local/sbin/pppd
    option /etc/ppp/options.pptpd
    debug
    logwtmp
    localip 190.190.190.1
    remoteip 190.190.190.2

# vi /etc/ppp/options.pptpd

    name pptpd
    refuse-pap
    refuse-chap
    refuse-mschap
    require-mschap-v2
    #require-mppe-128
    proxyarp
    ms-dns 12.12.12.1
    lock
    nobsdcomp
    novj
    novjccomp
    nologfd

# vi /etc/ppp/chap-secrets

    pejman          pptpd   123456          *

# echo "/usr/local/sbin/pptpd" >> /etc/rc.local
# ln -s /usr/local/lib/pptpd/ /usr/lib/pptpd

BY: Pejman Moghadam
TAG: mppc, poptop, vpn-server
DATE: 2007-11-27 14:18:59


Pejman Moghadam / Redhat [ TXT ]