Redhat 8.0 - PPPOE client ========================= 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 ---> Microsoft PPP compression/encryption (MPPC/MPPE) PPP BSD-Compress compression PPP over Ethernet (EXPERIMENTAL) Cryptographic options ---> SHA1 digest algorithm 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 ******************************************************************************** ### RP-PPPOE 3.8 # cd /usr/src # wget http://www.roaringpenguin.com/files/download/rp-pppoe-3.8.tar.gz # tar -zxvf rp-pppoe-3.8.tar.gz # cd /usr/src/rp-pppoe-3.8 # ./go (answer to questions) # vi /etc/ppp/pppoe.conf PPPD_EXTRA="noccp persist maxfail 0" # chkconfig --level 2345 pppoe off # ntsysv (enable pppoe ) # pppoe-start ******************************************************************************** ### NAT & ip forwarding # vi /etc/rc.local echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE modprobe ip_nat_ftp modprobe ip_conntrack_ftp # reboot ******************************************************************************** _BY: Pejman Moghadam_ _TAG: pppoe-client_ _DATE: 2007-09-25 14:58:19_