|
|
|
|
|
|
|
|
_server port = 80 flags S/SAFR keep state (max 200, source-track rule, max-src-nodes 200, max-src-states 2) queue boss =========================pf.conf======================= 禁用系统自定义的PF规则 # vi /etc/rc.conf pf=NO 启用IP转发: # vi /etc/sysctl.conf net.inet.ip.forwarding=1 设置开机启动ADSL拨号: # mkdir /etc/rc.d # vi /etc/rc.d/adsl.sh --------------+----------------+---------------+------------- #!/bin/sh # /etc/rc.d/adsl.sh # 7-11-2004 # [email protected] pppoe_status () { IP=$(/sbin/ifconfig tun0 | awk '/netmask/{print $2}') if [ ! -z "$IP" ]; then echo "pppoe link is up, ip: " $IP else echo "pppoe link is down" fi } pppoe_start () {页码:[1] [2] [3] [4] [5] [6] [7] [8] 第4页、共8页 |
|
|
|
|
设为首页 | 加入收藏 | 广告服务 | 友情链接 | 版权申明
Copyriht 2007 - 2008 © 科普之友 All right reserved |