升级WRT54GS V1.1 DD-WRT dd-wrt.v24-13064_VINT_openvpn_jffs_small.bin

| No Comments | No TrackBacks
因为dd-wrt自带的ssh(dropbear提供)功能不完整,因此想安装openssh-client,前提是支持Jffs或者USB等。

我的WRT54GS v1.1 有8M的ROM,之前刷的是标准版,jffs功能是不支持的,因此需要重新刷ROM。

下载的ROM是dd-wrt.v24-13064_VINT_openvpn_jffs_small.bin,使用之前的升级办法通过ssh上去操作,总是失败,无法正确升级,后来一怒之下通过web来刷,成功了~

刷好后就是安装相关pkg了:

ipkg install openssh-client

root@DD-WRT:/jffs/tmp/ipkg# ipkg install openssh-client

Downloading http://downloads.openwrt.org/whiterussian/packages/libopenssl_0.9.8d-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking libopenssl...Done.
Configuring libopenssl...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/zlib_1.2.2-2_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
Unpacking zlib...Done.
Configuring zlib...Done.

Downloading http://downloads.openwrt.org/whiterussian/packages/openssh-client_4.4p1-1_mipsel.ipk ...
Connecting to downloads.openwrt.org (78.24.191.177:80)
Done.
ipkg_install_file: ERROR: openssh-client depends on the following uninstalled programs:
         libopenssl zlib
ipkg_install_file: You may want to use `ipkg install' to install these.
ipkg_get_install: ERROR: Failed to install /jffs/tmp/ipkg/openssh-client_4.4p1-1_mipsel.ipk
ipkg_get_install: I'll leave it there for you to try a manual installatio

虽然自动安装了相关依赖,但后面确实失败,手工下载后然后再安装:
ipkg -force-depends install openssh-client_4.4p1-1_mipsel.ipk

注意参数 -force-depends 的位置,安装成功。

/jffs/usr/bin/ssh -NfT -D 192.168.1.1:1080 root@192.168.1.1   --    通过本地的ssh服务做代理 
/jffs/usr/bin/ssh -NfT -D 192.168.1.1:1080 xxxx@remotehost    --   通过远程服务器做代理

其实我想的是直接由路由器提供socks代理,不止是给局域网内的其它机器。


第一种实际就是想把路由器作为一个socks服务器,不需要client再通过putty等程序进行设置。
第二种当然也是做代理,而且是透明的使用远程的服务器做ssh代理。

不过实际测试的时候,虽然设置了端口转发,但从WAN口来的请求总是无法连接,这个会是啥原因?有些奇怪。





--EOF--

No TrackBacks

TrackBack URL: http://www.guduo.net/cgi-bin/mt/mt-tb.cgi/314

Leave a comment

Pages

May 2016

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by 谷多 published on July 25, 2010 4:44 PM.

2010.07.22 迈入三周岁~~ was the previous entry in this blog.

杂事小记 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.