2013年6月16日 星期日

透過 mac os x internet sharing 讓 PC 使用網路連線

目的:因為 pc 無法連線到 vpn server,但 mac 可以,所以想利用 mac 的網路連線,讓 pc 也能連入 vpn。
做法:因為 Mac Pro 有二個網路孔,所以讓 pc 能透過 mac 的第二個網路孔連線到 vpn

假設 mac 上的 vpn 設定已經完成。


  1. Open "System Preferences"
  2. Select "Sharing"
  3. Select your VPN connection from the list of "Share your connection from:"
  4. Select "Ethernet 2" in the checkboxes of "To computers using:"
  5. Turn on "On" checkbox of "Internet Sharing" from the Service list.
  6. Connect Ethernet cable between Mac's Port 2 and PC's port
  7. Connect VPN server in Mac
  8. Ping a VPN server, to make sure the connection between PC and VPN server is working