First you want to dedicate a computer that you cannot run the latest resource intensive apps on, put two nic cards in it, and install FreeBSD on it. Try to avoid installing Xwindows, its only a router.
Second depepending on the version of FreeBSD that you are running you may need to recompile your kernel to support PPPOE and netgraph.
Third there are the two main files to modify /etc/rc.conf /etc/ppp/ppp.conf
here is my working sample of /etc/rc.conf # -- sysinstall generated deltas -- # Fri May 31 01:44:00 2002 # Created: Fri May 31 01:44:00 2002 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.1.1" gateway_enable="YES" hostname="ZUANTIZ.pacbell.net " hostname="ZUANTIZ.pacbell.net" ifconfig_ep0="inet 192.168.1.2 netmask 255.255.255.0" ifconfig_ep1="inet 192.168.0.1 netmask 255.255.255.0" kern_securelevel_enable="NO" moused_enable="NO" moused_type="NO" nfs_client_enable="YES" nfs_reserved_port_only="YES" sendmail_enable="NO" sendmail_enable="NO" sshd_enable="YES" gateway_enable="YES" firewall_enable="YES" firewall_type="/etc/rc.firewall" firewall_quiet="NO" natd_enable="YES" natd_interface="ep0"
ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" # if you want to enable nat for your local network, otherwise NO ppp_profile="sbcglobal.net"
default: set log Phase Chat LCP IPCP CCP IPCP tun command
set ifaddr 220.127.116.11/24 sbcglobal.net: set phone 562-549-4848 #may not be neccessary set redial 10 4 set timeout 999 set device PPPoE:ep0 set authname firstname.lastname@example.org set authkey stnsapp666 set dial set login add default HISADDR enable dns
If you are confident that you are done make sure that your first ethernet card in my case (ep0) is connected to your ADSL modem and that your modem is on and connected to the phone line and ready, you may want to give it a complete reset.
Then either run /etc/netstart or reboot your computer when your modem is ready.
This will take several minutes. I use the old tcpdump (that everyone seems to hate nowadays) to view the activity and status of the connection as the proper modem lights are or should be active.
You will see dnsipaddresses -> to your adapter and lines showing your username and password in clear text.
When you are connected or think you are connected you will see line with an ipaddress from your provider.
At that point you may switch to another terminal login as root and run ifconfig until you see the following output similar to mine.