如何将 ssh tunnel 建立在 openwrt 路由器里面?

2016 年 6 月 2 日
 luofeiyu
每次我都是用这个命令在本机上建立一个到 remote server 的隧道。

ssh -D 127.0.0.1:1080 root@my_vps.ip

现在,我的本机前面加了个路由器,运行 openwrt, 我想在路由器上建立这个隧道。
ssh 登录路由器后,
<pre><code>
vim /etc/config/sshtunnel
config 'tunnelL' 'server_http'
option 'server' 'home'
option 'remoteaddress' 'vps_ip'
option 'remoteport' '22'
option 'localaddress' '127.0.0.1'
option 'localport' '1080'
<pre></code>
设置 firefox 插件里面的地址 192.168.1.1 (路由器的地址),
发现,没有建立隧道,请问哪里有问题?
1441 次点击
所在节点    OpenWrt
5 条回复
luofeiyu
2016 年 6 月 2 日
<pre><code>
vim /etc/config/sshtunnel
config 'tunnelL' 'server_http'
option 'server' 'home'
option 'remoteaddress' 'vps_ip'
option 'remoteport' '22'
option 'localaddress' '127.0.0.1'
option 'localport' '1080'
</code> </pre>
luofeiyu
2016 年 6 月 2 日
`vim /etc/config/sshtunnel
config 'tunnelL' 'server_http'
option 'server' 'home'
option 'remoteaddress' 'vps_ip'
option 'remoteport' '22'
option 'localaddress' '127.0.0.1'
option 'localport' '1080' `
luofeiyu
2016 年 6 月 2 日
v2ex 的 markdown 语法究竟是什么?
V1Eerie
2022 年 9 月 15 日
OpenWRT 上的 Dropbear 不支持动态端口转发
想要实现的话可以参考这个
https://ichon.me/post/879.html
V1Eerie
2022 年 9 月 15 日
补充一下,这个教程也不错
https://blog.5istar.net/archives/491

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/282864

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX