相对于在linux下做pppoe server服务器,在freebsd下要简单得多。
一、安装freebsd,安装内核之源码或者用cvsup同步最新之内核源码。
二、重新编译内核。
1. 在内核配置文件中添加以下选项,然后重新编译和安装内核:
options NETGRAPH
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
2. 编辑 /etc/rc.conf, 添加:
pppoed_enable="YES"
pppoed_flags="-d -P /var/run/pppoed.pid -a "server" -l "default" "
pppoed_interface="fxp1"
3. 编辑/etc/ppp/ppp.conf
default:
set log Chat Command Phase #turn on some logging. See man ppp.conf
enable pap #turn on chap and pap accounting
enable chap
allow mode direct #turn on ppp bridging
enable proxy #turn on ppp proxyarping (redundant of a
disable ipv6cp #we don't use ipv6, don't want the errors
set mru 1492 #set mru below 1500 (PPPoE MTU issue)
set mtu 1492 #set mtu below 1500 (PPPoE MTU issue)
set ifaddr 10.0.0.1 10.0.1.1-10.0.5.254
set speed sync
set timeout 0
enable lqr
accept dns
4. 编辑 /etc/ppp/ppp.secret 设置好用户名和口令
username password
最后重新启动.
http://bbs2.chinaunix.net/viewthread.php?tid=766750