|
PPPoE Server Under Ubuntu/Debian |
|
|
|
Server Setup:
Operating System: Ubuntu (9.04), Jaunty, x86_64, 2.6.28-11-generic I actually installed on 8.04.
Softwares: ppp pppoe rp-pppoe (I used rp-pppoe-3.10.tar.gz)
some of them may be already installed. $ sudo apt-get install ppp # ppp Daemon $ sudo apt-get install pppoe # ppp over ethernet driver
optional/check verify $ sudo apt-get install pppdcapiplugin # plugin for pppd to communicate with CAPI-enabled ISDN cards $ sudo apt-get install pppstatus #console based ppp status
RP PPPoE; can be obtained from, http://www.roaringpenguin.com/products/pppoe
Installation of RP-PPPoE first go through README file shipped with after untar.
1) QUICKSTART Method ----------
If you're lucky, the "quickstart" method will work. After unpacking the archive, become root and type:
./go
This should configure, compile and install the software and set up your DSL connection. You'll have to answer a few questions along the way.
If you want the GUI wrapper, type:
./go-gui
If ./go and ./go-gui didn't work, read the rest of this README.
2) Compiling Method ---------
Compile and install pppd if you don't already have it. Then:
1) Unpack:
$ tar xzvf rp-pppoe-xxx.tar.gz
2) Change to source directory:
$ cd src
3) Configure:
$ ./configure
4) Compile:
$ make
4) Install (this step must be done as root)
# make install
Reference http://www.roaringpenguin.com
Client Side : Operating System:Debian pppoeconf
# apt-get install pppoeconf
Configuration
PPPd configuration in server: changes in following files a) /etc/ppp/options b) /etc/ppp/chap-secrets
a) Change following in /etc/ppp/options file, some to them already uncommented. I use chap as authentication.
ms-dns 94.75.208.136 ms-dns 10.10.220.1 asyncmap 0 auth crtscts lock hide-password modem mru 1492 +chap mtu 1492 proxyarp lcp-echo-interval 30 lcp-echo-failure 4 noipx noreplacedefaultroute logfile /var/log/pppd.log
b) Add two users PPP and dvg, they will get Ip from DHCP server here, but you can also assign the IP address here, then you have to enable the NAT in rp-pppoe script .
I this example the Client hostname is PPP and passwd is password.
# Secrets for authentication using CHAP # client server secret IP addresses #"
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
" * "" PPP * password * dvg * owera *
"PPP2" * "password" 10.10.220.3
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
* 874oise\ *
RP-PPPoE configuratio: make script pppoe-up with following, chmod to 755.
Script
#!/bin/bash
# ----------------------------------------------------
# Starts the PPPoE server and turns on NAT
# ----------------------------------------------------
# MAX is the maximum number of addresses your server
# is allowed to hand out. PROV=PPPoE MAX=2
# BASE is the lowest IP address your server is allowed
# to hand out.
BASE=192.168.1.238 PLA=192.168.1.0/24
#BASE=10.10.220.2 #PLA=10.10.220.0/8
# NAT is the set of addresses which your server will
# NAT behind it. Other addresses behind your server
# WILL NOT be NATed.
#NAT=10.67.7.0/24
# MYIP is the public IP address of this server.
MYIP=192.168.1.144
##########################################
# Here is where the script actually starts executing. ##########################################
# Disable IP spoofing on the external interface.
#/usr/sbin/iptables -A INPUT -i eth0 -s $NAT -j DROP
# Enable NAT for the private addresses we hand out.
#/usr/sbin/iptables -t nat -A POSTROUTING -s $NAT -j SNAT --to-source $MYIP
# Launch the server.
/usr/sbin/pppoe-server pty -T 60 -I eth1 -L $MYIP -N $MAX -C $PROV -S $PROV -R $PLA
echo "1" > "/proc/sys/net/ipv4/ip_forward"
Cleint side Install pppoeconfig, which may be already instlalled.
Run the Server
Execute the pppoe-up script in server.
./pppoe-up
Run pppoeconfig in Client side,
It will search for pppoe server on ethernet server. Once it found on, in this case in eth0 it will prompt for user name: PPP and passwd: password.
Reference: http://roaringpenguin.com/products/pppoe http://neworder.box.sk/newsread.php?newsid=18797 http://www.freeantennas.com/PPPoE-Server-HOWTO.html |
|