中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 手機與無線通信 > 設(shè)計應(yīng)用 > Freebsd PF實現(xiàn)策略路由案例

        Freebsd PF實現(xiàn)策略路由案例

        作者: 時間:2011-07-22 來源:網(wǎng)絡(luò) 收藏

        1.說明: 此方案適用于可以使用做為防火墻的操作系統(tǒng),包括FREEBSD/OPENBSD/NETBSD。所謂的就是在服務(wù)器同時連接了兩個ISP線路,從那個網(wǎng)卡進來的數(shù)據(jù)包請求,返回給CLIENT時還從那個網(wǎng)卡出去。
        2.試驗拓撲:
        1.jpg (17.48 KB)
        2009-10-26 09:16
        圖中的『3接口器』可以用WIN2K或LINUX系統(tǒng)啟動IP轉(zhuǎn)發(fā)替代。
        3.OPENBSD網(wǎng)絡(luò)設(shè)置:
        Fxp0: 192.168.0.100 Ne3: 192.168.1.100 Gateway: 192.168.0.1
        4.規(guī)則:
        # vi /etc/pf.conf
        =================================================
        if_isp1=fxp0
        if_isp2=ne3
        gw_isp1=192.168.0.1 gw_isp2=192.168.1.10
        block all
        pass quick on lo0 all
        pass in quick on $if_isp1 reply-to ( $if_isp1 $gw_isp1 ) proto{tcp,udp,icmp} to any keep state pass in quick on $if_isp2 reply-to ($if_isp2 $gw_isp2 ) proto {tcp,udp,icmp} to any keep state
        pass out keep state
        =================================================
        為了試驗方便,以上規(guī)則沒有對TCP/UDP等協(xié)議的端口進行限制。大家根據(jù)自己的實際情況修改一下即可。為了方便控制PF的啟動和關(guān)閉,下面列出我使用的一個SHELL腳步:
        # vi /etc/rc.d/pf.sh
        =================================================
        #!/bin/sh
        # made by llzqq
        # pf startup scripts
        #
        case $1 in
        start)
        if [ -f /etc/pf.conf ]; then /sbin/pfctl -e -f /etc/pf.conf
        fi
        stop)
        /sbin/pfctl -F all
        /sbin/pfctl -d
        *)
        echo $0 start | stop
        esac
        exit 0

        本文引用地址:http://www.antipu.com.cn/article/156013.htm


        評論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉