相关文章  
  • 安全专家:Cisco PIX Syslog 配置说明
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    解析OPENBSD上的ADSL和防火墙设置4

    _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