狼愛上貍

          我胡漢三又回來了

          導航

          <2007年8月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          統計

          常用鏈接

          留言簿(20)

          隨筆分類

          隨筆檔案

          hideto

          java友

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          Ubuntu7.04防火墻Friestarter的配置

          sudo apt-get install firestarter

          Firestarter的啟動腳本是/etc/init.d/firestarter,其中執行了 /etc/firestarter/firestarter.sh來啟動防火墻,因此,其實Firestarter真正的啟動腳本是 /etc/firestarter/firestarter.sh。
          編輯/etc/firestarter/firestarter.sh
          根據本機ifconfig的輸出信息來修改以下幾行代碼:
          IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \ -f 1`
          MASK=`/sbin/ifconfig $IF | grep Mas | cut -d : -f 4`
          BCAST=`/sbin/ifconfig $IF |grep Bcast: | cut -d : -f 3 | cut -d \ -f 1`
          例如,我的系統使用eth0上網,就執行ifconfig eth0。其中IP地址依然可以通過以上代碼的第一行獲取,只是子網掩碼和廣播地址的獲取會有問題。于是保留第一行不做修改,將后兩行代碼中grep搜索的英文字符串改為相應中文字符串即可。
          IP=`/sbin/ifconfig $IF | grep inet | cut -d : -f 2 | cut -d \ -f 1`
          MASK=`/sbin/ifconfig $IF | grep 掩碼: | cut -d : -f 4`
          BCAST=`/sbin/ifconfig $IF |grep 廣播: | cut -d : -f 3 | cut -d \ -f 1`
          保存文件后,啟動Firestarter。一切正常。
          (以上來來自http://sanhex.bloggerspaces.com/index.html)


          來自:http://dingwl.spaces.live.com/Blog/cns!ED2CFB949D04FD0F!220.entry

          posted on 2007-08-07 22:43 狼愛上貍 閱讀(553) 評論(0)  編輯  收藏 所屬分類: LINUX

          主站蜘蛛池模板: 塘沽区| 哈巴河县| 田林县| 四子王旗| 怀宁县| 五指山市| 天镇县| 开封县| 顺平县| 临清市| 亚东县| 玉环县| 旬阳县| 霍城县| 班玛县| 外汇| 平谷区| 西平县| 易门县| 洛南县| 卢龙县| 大埔区| 蓝田县| 察哈| 宁蒗| 固原市| 凤山县| 浦东新区| 阿瓦提县| 巴中市| 辉县市| 石家庄市| 班戈县| 黑河市| 平和县| 灌阳县| SHOW| 东乡| 新疆| 彭山县| 隆尧县|