2012年12月25日 星期二

ubuntu 12.10 建立 nat

資料來源 http://myip.tw/itsmw/index.php/
基本:
       1.python3.1.x, python3-tk(8.5以上)
  •  apt-get update
  •  apt-get install python3 python3-tk
 
       2.兩張網卡 先設定好 (eht0和eht1 哪個是連結wan 哪個是連結lan)
       3. 原本是11.10 ==>12.10 (以root 的身份 update 否則會功虧一簣)
       4.升級 12.10後 先設定wan (但設定lan 就有問題 )
          所以設定第二個網路連線 就進入終端機
         ==>su root ==>nm-connection-editor
   
        5.下載 yhtools
        wget http://myip.tw/download/yhtools.tar.gz
        tar xzvf yhtools.tar.gz

====== 開工了====================================
       ./fw4nat.pyw  ==>會出現一個視窗 
             wan 163.26.142.11
                    255.255.255.128
                    163.26.142.126

             lan  192.168.1.254
                   255.255.255.0
             按esc 後 會產生 一個檔案  rc.local

         4. 再將產生的rc.local  把 /etc/rc.local 覆蓋住
         5. service rc.local start

沒有留言:

張貼留言