<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>マルクのブロッグ &#187; tomatoVPN</title> <atom:link href="http://b.cpalm.org/tag/tomatovpn/feed/" rel="self" type="application/rss+xml" /><link>http://b.cpalm.org</link> <description>馬魯酷+單車+Linux+PSP+3DS+PSVita</description> <lastBuildDate>Mon, 05 Dec 2011 08:34:51 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>TomatoUSB build 52 更新札記</title><link>http://b.cpalm.org/2010/11/tomatousb-build-52-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomatousb-build-52-%25e6%259b%25b4%25e6%2596%25b0%25e6%259c%25ad%25e8%25a8%2598</link> <comments>http://b.cpalm.org/2010/11/tomatousb-build-52-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/#comments</comments> <pubDate>Tue, 09 Nov 2010 23:26:26 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[ASUS RT-N16]]></category> <category><![CDATA[TomatoUSB]]></category> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoUSB]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=841</guid> <description><![CDATA[tomatoUSB build 52 更新札記 在更新之前，要先看一下 Change Log, 看完之後，再看 know issue: Change Log: Build 52 &#8211; 10/15/2010 Changes common for kernel 2.4 and kernel 2.6 based builds: 1.Fixed WAN Up script not being executed (在 build 51 是壞掉的). 2.Fixed obtaining DHCP lease from Corbina Beeline and possibly other ISPs (在 build 51 是壞掉的). 3.Fixed DHCP renewal [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://tomatousb.org/">tomatoUSB</a> build 52 更新札記</p><p><br
class="spacer_" /></p><p>在更新之前，要先看一下 Change Log, 看完之後，再看 know issue:</p><p>Change Log:</p><h2 id="toc0">Build 52 &#8211; 10/15/2010</h2><p><strong>Changes common for kernel 2.4 and kernel 2.6 based builds:</strong></p><ul><li>1.Fixed WAN Up script not being executed (在 build 51 是壞掉的).</li><li>2.Fixed obtaining DHCP lease from Corbina Beeline and possibly other ISPs (在 build 51 是壞掉的).</li><li>3.Fixed DHCP renewal processing to not replace the default gateway and DNS servers for PPTP/L2TP connections.</li><li>4.Fixed errors in routing for PPTP/L2TP connections.</li><li>5.Added "Use Default Gateway on Remote Network" option for PPTP/L2TP  connection types (turned on by default). Turn it off to use gateway  obtained via DHCP for internet routing, and only use PPTP/L2TP gateway  for VPN subnet (custom routing may be required in case if VPN network  contains multiple subnets).</li><li>6.Resolve sporadic PPPoE disconnect issues with some ISPs.</li><li>7.Allow to configure custom TTL values in the Web GUI.<span
id="more-841"></span></li><li>8.Make sure PPTP/L2TP is gracefully disconnected after firmware  upgrades and after restoring configuration to prevent connection  problems after reboot.</li><li>9.Size optimization of some large applications.</li><li>10.Software updates: PPTP kernel driver 0.8.5, Busybox 1.17.3.</li><li>Cosmetics.</li></ul><p><strong>Kernel 2.6-based builds only (beta23):</strong></p><ul><li>1.Fixed Mini build for Netgear routers with 4MB flash (WNR2000v2,  WNR3500v2), removed RIPv1/v2 routing from Mini build due to Netgear size  restrictions, added JFFS to Mini build to make use of some otherwise  wasted flash space.</li><li>2.Fixed flashing all supported Netgear routers back to OEM firmware.</li><li>3.Media server: removed some rare and obsolete demuxers to reduce size, reduced Mini DLNA memory usage.</li><li>4.Minor backports from upstream 2.6 kernel.</li></ul><p><strong>Known issues with this build:</strong><br
/> Please read the important notes in the announcement post to avoid or resolve potential issues when upgrading to this version.</p><p><br
class="spacer_" /></p><p>Know Issue:</p><p><strong>NOTES</strong>:</p><ol><li>1.When upgrading <span
style="color: #ff0000;">Netgear routers</span> <strong>from previous build 51</strong>, you will get an error message "<em>Error writing fake Netgear CRC</em>".  Don&#8217;t worry about it &#8211; just wait for a couple minutes for router to  reboot, and the new firmware will be loaded anyway, regardless of this  error.</li><li>2.A few new options are now automatically added to the default Dnsmasq  configuration file, so if you have the same options in the Dnsmasq  Custom Configuration box, you need to remove them to avoid errors  starting Dnsmasq. The new options are:<ul><li> log-async</li><li> all-servers (&lt;- you can still override it with "strict-order" option in Custom Configuration box)</li><li> cache-size (&lt;- DNS Cache Size is now configurable via GUI)</li></ul></li></ol><p><br
class="spacer_" /></p><p>下載:</p><p><a
href="http://tomatousb.org/download">tomatoUSB download</a></p><p>快速下載(Ausu RT-N16):</p><p><a
href="https://downloads.sourceforge.net/project/tomatousb/Experimental%20%28beta%29/K26-MIPSR2/tomato-K26USB-1.28.9052MIPSR2-beta23-vpn3.6.rar?r=http%3A%2F%2Ftomatousb.org%2Fdownload&amp;ts=1289343740&amp;use_mirror=ncu">tomatoUSB Build 52 VPN 版本<br
/> </a></p><p><br
class="spacer_" /></p><p>1. 解開壓縮檔找到 tomato-K26USB-1.28.9052MIPSR2-beta23-vpn3.6.<strong><span
style="color: #3366ff;">trx</span></strong></p><p>改成 tomato-K26USB-1.28.9052MIPSR2-beta23-vpn3.6.<strong><span
style="color: #ff0000;">bin</span></strong></p><p><br
class="spacer_" /></p><p>2.連到 http://192.168.1.1 ，找到 Administration -&gt; Upgrade 開始進行 web gui 的 更新作業，上傳剛才改名的 .bin 檔。 (注意: 有個選項: After flashing, erase all data in NVRAM memory，請<span
style="color: #ff0000;">不要</span>勾選，這個會清除你 NVRAM 的設定記憶喔。)</p><p><br
class="spacer_" /></p><p>3.在 know issue 有提到 如果是 Netgear routers 才會有錯誤發生，請不要擔心，等候 AP 重新開完機之後即可。(ASUS RT-N16 不是 Netgear routers ，所以請不要擔心。)</p><p><br
class="spacer_" /></p><p>4.看到 Image successfully flashed 要再等個 50 幾秒，請耐心等候，等到 秒數變成 Continue 的按鈕，然後按下去就對了。</p><p><br
class="spacer_" /></p><p>5. 再到 About 檢查一下版本是否為 Tomato Firmware v1.28.9052 MIPSR2-beta23 K26 USB vpn3.6， 如果是，那就代表您更新完成了。</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/11/tomatousb-build-52-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Reverse SSH 從家中 PC 反向連回公司 PC 的 SSHD</title><link>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reverse-ssh-%25e5%25be%259e%25e5%25ae%25b6%25e4%25b8%25ad-pc-%25e5%258f%258d%25e5%2590%2591%25e9%2580%25a3%25e5%259b%259e%25e5%2585%25ac%25e5%258f%25b8-pc-%25e7%259a%2584-sshd</link> <comments>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/#comments</comments> <pubDate>Tue, 20 Jul 2010 00:05:16 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[軟體]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Port Forward]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[Reserve SSH]]></category> <category><![CDATA[SSH]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=572</guid> <description><![CDATA[參考了 哇哇 的文章 :  http://portable.easylife.tw/2043 於是有了下列筆記產生。 安裝 Copssh 3.1.1 http://sourceforge.net/projects/sereds/files/Copssh/3.1.1/Copssh_3.1.1_Installer.zip/download 1.將 Copssh_3.1.1_Installer.zip 解壓縮後執行安裝 2.我的安裝路徑在 C:\Apps\ICW\ , 接下來 SvcCOPSSH 服務帳號的密碼(可自訂)，直接按下一步繼續然後完成安裝之前，會彈一個警告視窗說 Copssh 預設是不會有任意使用者可以登入，必須要啟動使用者。 接下來 (1. Active User) -&#62; 選擇 Administrator -&#62; /bin/false， 因為不用登入所以選 /bin/false，如果要用 winscp 傳檔案就改成 /bin/bash，所以這樣子就可以了。 接下是輸入 PassPhrase 。 終於完成了。 接下來 WINDOWS 7 的警告，可以忽略不用管它。 3.由於 Copssh 自動幫我們建立的 私鑰 及 公鑰，似乎是比較高等級的加密演算法(DES-EDE3-CBC)，故 myentunnel 會有使用上的問題，所以另外使用 puttygen.exe，重新建立 公鑰給 Copssh，私鑰給 myentunnel。 [...]]]></description> <content:encoded><![CDATA[<p>參考了 哇哇 的文章 :  http://portable.easylife.tw/2043</p><p>於是有了下列筆記產生。</p><p>安裝 Copssh 3.1.1</p><p>http://sourceforge.net/projects/sereds/files/Copssh/3.1.1/Copssh_3.1.1_Installer.zip/download</p><p>1.將 Copssh_3.1.1_Installer.zip 解壓縮後執行安裝</p><p>2.我的安裝路徑在 C:\Apps\ICW\ , 接下來 SvcCOPSSH 服務帳號的密碼(可自訂)，直接按下一步繼續然後完成安裝之前，會彈一個警告視窗說 Copssh 預設是不會有任意使用者可以登入，必須要啟動使用者。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/0.Activation_User.png"><img
class="alignnone size-full wp-image-575" title="0.Activation_User" src="http://b.cpalm.org/wp-content/uploads/2010/07/0.Activation_User.png" alt="" width="234" height="197" /></a><span
id="more-572"></span></p><p>接下來 (1. Active User) -&gt; 選擇 Administrator -&gt; /bin/false， 因為不用登入所以選  /bin/false，如果要用 winscp 傳檔案就改成 /bin/bash，所以這樣子就可以了。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-1.Activation_User.png"><img
class="alignnone size-full wp-image-576" title="1-1.Activation_User" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-1.Activation_User.png" alt="" width="513" height="399" /></a></p><p>接下是輸入 PassPhrase 。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-2.Activation_User_Passphrase.png"><img
class="alignnone size-full wp-image-577" title="1-2.Activation_User_Passphrase" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-2.Activation_User_Passphrase.png" alt="" width="513" height="399" /></a></p><p>終於完成了。<br
class="spacer_" /></p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-3.Activation_User_Done.png"><img
class="alignnone size-full wp-image-578" title="1-3.Activation_User_Done" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-3.Activation_User_Done.png" alt="" width="443" height="178" /></a></p><p>接下來 WINDOWS 7 的警告，可以忽略不用管它。<br
class="spacer_" /></p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/1-4.Activation_User_Comp_Warn.png"><img
class="alignnone size-full wp-image-579" title="1-4.Activation_User_Comp_Warn" src="http://b.cpalm.org/wp-content/uploads/2010/07/1-4.Activation_User_Comp_Warn.png" alt="" width="434" height="356" /></a></p><p>3.由於 Copssh 自動幫我們建立的 私鑰 及 公鑰，似乎是比較高等級的加密演算法(DES-EDE3-CBC)，故 myentunnel 會有使用上的問題，所以另外使用 puttygen.exe，重新建立 公鑰給 Copssh，私鑰給 myentunnel。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/Couldnt_Load_Private_Key.png"><img
class="alignnone size-full wp-image-581" title="Couldnt_Load_Private_Key" src="http://b.cpalm.org/wp-content/uploads/2010/07/Couldnt_Load_Private_Key.png" alt="" width="482" height="178" /></a></p><p>4.用 puttygen.exe 產生 公鑰及私鑰，將公鑰(綠色框框)複製到 C:\Apps\ICW\home\Administrator\.ssh\authorized_keys 並取代原先的內容，然後再選 Save Private Key(黃色框框) 把檔案存成 *-keyfile.ppk (* 字是指 myentunnel profile name) 給 myentunnel 使用。Key Phassphrase (紅色框框) 請務必要輸入，因為會用到及安全性因素。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2010/07/puttygen_usage.png"><img
class="alignnone size-full wp-image-582" title="puttygen_usage" src="http://b.cpalm.org/wp-content/uploads/2010/07/puttygen_usage.png" alt="" width="493" height="477" /></a><br
class="spacer_" /></p><p>5.NB(公司) 的 myentunnel 的設定: 在 tunnel -&gt; Remote 輸入 192.168.111.200:5577:10.11.22.33:22 -&gt; Save 即可。</p><p>6.Server 端: 會出現 (192.168.111.200:5577  &lt;- 這個不會出現在 SERVER上 )  -&gt; 0.0.0.0:5577 (Listen) 的部份，代表已成功將公司 PC 的 Copssh 的服務對應到家中的 Server 上。</p><p>7.與 Server端同網段的 PC 的 myentunnel 的設定: Settting -&gt; Server: 192.168.111.200 , Port: 5577 ,Username : Administrator(使用者名稱大小寫請注意), Passphrase: 就看你高興囉，但是這個一定要設。 再來切換到 Tunnel -&gt; Local -&gt; 9911:10.11.22.44:3389 (這是你要遙控的 NB 的 IP) -&gt; Save 即可。</p><p>PS. SSHD Server (公司端) 跟被遙控的 PC 不可以是同一台。為什麼不能？目前無解。但是，就是不能同一台，如果有人有答案，可以跟我分享嗎？</p><p>8.再來用遠端桌面連線輸入 127.0.0.1:9911 即可連線。</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/07/reverse-ssh-%e5%be%9e%e5%ae%b6%e4%b8%ad-pc-%e5%8f%8d%e5%90%91%e9%80%a3%e5%9b%9e%e5%85%ac%e5%8f%b8-pc-%e7%9a%84-sshd/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>建立 openvpn server &amp; client key 給 tomatoVPN 使用</title><link>http://b.cpalm.org/2010/07/create-openvpn-server-client-key-for-tomatovpn-use/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-openvpn-server-client-key-for-tomatovpn-use</link> <comments>http://b.cpalm.org/2010/07/create-openvpn-server-client-key-for-tomatovpn-use/#comments</comments> <pubDate>Thu, 08 Jul 2010 11:21:52 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[Asus WL-520GU]]></category> <category><![CDATA[Buffalo WHR-G54S]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[openvpn]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=549</guid> <description><![CDATA[先安裝 lzo #cd /root #wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.03.tar.gz #tar zxvf  lzo-2.03.tar.gz #cd lzo-2.03 #./configure &#38;&#38; make &#38;&#38; make install 再安裝 openvpn 2.1.1 (lzo 必須要先安裝，不然下面的安裝會出錯) #cd /root #wget http://openvpn.net/release/openvpn-2.1.1.tar.gz #tar zxvf openvpn-2.1.1.tar.gz #cd openvpn-2.1.1 #./configure &#38;&#38; make &#38;&#38; make install # cd /root # cp -rv openvpn-2.1.1/easy-rsa ./ (如果是用 tar 方式安裝，則 easy-rsa 會在 openvpn-2.1.1 的資料夾裡。) # cd  ~/easy-rsa [...]]]></description> <content:encoded><![CDATA[<p>先安裝 lzo</p><p>#cd /root<br
/> #wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.03.tar.gz<br
/> #tar zxvf  lzo-2.03.tar.gz<br
/> #cd lzo-2.03<br
/> #./configure &amp;&amp; make &amp;&amp; make install</p><p>再安裝 openvpn 2.1.1 (lzo 必須要先安裝，不然下面的安裝會出錯)<br
/> #cd /root<br
/> #wget http://openvpn.net/release/openvpn-2.1.1.tar.gz<br
/> #tar zxvf openvpn-2.1.1.tar.gz<br
/> #cd openvpn-2.1.1<br
/> #./configure &amp;&amp; make &amp;&amp; make install</p><p><span
id="more-549"></span><br
class="spacer_" /></p><p># cd /root</p><p># cp -rv openvpn-2.1.1/easy-rsa ./</p><p>(如果是用 tar 方式安裝，則 easy-rsa 會在 openvpn-2.1.1 的資料夾裡。)</p><p># cd  ~/easy-rsa</p><p># vi vars</p><p>export KEY_COUNTRY="TW"</p><p>export KEY_PROVINCE="Taiwan"</p><p>export KEY_CITY="Taipei"</p><p>export KEY_ORG="TomatoVPN"</p><p>export KEY_EMAIL="<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>"</p><p><br
class="spacer_" /></p><p># source ./vars</p><p># ./clean-all</p><p># ./build-ca<br
/> (以下為問答交談的畫面，請注意輸入，因為不能使用刪除鍵。)</p><blockquote><p>Country Name (2 letter code) [TW]:</p><p>State or Province Name (full name) [Taiwan]:</p><p>Locality Name (eg, city) [Taipei]:</p><p>Organization Name (eg, company) [TomatoVPN]:</p><p>Organizational Unit Name (eg, section) []:Home</p><p>Common Name (eg, your name or your server&#8217;s hostname) [TomatoVPN CA]:</p><p>Name []:Home</p><p>Email Address [<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>]:</p></blockquote><p>&#8212;&#8211;[建立 vpn server 的相關 key 組]&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p><p># ./build-key-server vpnsrv</p><p>&#8230;&#8230;</p><blockquote><p>Country Name (2 letter code) [TW]:</p><p>State or Province Name (full name) [Taiwan]:</p><p>Locality Name (eg, city) [Taipei]:</p><p>Organization Name (eg, company) [TomatoVPN]:</p><p>Organizational Unit Name (eg, section) []:Home</p><p>Common Name (eg, your name or your server&#8217;s hostname) [vpnsrv]:</p><p>Name []:Home</p><p>Email Address [<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>]:</p></blockquote><p>&#8230;&#8230;.. (以下兩個都按 Enter 跳過。)</p><p>A challenge password []:</p><p>An optional company name []:</p><p>&#8230;&#8230;..<br
/> (以下兩個都回答 y 即可)</p><p>Sign the certificate? [y/n]:y</p><p>1 out of 1 certificate requests certified, commit? [y/n]y</p><p>Write out database with 1 new entries</p><p>Data Base Updated</p><p>&#8212;&#8212;[dh1024]&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p><p># ./build-dh</p><p>&#8212;&#8211;[以下為  VPN SERVER 填寫到 tomatovpn 對應的欄位---------------------------------------------</p><p>Certificate Authority -&gt; 開啟 ca.crt 並全選-&gt;複製 -&gt; 貼上</p><p>Server Certificate -&gt; 開啟 vpnsrv.crt 並全選-&gt;複製 -&gt; 貼上</p><p>Server Key -&gt; 開啟 vpnsrv.key 並全選-&gt;複製 -&gt; 貼上</p><p>Diffie Hellman parameters -&gt;開啟 dh1024.pem 並全選-&gt;複製 -&gt; 貼上</p><p>================================================================</p><p>[Client-Part]</p><p># cd /tmp</p><p># cp -rv easy-key client</p><p>( If you want to copy second client key.) -&gt; 非必要步驟</p><p>(# cp -rv easy-key client1) -&gt; 非必要步驟</p><p># cd client</p><p># source ./vars</p><p># ./build-key vpnclient1</p><p>Generating a 1024 bit RSA private key</p><p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;++++++</p><p>&#8230;&#8230;&#8230;&#8230;++++++</p><p>writing new private key to &#8216;vpnclient1.key&#8217;</p><p>&#8212;&#8211;</p><p>You are about to be asked to enter information that will be incorporated</p><p>into your certificate request.</p><p>What you are about to enter is what is called a Distinguished Name or a DN.</p><p>There are quite a few fields but you can leave some blank</p><p>For some fields there will be a default value,</p><p>If you enter &#8216;.&#8217;, the field will be left blank.</p><p>&#8212;&#8211;</p><blockquote><p>Country Name (2 letter code) [TW]:</p><p>State or Province Name (full name) [Taiwan]:</p><p>Locality Name (eg, city) [Taipei]:</p><p>Organization Name (eg, company) [TomatoVPN]:</p><p>Organizational Unit Name (eg, section) []:</p><p>Common Name (eg, your name or your server&#8217;s hostname) [vpnclient1]:</p><p>Name []:</p><p>Email Address [<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>]:</p></blockquote><p><br
class="spacer_" /></p><p>Please enter the following &#8216;extra&#8217; attributes</p><p>to be sent with your certificate request</p><p>(以下兩個可以按 Enter 跳過)</p><p>A challenge password []:</p><p>An optional company name []:</p><p>Using configuration from /tmp/client/openssl.cnf</p><p>Check that the request matches the signature</p><p>Signature ok</p><p>The Subject&#8217;s Distinguished Name is as follows</p><blockquote><p>countryName           :&#8217;TW&#8217;</p><p>stateOrProvinceName   : &#8216;Taiwan&#8217;</p><p>localityName          : &#8216;Taipei&#8217;</p><p>organizationName      :PRINTABLE:&#8217;TomatoVPN&#8217;</p><p>commonName            :PRINTABLE:&#8217;vpnclient1&#8242;</p><p>emailAddress          :IA5STRING:&#8217;<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>&#8217;</p></blockquote><p>Certificate is to be certified until Jul 19 11:17:27 2019 GMT (3650 days)</p><p>(以下兩項也是都回答 y 即可)</p><p>Sign the certificate? [y/n]:y</p><p>1 out of 1 certificate requests certified, commit? [y/n]y</p><p>Write out database with 1 new entries</p><p>Data Base Updated</p><p>&#8212;[到這裡為止，該做的 KEY 都做完了。]&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p><p>(接下來要 sign vpnclient1 的 key 了)</p><p># cp keys/vpnclient1.csr ../easy-rsa/keys/</p><p># cp keys/vpnclient1.key ../easy-rsa/keys/</p><p># cd ../easy-rsa</p><p># source ./vars</p><p># ./sign-req vpnclient1</p><p>Using configuration from /tmp/easy-rsa/openssl.cnf</p><p>Check that the request matches the signature</p><p>Signature ok</p><p>The Subject&#8217;s Distinguished Name is as follows</p><blockquote><p>countryName           :PRINTABLE:&#8217;TW&#8217;</p><p>stateOrProvinceName   :PRINTABLE:&#8217;Taiwan&#8217;</p><p>localityName          :PRINTABLE:&#8217;Taipei&#8217;</p><p>organizationName      :PRINTABLE:&#8217;TomatoVPN&#8217;</p><p>commonName            :PRINTABLE:&#8217;vpnclient1&#8242;</p><p>emailAddress          :IA5STRING:&#8217;<span
class="mh-email">y<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=d4hFhwl4Trx1fq6ZVe2xFw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.com</span>&#8217;</p></blockquote><p>Certificate is to be certified until Jul 19 11:20:48 2019 GMT (3650 days)</p><p>(以下兩個回答 y 即可)</p><p>Sign the certificate? [y/n]:y</p><p>1 out of 1 certificate requests certified, commit? [y/n]y</p><p>Write out database with 1 new entries</p><p>Data Base Updated</p><p>======================================================================</p><p>ca ca.crt<br
/> cert vpnclient1.crt<br
/> key vpnclient1.key</p><p>以上3個為 vpnclient 的 KEY。</p><p>======================================================================</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/07/create-openvpn-server-client-key-for-tomatovpn-use/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>tomato1.27vpn3.6 更新札記</title><link>http://b.cpalm.org/2010/04/tomato1-27vpn3-6-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomato1-27vpn3-6-%25e6%259b%25b4%25e6%2596%25b0%25e6%259c%25ad%25e8%25a8%2598</link> <comments>http://b.cpalm.org/2010/04/tomato1-27vpn3-6-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/#comments</comments> <pubDate>Thu, 08 Apr 2010 17:03:06 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[Asus WL-520GU]]></category> <category><![CDATA[Buffalo WHR-G54S]]></category> <category><![CDATA[firmware]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=489</guid> <description><![CDATA[如果你尚未更新至 tomato 的韌體，請參照下面網址來更新: http://code.google.com/p/twtomato/w/list 以下更新方法適用 已為 tomatovpn 或已是 tomato 的韌體適用: tomatoVPN官網 使用機型: Buffalo WHR-G54S 更新用的檔案: tomatovpn-1.27vpn3.6.7z 裡的 tomato.trx 更名為 tomato.bin 下載網址:  點這裡下載檔案名稱: tomatovpn-1.27vpn3.6.7z &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 使用機型: Asus WL-520GU 更新用的檔案: tomatovpn-ND-1.27vpn3.6.7z 裡的 tomato-ND.trx 下載網址:  點這裡下載 檔案名稱: tomatovpn-ND-1.27vpn3.6.7z 更新步驟: 1.連到後台 192.168.x.x 的 ip 2. 找到左邊的 Administration -&#62; Upgrade  -&#62; Upgrade Firmware 的頁面 3. 點擊 「瀏覽」，依上頭的機型並選擇對應的檔案，然後點 Upgrade. 4. 依畫面指示，等候1分多鐘，幾乎快 [...]]]></description> <content:encoded><![CDATA[<p>如果你尚未更新至 tomato 的韌體，請參照下面網址來更新:</p><p><a
href="http://code.google.com/p/twtomato/w/list" target="_blank">http://code.google.com/p/twtomato/w/list</a></p><p><span
style="font-size: medium;"><strong>以下更新方法適用 已為 tomatovpn 或已是 tomato 的韌體適用:</strong></span></p><p><a
href="http://tomatovpn.keithmoyer.com/" target="_blank">tomatoVPN官網</a></p><p>使用機型: Buffalo WHR-G54S <br
/>更新用的檔案: tomatovpn-1.27vpn3.6.7z 裡的 tomato.<strong><span
style="color: #0000ff;">trx</span></strong> <strong>更名為 tomato.<span
style="color: #ff0000;">bin</span> </strong></p><p>下載網址:  點<a
href="http://tomatovpn.tomatomod.de/release/1.27vpn3.6/" target="_blank">這裡</a>下載<br
/>檔案名稱: tomatovpn-1.27vpn3.6.7z<span
id="more-489"></span></p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>使用機型: Asus WL-520GU</p><p>更新用的檔案: tomatovpn-ND-1.27vpn3.6.7z 裡的 tomato-ND.trx</p><p>下載網址:  點<a
href="http://tomatovpn.tomatomod.de/release/1.27vpn3.6/" target="_blank">這裡</a>下載</p><p>檔案名稱: tomatovpn-ND-1.27vpn3.6.7z</p><p>更新步驟:</p><p>1.連到後台 192.168.x.x 的 ip</p><p>2. 找到左邊的 Administration -&gt; Upgrade  -&gt; Upgrade Firmware 的頁面</p><p>3. 點擊 「瀏覽」，依上頭的機型並選擇對應的檔案，然後點 Upgrade.</p><p>4. 依畫面指示，等候1分多鐘，幾乎快 2 分鐘了。反正不要中斷或按重整或中斷電源，這些都是不可以做的事情。</p><p>5. 待設定畫面恢復後，進入檢查設定並啟動未啟動的設定。</p><p>=====================================================</p><p>tomatoVPN 的 change log 看下面官方的 BLOG 吧。</p><p><a
href="http://tomatovpn.keithmoyer.com/2010/01/127vpn35.html" target="_blank">http://tomatovpn.keithmoyer.com/2010/01/127vpn35.html</a></p><ul><li>Moved to Tomato 1.27 baseline<ul><li><small><a
href="http://polarcloud.com/tomato_126">Tomato 1.26 changelog</a></small></li><li><small><a
href="http://polarcloud.com/tomato_127">Tomato 1.27 changelog</a></small></li></ul></li><li><span
style="background-color: #0000ff;">Upgraded  to OpenVPN 2.1.1 </span><ul><li><small><a
href="http://openvpn.net/index.php/open-source/documentation/change-log/71-21-change-log.html">OpenVPN  changelog</a></small></li></ul></li><li>Fixed  "exclusive" option for accepting DNS</li><li>Omit key/certs that aren&#8217;t  filled in in the GUI<ul><li>This should allow people to create user/pass  only configs &#8211; likely to be added to the GUI in the future</li></ul></li><li>Fix  some TAP connection issues</li><li>Option to <em>not</em> leave existing  default gateway in place while VPN is running</li><li>Option is now to  start VPN with WAN, not just with router<ul><li>If wan goes down and  back up, VPN service will be stopped and restarted</li></ul></li><li>"Poll  Interval" option in GUI to periodically check if the VPN is running,  and restart it if not.</li><li>Various code cleanups/improvements and  adaptations to the updated Tomato components</li></ul><p>=====================================================</p><p>offical tomato change log as below:</p><p><a
href="http://www.polarcloud.com/tomato_127" target="_blank">http://www.polarcloud.com/tomato_127</a><br
/>Tomato 1.27<br
/>Submitted by jon on Sun, 2009-11-29 11:44</p><p>Version 1.27</p><p> * Fix DDNS "-1&#8243; error when service used HTTPS.</p><p>Tomato 1.26<br
/>Submitted by jon on Thu, 2009-11-26 22:43</p><p>Version 1.26</p><p> * Allow a different port to be entered in Basic:Network:Static DNS (enter as "ip:port"). Be aware that dnsmasq must act as the DNS server (the default setting) when not using the normal port 53.<br
/> * Allow DHCP to serve the user-entered gateway (in Basic:Network) if the option in Advanced:DHCP is enabled.<br
/> * Do not start miniupnpd early to avoid warning messages.<br
/> * Update Australian DST (need to re-select), add Darwin, Brisbane TZ. Thanks to Peter O. for the info.<br
/> * Avoid double loading of tomato.css<br
/> * Fix possible null dereference in sendpage<br
/> * Collapsed all menus. For the old look, set nvram: "web_mx=status,bwm,tools"<br
/> * Obscured some key/password fields when not in focus.<br
/> * Accept more than two MAC addresses per IP address (ex: one IP for a laptop either wired or wireless [one at a time]). Note: Some computers may not like seeing the same IP unless it&#8217;s restarted.<br
/> * Added LED options back in Admin:Buttons/LED.<br
/> * Added ID for WLA2-G54L, TrueMobile 2300 thanks to Nick B. and David J.<br
/> * Added EditDNS thanks to Keith M.<br
/> * Added UTC+4:30 Kabul time zone.<br
/> * Fixed port set validation allowed more than what could be handled.<br
/> * Allow rstats to log if WAN port is used for LAN.<br
/> * Update dnsmasq to 2.51, miniupnpd 1.4, busybox 1.14.4, matrixssl 1.8.8.<br
/> =====================================================</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2010/04/tomato1-27vpn3-6-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tomato 1.25 vpn 3.4 更新札記</title><link>http://b.cpalm.org/2009/09/tomato-1-25-vpn-3-4-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomato-1-25-vpn-3-4-%25e6%259b%25b4%25e6%2596%25b0%25e6%259c%25ad%25e8%25a8%2598</link> <comments>http://b.cpalm.org/2009/09/tomato-1-25-vpn-3-4-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/#comments</comments> <pubDate>Thu, 17 Sep 2009 18:24:12 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[openvpn]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoVPN]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=399</guid> <description><![CDATA[Tomato 1.25 vpn 3.4 更新札記 此版更新後，原 sshd 的部份，會多出 remote port。 如果用 ap 做 gateway 的話，請勾選 remote port 並指定 port number。 如果不是用 ap 做 gateway 的話，請不要勾選 remote port。謝謝。 官網: http://tomatovpn.keithmoyer.com/2009/08/125vpn34-release.html 至於新增什麼功能，請看下面: Upgraded to OpenVPN 2.1rc19 AES speed improvements (Thanks fyellin!) More "Accept DNS configuration" options (strict/exclusive) Add (dynamic) HOWTO links to GUI for key generation TLS [...]]]></description> <content:encoded><![CDATA[<p>Tomato 1.25 vpn 3.4 更新札記</p><p>此版更新後，原 sshd 的部份，會多出 remote port。</p><p>如果用 ap 做 gateway 的話，請勾選 remote port 並指定 port number。</p><p>如果不是用 ap 做 gateway 的話，請不要勾選 remote port。謝謝。</p><p>官網: http://tomatovpn.keithmoyer.com/2009/08/125vpn34-release.html</p><p>至於新增什麼功能，請看下面:</p><ul><li>Upgraded to OpenVPN 2.1rc19</li><li>AES speed improvements (Thanks fyellin!)</li><li>More "Accept DNS configuration" options (strict/exclusive)</li><li>Add (dynamic) HOWTO links to GUI for key generation</li><li>TLS renegotiation time setting</li><li>WINS options pushed/accepted along with other DNS options</li><li>Option to not push server LAN route to clients</li><li>Option to leave comp-lzo directive out of confi altogether (now "Disable", "None" is equivalent to the old "Disable")</li><li>Non-VPN changes (also sent to Jon for inclusion in Tomato)<ul><li>Multiple MAC addresses can share an IP for Static DHCP</li><li>EditDNS added to Dynamic DNS providers</li></ul></li><li>Various code cleanups/improvements</li></ul> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2009/09/tomato-1-25-vpn-3-4-%e6%9b%b4%e6%96%b0%e6%9c%ad%e8%a8%98/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用</title><link>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e7%2594%25a8-puttygen-exe-%25e5%2581%259a-key-%25e7%25b5%25a6-myentunneltomato-sshd-%25e4%25bd%25bf%25e7%2594%25a8</link> <comments>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/#comments</comments> <pubDate>Wed, 05 Aug 2009 00:00:50 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[ASUS RT-N16]]></category> <category><![CDATA[TomatoUSB]]></category> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[Asus WL-520GU]]></category> <category><![CDATA[myentunnel]]></category> <category><![CDATA[Port Forward]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[puttygen]]></category> <category><![CDATA[sshd]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoUSB]]></category> <category><![CDATA[tomatoVPN]]></category> <category><![CDATA[轉埠]]></category> <guid
isPermaLink="false">http://b.cpalm.org/?p=367</guid> <description><![CDATA[用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用 1. 下載 puttygen.exe ，http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html [點我快速下載] ， 並啟動 puttygen.exe。 2.修改 Number of bits in a generated key 為 2048 → 並點 Generate。 3. 在產生 key 必須移動鼠標作為亂數的種子。 4. 等候 putty key generator 產生 public &#38; private key. 5.藍色框框: 為 public key (公鑰) tomato sshd server : Administration → Admin [...]]]></description> <content:encoded><![CDATA[<h3>用 puttygen.exe 做 key 給 myentunnel/tomato sshd 使用</h3><p>1. 下載 puttygen.exe ，http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html<br
/> <a
href="http://tartarus.org/~simon/putty-snapshots/x86/puttygen.exe">[點我快速下載]</a> ， 並啟動 puttygen.exe。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step1.jpg"><img
class="alignnone size-full wp-image-369" title="Putty_Key_Step1" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step1.jpg" alt="Putty_Key_Step1" width="483" height="470" /></a></p><p><span
id="more-367"></span><br
/> 2.修改 Number of bits in a generated key 為 2048 → 並點 Generate。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step2_bits_type.jpg"><img
class="alignnone size-full wp-image-370" title="Putty_Key_Step2_bits_type" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step2_bits_type.jpg" alt="Putty_Key_Step2_bits_type" width="483" height="470" /></a></p><p>3. 在產生 key 必須移動鼠標作為亂數的種子。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step3_move_your_cursor.jpg"><img
class="alignnone size-full wp-image-371" title="Putty_Key_Step3_move_your_cursor" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step3_move_your_cursor.jpg" alt="Putty_Key_Step3_move_your_cursor" width="483" height="470" /></a></p><p>4. 等候 putty key generator 產生 public &amp; private key.<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step4_Generateing_key.jpg"><img
class="alignnone size-full wp-image-372" title="Putty_Key_Step4_Generateing_key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step4_Generateing_key.jpg" alt="Putty_Key_Step4_Generateing_key" width="483" height="470" /></a></p><p>5.藍色框框: 為 public key (公鑰)<br
/> tomato sshd server : Administration → Admin Access → Authorized Keys 的欄位貼上。<br
/> Linux server: /home/users/.ssh/authorized_keys<br
/> 黃色框框: key comment (金鑰的註解，可註明用途及日期)<br
/> 綠色框框: key passphrase (金鑰的保護密碼，不知道密碼的人，就會無法使用。)<br
/> 紫色框框: Save Public key (儲存公開金鑰，可以不用儲存，只要有私鑰可以再度產生出來。)<br
/> 紅色框框: Save Private key (儲存私人金鑰，此金鑰極為重要，不可亂丢)</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step5_Generated_public_private_key.jpg"><img
class="alignnone size-full wp-image-373" title="Putty_Key_Step5_Generated_public_private_key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step5_Generated_public_private_key.jpg" alt="Putty_Key_Step5_Generated_public_private_key" width="483" height="470" /></a></p><p>6.Myentunnel: 請存成 keyfile.ppk , 如果有 profile ,ex: cpalm-keyfile.ppk , ( &#8211; ) 減號為檔名分隔符號。</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step6_Save_your_Key.jpg"><img
class="alignnone size-full wp-image-374" title="Putty_Key_Step6_Save_your_Key" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step6_Save_your_Key.jpg" alt="Putty_Key_Step6_Save_your_Key" width="563" height="386" /></a></p><p>7.(非必要步驟) 把產生的私鑰順便轉成 linux ssh 用的 私鑰格式。<br
/> Conversions → Export OpenSSH key → openssh.ppk 即可。<br
/> <a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step7_Save_your_Key_for_linux_ssh_use.jpg"><img
class="alignnone size-full wp-image-375" title="Putty_Key_Step7_Save_your_Key_for_linux_ssh_use" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step7_Save_your_Key_for_linux_ssh_use.jpg" alt="Putty_Key_Step7_Save_your_Key_for_linux_ssh_use" width="482" height="472" /></a></p><p>8. 在 Tomato sshd  的 authroized keys 欄位，貼入公鑰(public key) → Save → Start Now.</p><p><a
href="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys.jpg"><img
class="alignnone size-full wp-image-377" title="Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys" src="http://b.cpalm.org/wp-content/uploads/2009/08/Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys.jpg" alt="Putty_Key_Step8_Paste_your_Key_for_tomato_sshd_authorized_keys" width="579" height="328" /></a><br
/> 如欲轉載，請註明出處，謝謝。</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2009/08/%e7%94%a8-puttygen-exe-%e5%81%9a-key-%e7%b5%a6-myentunneltomato-sshd-%e4%bd%bf%e7%94%a8/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Tomato VPN 1.25vpn3.3 安裝札記</title><link>http://b.cpalm.org/2009/07/tomato-vpn-1-25vpn3-3-%e5%ae%89%e8%a3%9d%e6%9c%ad%e8%a8%98/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomato-vpn-1-25vpn3-3-%25e5%25ae%2589%25e8%25a3%259d%25e6%259c%25ad%25e8%25a8%2598</link> <comments>http://b.cpalm.org/2009/07/tomato-vpn-1-25vpn3-3-%e5%ae%89%e8%a3%9d%e6%9c%ad%e8%a8%98/#comments</comments> <pubDate>Mon, 13 Jul 2009 12:48:54 +0000</pubDate> <dc:creator>マルク</dc:creator> <category><![CDATA[硬體]]></category> <category><![CDATA[軟體]]></category> <category><![CDATA[Buffalo]]></category> <category><![CDATA[Buffalo WHR-G54S]]></category> <category><![CDATA[openvpn]]></category> <category><![CDATA[tomato]]></category> <category><![CDATA[tomatoVPN]]></category> <category><![CDATA[vpn]]></category> <guid
isPermaLink="false">http://blog.cpalm.org/?p=335</guid> <description><![CDATA[安裝環境 tomato VPN 1.25 vpn3.3 1. 請到 openvpn.net 或 openvpn.se 下載，最新 2.1 的版本來安裝。 1.1 : http://openvpn.net/index.php/open-source/downloads.html , Direct Link: http://openvpn.net/release/openvpn-2.1_rc18-install.exe 2. 根據官方HowTo的說明安裝Server部分 a. 產生各種key，利用/usr/share/doc/openvpn/examples/easy-rsa/2.0/的script &#38; bat. b.init-conifg.bat / init-conifg c. 修改vars export KEY_COUNTRY="TW" export KEY_PROVINCE="Taoyuan" export KEY_CITY="PingChenCity" export KEY_ORG="CompanyName" export KEY_EMAIL="<span
class="mh-email">m<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=hMiS-tK8ygB_xDGGrY94Sw==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=hMiS-tK8ygB_xDGGrY94Sw==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.box</span>" 2. 執行參數設定 ../vars vars.bat 3. 清除已有 Key ./clean-all clean-all.bat 4. 產生RootCA憑證 ./build-ca build-ca.bat Common [...]]]></description> <content:encoded><![CDATA[<p>安裝環境 tomato VPN 1.25 vpn3.3</p><p>1. 請到 openvpn.net 或 openvpn.se 下載，最新 2.1 的版本來安裝。<br
/> 1.1 : http://openvpn.net/index.php/open-source/downloads.html ,<br
/> Direct Link: http://openvpn.net/release/openvpn-2.1_rc18-install.exe<br
/> 2. 根據官方HowTo的說明安裝Server部分<br
/> a. 產生各種key，利用/usr/share/doc/openvpn/examples/easy-rsa/2.0/的script &amp; bat.<br
/> <span
id="more-335"></span><br
/> b.init-conifg.bat / init-conifg<br
/> c. 修改vars<br
/> export KEY_COUNTRY="TW"<br
/> export KEY_PROVINCE="Taoyuan"<br
/> export KEY_CITY="PingChenCity"<br
/> export KEY_ORG="CompanyName"<br
/> export KEY_EMAIL="<span
class="mh-email">m<a
href='http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=afOcfWC2EpANb00yztVqKQ==' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01zOU_MR-vYyFeO-PuyAmCPw==&amp;c=afOcfWC2EpANb00yztVqKQ==', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@email.box</span>"<br
/> 2. 執行參數設定<br
/> ../vars<br
/> vars.bat<br
/> 3. 清除已有 Key<br
/> ./clean-all<br
/> clean-all.bat<br
/> 4. 產生RootCA憑證<br
/> ./build-ca<br
/> build-ca.bat<br
/> Common Name 填 OpenVPN-CA 其他都預設就好<br
/> 5. 產生Server用憑證<br
/> ./build-key-server server<br
/> build-key-server.bat server<br
/> Common Name 填 server ；其他是非題就選y<br
/> 2. 偷懶法產生Client憑證<br
/> ./build-key client1 ,  common name : client1<br
/> ./build-key client2,  common name: client2<br
/> ./build-key client3,  common name: client3<br
/> 依此類推<br
/> 3. 產生Diffie Hellman parameters<br
/> ./build-dh<br
/> build-dh.bat<br
/> 4. 把ca.crt、ca.key、server.crt、server.key、dh1024.pem放到 /etc/openvpn<br
/> 5. 修改/usr/share/doc/openvpn/examples/sample-config-files/server.conf<br
/> 後放在 /etc/server.conf<br
/> 1. proto tcp<br
/> 2. push "redirect-gateway"<br
/> 3. user nobody<br
/> 4. group nogroup<br
/> 6. 把ca.crt、client1.crt、client1.key放到 第一台Client的設定檔目錄<br
/> (例如:Windows 就是在C:\Program Files\OpenVPN\config)<br
/> (Linux則在/etc/openvpn)<br
/> 7. 在client1機器上一樣把client.conf(或client.ovpn@windows)的sample檔案拿來改<br
/> (其他client自行類推)<br
/> 1. proto tcp<br
/> 2. remote [VPN主機位置] 1194 (443,1863)<br
/> 3. cert client1.crt<br
/> key client1.key<br
/> 3. 加上NAT的設定<br
/> 1. 啟動 ip forward<br
/> 修改 /etc/network/options<br
/> ip_forward=yes<br
/> 2. 設定iptable 的NAT 對應-&gt;參考資料<br
/> /sbin/iptables -t nat -A POSTROUTING -d ! 10.8.0.0/255.255.255.0 -j MASQUERADE<br
/> 3. 儲存iptable設定<br
/> mkdir /var/lib/iptables/<br
/> /etc/init.d/iptables save active<br
/> 4. 完成啦！<br
/> =====================================================================<br
/> VPN Server -<br
/> Certificate Authority &#8211; ca.crt of content from BEGIN to END.<br
/> Server Certificate &#8211; server.crt of content from BEGIN to END.<br
/> Server Key &#8211; server.key of content from BEGIN to END.<br
/> Diffie Hellman parameters &#8211; dh1024.pem of content from BEGIN to END.<br
/> Then click Save to Save above keys &amp; Certificate of content.</p><p>=====================================================================<br
/> vpn.bat of content as below:<br
/> @echo off<br
/> rem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> set ONET=10.0.0.0<br
/> set OMASK=255.0.0.0<br
/> set OGW=10.1.2.254</p><p>set VNET=192.168.1.0<br
/> set VMASK=255.255.255.0<br
/> set VGW=192.168.1.254<br
/> set VIP=192.168.1.100</p><p>route -f<br
/> route add %ONET% mask %OMASK% %OGW%<br
/> route add %VNET% mask %VMASK% %VIP%<br
/> route add 123.126.1.0 mask %VMASK% 10.1.2.3<br
/> route add 0.0.0.0 mask 0.0.0.0 %VGW%<br
/> route print<br
/> pause</p><p>rem ipconfig /flushdns<br
/> rem ipconfig /registerdns<br
/> :END</p><p>rem  10.1.2.3 &lt;&#8211;&gt; 123.126.1.2 &lt;&#8211;&gt; 192.168.1.100<br
/> rem &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br
/> =====================================================================<br
/> Proxy Setting:<br
/> 1. 在 .ovpn 或 .conf 裡加入，如下列:<br
/> ntlm auth: (for ISA 200X)</p><p>http-proxy proxy.Server 80 proxy.txt ntlm</p><p>proxy.Server : 你的公司內部的 porxy server 的ip 或 wins name。<br
/> 80 : proxy port number<br
/> proxy.txt : 這個檔案必須跟 .ovpn/.conf 放在同一個資料夾，格式: 第一行:  cpalm\usr999000 ，第二行: 密碼<br
/> ntlm : auth 的方式有 none (免認證)，basic ( ID/PW) ， ntlm (isa server 綁定 domain 的認證方式)。</p><p>basic auth: (for Squid proxy server )</p><p>http-proxy proxy.Server 3128 proxy.txt basic<br
/> =====================================================================<br
/> ===tomato VPN Web GUI setting===<br
/> =====================================================================<br
/> 1.Goto [Administration] &gt; [Scripts]  Copy below into text-box then save.</p><p>&#8212;Copy Begin&#8212;<br
/> 到 Administration -&gt; Scheduler -&gt; Custom1 -&gt; 在 command 填入下列幾行:<br
/> service vpnserver1 start<br
/> sleep 5<br
/> service vpnserver2 start<br
/> &#8212;Copy End&#8212;</p><p>2.Goto [VPN Tunneling] &gt; [Server] &gt; [Server 1]<br
/> Basic:<br
/> Start with Router : Checked (打勾)<br
/> Interface Type: TAP<br
/> Protocol: TCP<br
/> Port: 443<br
/> Firewall : Automatic<br
/> Authorization Mode: Static Key<br
/> Then click [Save] to save above settings.<br
/> Advanced:<br
/> Respond to DNS: Checked (打勾)<br
/> Encryption cipher : Use Default<br
/> Compression : Disabled<br
/> Custom Configuration: Leave Blank<br
/> Then click [Save] to save above settings.<br
/> Keys:<br
/> Static Key generate command as below and open key.txt then copy content to keys of textbox.<br
/> "C:\Program Files\OpenVPN\bin\openvpn.exe" &#8211;pause-exit &#8211;verb 3 &#8211;genkey &#8211;secret "C:\Program Files\OpenVPN\config\key.txt"<br
/> Then click [Save] to save above settings.<br
/> 3. Click [Start Now] to active VPN server 1.</p> ]]></content:encoded> <wfw:commentRss>http://b.cpalm.org/2009/07/tomato-vpn-1-25vpn3-3-%e5%ae%89%e8%a3%9d%e6%9c%ad%e8%a8%98/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
