Ads 468x60px

Pages

2010年1月22日 星期五

如何克服公司檔我 facebook on MacBook

Configure Routing Table For Facebook in MAC OSX by Kevin.L

It's very troublesome while you need to access both Facebook and internal resources.
You need to switch internet connection to acheive this manually.
You only need to execute the following command in TERMINAL.
After that you don't have to switch between connections anymore.
PS: You need to connect to wireless SSID: muchiii_lab_dir685(hinet) first.

sudo route  add -net 69.63 192.168.0.1 255.255.0.0

關機時,自動設定
1. 增加一個目錄 AddRoutes 到 /Library/StartupItems/
2. 在 AddRoutes/ 目錄下,新增一個檔案叫 StartupParameters.plist
        Description     = "Add static routing tables";
        Provides        = ("AddRoutes");
        Requires        = ("Network");
        OrderPreference = "None";

3. 在 AddRoutes/ 目錄下,新增一個檔案叫 AddRoutes (沒錯,它跟目錄名稱一樣)
#!/bin/sh
# Set up static routing tables
# Roark Holz, Thursday, April 6, 2006

. /etc/rc.common

StartService ()
{
        ConsoleMessage "Adding Static Routing Tables"
        /sbin/route add -net 69.63 192.168.0.1 255.255.0.0
        /sbin/route add -net 66.220 192.168.0.1 255.255.0.0
}

StopService ()
{
        return 0
}

RestartService ()
{
        return 0
}

RunService "$1"

0 意見:

張貼留言