日本a√视频在线,久久青青亚洲国产,亚洲一区欧美二区,免费g片在线观看网站

        <style id="k3y6c"><u id="k3y6c"></u></style>
        <s id="k3y6c"></s>
        <mark id="k3y6c"></mark>
          
          

          <mark id="k3y6c"></mark>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > iptables1.4.12.1移植到arm平臺

          iptables1.4.12.1移植到arm平臺

          作者: 時間:2016-11-09 來源:網(wǎng)絡(luò) 收藏
          平臺介紹:主機端—ubuntu11.04

          開發(fā)板內(nèi)核—linux-2.6.30

          本文引用地址:http://yuyingmama.com.cn/article/201611/317663.htm

          iptables版本—1.4.12.1

          移植過程:

          內(nèi)核需要對iptables的支持并加上nat功能

          Networking support --->

          Networking options --->

          Network packet filtering framework (Netfilter)

          │ │ --- Network packet filtering framework (Netfilter) │ │

          │ │ [*] Network packet filtering debugging │ │

          │ │ [*] Advanced netfilter configuration │ │

          │ │ Core Netfilter Configuration ---> │ │

          │ │ < > IP virtual server support ---> │ │

          │ │ IP: Netfilter Configuration --->

          Core Netfilter Configuration里面的配置如下:

          <*> Netfilter connection tracking support

          -*- Netfilter Xtables support (required for ip_tables)

          IP: Netfilter Configuration里面的配置如下:

          [*] proc/sysctl compatibility with old connection tracking

          <*> IP tables support (required for filtering/masq/NAT)

          <*> Packet filtering

          <*> REJECT target support

          < > LOG target support

          < > ULOG target support

          <*> Full NAT

          <*> MASQUERADE target support

          <*> NETMAP target support

          <*> REDIRECT target support

          <*> Basic SNMP-ALG support

          重新編譯。

          進入iptables目錄,運行configure文件

          ./configure --prefix=/opt/iptables/ --host=arm-linux --with-ksource=/root/linux-2.6.30/

          make

          make install

          進入/opt/iptables/目錄看看吧,應(yīng)該生成了可執(zhí)行文件。

          使用無線網(wǎng)卡建立無線網(wǎng)絡(luò),通過eth0來做nat轉(zhuǎn)換上網(wǎng),需要使用防火墻和內(nèi)核的nat功能,配置命令如下:

          //把所有192.168.0.0網(wǎng)絡(luò)的數(shù)據(jù)交由eth0來處理
          iptables -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MASQUERADE
          iptables -t nat -A POSTROUTING -j MASQUERADE
          iptables -F FORWARD

          這樣所有無線網(wǎng)絡(luò)客戶端就可以都可以上網(wǎng)了



          關(guān)鍵詞: iptables1.4.12.1移植arm平

          評論


          相關(guān)推薦

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

          關(guān)閉