Tomato 1.23 OpenVPN Mod + 教學

http://www.linksysinfo.org/forums/showthread.php?t=59416
http://www.linksysinfo.org/forums/showpost.php?p=336679

Features:

    * Based on Tomato 1.23 (ND also available)
    * OpenVPN 2.1rc15 is compiled in and fully integrated as a system service.
    * LZO 2.0.3 is compiled in for VPN compression option
    * Two separately configurable instances of each clients and servers can be configured in the GUI
    * TLS (optionally with static key HMAC authentication) and static-key encryption is supported
    * Custom configuration field is added to the end of the dynamically generated config file
    * UDP and TCP protocols supported
    * TAP and TUN style tunnels supported
    * Site-to-site tunnels without any custom configuration
    * Sets up and tears down (including module insertion/removal) interfaces as appropriate to save memory
    * Automatically adds and removes firewall rules as needed.
    * Encryption cipher settings are available.
    * Client address allocation is handled via GUI.
    * Added capability to use hostnames in the access restrictions page (unrelated to VPN, but I wanted it)
    * and more...

** 留意事項
Routers that are known to work with Tomato:

    * Linksys WRT54G v1-v4, WRT54GS v1-v4, WRT54GL v1.x, WRTSL54GS (no USB support)
    * Buffalo WHR-G54S, WHR-HP-G54, WZR-G54, WBR2-G54, WBR-G54, WZR-HP-G54,  WZR-RS-G54, WZR-RS-G54HP, WVR-G54-NF, WHR2-A54-G54, WHR3-AG54
    * Asus WL500G Premium (no USB support), WL500GE, WL520GU (no USB support)
    * Sparklan WX6615GT, Fuji RT390W, Microsoft MN-700

This will not work on Linksys WRT54G/GS v5 or newer WRT54G/GS routers.

*** ND Firmware Use for WHR-G125, WL520GU Model.

Router Setup
Step 1 : Upgrade VPN Firmware 先.
Step 2 : 係 Script 果度加上 sleep 20, service vpnserver1 start
Step 3 : Port Forward 去 VPN Server (即係Router IP ,and 我用 Standard Port UDP 1194)
Step 4 : VPN Tunneling 設定 (Basic 設定, TAP ,UDP ,1194 ,Static Key ,User Default , Enable )
              Static Key 灰左, 因為未Gen 條key 出泥

Router Setup 暫時完, 到 Client 果便
Client Setup
Step 1: 去 http://openvpn.net/index.php/downloads.html download openvpn-2.1_rc15-install.zip &    install 左佢 (因為我用Windows Client)
Step 2 : 係程式集 > OpenVPN > Utilities > Generate a static OpenVPN key Gen 條 key 出泥
Step 3 : Gen 完條 Key 會係 C:\Program Files\OpenVPN\config
Step 4 : Copy 條 Key.txt 去 C:\Program Files\OpenVPN\sample-config
Step 5 : 係 C:\Program Files\OpenVPN\sample-config 用Notepad 開 Client 檔
               更改內容如下 (xxx.xxx.xxx.xxx = Real IP, 可以用 Domain Name)

dev tap
proto udp
remote xxx.xxx.xxx.xxx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
secret key.txt
comp-lzo
verb 3

Step 6 : 用Notepad 開 key.txt Copy 條 Key D 內容, 再去 Router Static Key 果度貼起佢,即係灰左果度 & Save & 按 Start Now.
Step 7 : 係 C:\Program Files\OpenVPN\sample-config , Right Click >  "Start OpenVPN on this config file.

** 如果 Router 做 VPN Client, 其實同 Router Setup VPN Server 差唔多 (多左 IP )
** 留意事項 : Port Forward 要開
** 有關 Firmware MOD, 使用等責任, 用家請自行承擔,與本人無關.

[ 本帖最後由 VV 於 2009-1-2 15:59 編輯 ]
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

想問一下,
nd 版同無nd有咩分別

TOP

原帖由 寧靜風 於 2008-12-24 16:06 發表
想問一下,
nd 版同無nd有咩分別


new driver for different router  model ..........

TOP

原帖由 yhfung 於 2008-12-24 14:48 發表
我看过上面的第一个连接,看起来有点难度,而我自己都是用dd-wrt里的PPTP VPN算了。我用过dd-wrt,不错,可以接受。

角色


dd less stable and faster than tomato

TOP

原帖由 VV 於 2008-12-24 21:18 發表


dd less stable and faster than tomato

slower

TOP

原帖由 KinChungE 於 2008-12-24 21:22 發表

slower


dd less stable and less faster than tomato

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

真係用完tomato之後,好難用返dd-wrt.
d function完全o岩哂我用,連個open vpn都勁易set.

係最衰平時用開舊版open vpn,出左d warning,又要找找方法清理一下.

TOP

回覆 9# 的帖子

提示: 作者被禁止或刪除 內容自動屏蔽

TOP