12/17/2002
How-To (DSL Setup)
This is a simple How-to to get your DSL up and running useing FreeBSD4.x/5.x
Step one:
Recompile your kernel with the following options.
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_PPPOE
Then do a make kernel from /usr/src IE: cd /usr/src && make kernel && reboot
Step Two:
Setting up PPP to use the new PPPoE support from netgraph
First you will need to backup the
current ppp.conf doesnt hurt to backup for later reference To do this you would type in cd /etc/ppp then cp ppp.conf ppp.conf.bak then after you backed it up you would open the conf file to edit it by doinga vim ppp.conf or any other
editer you use will do i personally like vim. and you can remove all the stuff in there and add all this in:
default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
#add your interface instead of rl0 can be seen by doing a ifconfig at the shellif your useing the GENERIC you should be able to
see your NIC if not you'll have to read the LINT file and determin what driver you will need. (/usr/src/sys/i386/conf/LINT but that's a mandatory thing to change if you put rl0 and you dont have a RealTek based card you wount get online :]
set device PPPoE:rl0:
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname Your UserName used to login
set authkey Your Password used to login
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR# Add a (sticky) default route
enable dns
#The only 3 things you need to change are the PPPoE:rl0: and the user and password the rest is all there for a reason ;]
Step Three:
To make you connect auto at bootup add the following lines to your /etc/rc.conf file.
ppp_enable="YES"
ppp_mode="background"
ppp_profile="pppoe"
then save it and reboot if you whant to have a simple firewall then edit the file /etc/rc.firewall and just edit it its pretty simple and
add the following lines to your kernel.
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
in rc.conf:
ipfirewall_enable="YES"
TODO:
make a little script that does the work for the person.
make a little script to do the firewall stuff with help of the user.
chris0r chris@loconet.org