J*n
2 楼
tomatousb+external hdd 开了一个web server,
内网能够访问,但是外网不行.
已经在tomato设置了port forwarding,并且加了iptables scripts:
iptables -t filter -A INPUT -p tcp --dport 8080 -j ACCEPT
还是不行.还有什么需要设置的吗?
内网能够访问,但是外网不行.
已经在tomato设置了port forwarding,并且加了iptables scripts:
iptables -t filter -A INPUT -p tcp --dport 8080 -j ACCEPT
还是不行.还有什么需要设置的吗?
h*o
4 楼
说说你的网络设置吧,你的 tomato 路由是直接在 modem 后面还是在 modem 和
tomato 中间还有另一个路由?比如说,verizon fios 的 modem 和 router 合一的,
如果接在它的后面,那么是先要在 verizon 这个路由上设置一下 port forwarding
【在 J*****n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: tomatousb+external hdd 开了一个web server,
: 内网能够访问,但是外网不行.
: 已经在tomato设置了port forwarding,并且加了iptables scripts:
: iptables -t filter -A INPUT -p tcp --dport 8080 -j ACCEPT
: 还是不行.还有什么需要设置的吗?
tomato 中间还有另一个路由?比如说,verizon fios 的 modem 和 router 合一的,
如果接在它的后面,那么是先要在 verizon 这个路由上设置一下 port forwarding
【在 J*****n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: tomatousb+external hdd 开了一个web server,
: 内网能够访问,但是外网不行.
: 已经在tomato设置了port forwarding,并且加了iptables scripts:
: iptables -t filter -A INPUT -p tcp --dport 8080 -j ACCEPT
: 还是不行.还有什么需要设置的吗?
J*n
5 楼
cable modem --> router with tomato --> external hdd at router
http server 已经在8080端口运行,可以从内网访问
192.168.1.1:8080 (ok)
内网也可以访问external address
65.138.46.173:5678
但是外网无法访问上面这个地址.
followed the description at
http://www.dd-wrt.com/wiki/index.php/Iptables
added those two lines
iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp -d $(nvram get wan_ipaddr) --dport 5678
-j DNAT --to 192.168.1.1:8080
yougetsignal 一直显示5678端口没有打开.
【在 h**o 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 说说你的网络设置吧,你的 tomato 路由是直接在 modem 后面还是在 modem 和
: tomato 中间还有另一个路由?比如说,verizon fios 的 modem 和 router 合一的,
: 如果接在它的后面,那么是先要在 verizon 这个路由上设置一下 port forwarding
http server 已经在8080端口运行,可以从内网访问
192.168.1.1:8080 (ok)
内网也可以访问external address
65.138.46.173:5678
但是外网无法访问上面这个地址.
followed the description at
http://www.dd-wrt.com/wiki/index.php/Iptables
added those two lines
iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
iptables -t nat -I PREROUTING -p tcp -d $(nvram get wan_ipaddr) --dport 5678
-j DNAT --to 192.168.1.1:8080
yougetsignal 一直显示5678端口没有打开.
【在 h**o 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 说说你的网络设置吧,你的 tomato 路由是直接在 modem 后面还是在 modem 和
: tomato 中间还有另一个路由?比如说,verizon fios 的 modem 和 router 合一的,
: 如果接在它的后面,那么是先要在 verizon 这个路由上设置一下 port forwarding
h*o
6 楼
没用过 tomato, 也很久不用 cable ,不过 port forwarding 是相对容易的设置.
有无可能 ISP 控制端口的问题?不妨试下换个端口,比如 65.138.46.173:80
另外,router 不可能通过 web gui 界面直接设置么?还得写命令行?
【在 J*****n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: cable modem --> router with tomato --> external hdd at router
: http server 已经在8080端口运行,可以从内网访问
: 192.168.1.1:8080 (ok)
: 内网也可以访问external address
: 65.138.46.173:5678
: 但是外网无法访问上面这个地址.
: followed the description at
: http://www.dd-wrt.com/wiki/index.php/Iptables
: added those two lines
: iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
有无可能 ISP 控制端口的问题?不妨试下换个端口,比如 65.138.46.173:80
另外,router 不可能通过 web gui 界面直接设置么?还得写命令行?
【在 J*****n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: cable modem --> router with tomato --> external hdd at router
: http server 已经在8080端口运行,可以从内网访问
: 192.168.1.1:8080 (ok)
: 内网也可以访问external address
: 65.138.46.173:5678
: 但是外网无法访问上面这个地址.
: followed the description at
: http://www.dd-wrt.com/wiki/index.php/Iptables
: added those two lines
: iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
h*o
7 楼
我仔细读了下那个页,貌似你的问题在这里:
你做的设置,是 NAT rerouting。这个可能是需要同样的端口
如果你看了下面一段,写着 port forwarding 标题的,这个需要不同的命令,但可以
内外用不同的端口
试下看外网端口别用 5678,改成 8080 吧
【在 J*****n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: cable modem --> router with tomato --> external hdd at router
: http server 已经在8080端口运行,可以从内网访问
: 192.168.1.1:8080 (ok)
: 内网也可以访问external address
: 65.138.46.173:5678
: 但是外网无法访问上面这个地址.
: followed the description at
: http://www.dd-wrt.com/wiki/index.php/Iptables
: added those two lines
: iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
你做的设置,是 NAT rerouting。这个可能是需要同样的端口
如果你看了下面一段,写着 port forwarding 标题的,这个需要不同的命令,但可以
内外用不同的端口
试下看外网端口别用 5678,改成 8080 吧
【在 J*****n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: cable modem --> router with tomato --> external hdd at router
: http server 已经在8080端口运行,可以从内网访问
: 192.168.1.1:8080 (ok)
: 内网也可以访问external address
: 65.138.46.173:5678
: 但是外网无法访问上面这个地址.
: followed the description at
: http://www.dd-wrt.com/wiki/index.php/Iptables
: added those two lines
: iptables -I INPUT -p tcp -d 192.168.1.1 --dport 5678 -j ACCEPT
相关阅读
有人有多余的WMC序列号么?video streaming server 35$冲动了为啥大家都推荐debian over arch?PogoPlug安装Dropbox攻略(部分原创)请问如何清洁键盘想买一个神座类的设备, 求推荐求个最便宜的HTPC的配置大家说说怎么卖旧电脑比较合适Lenovo 的订单主板29度,算不算温度高?工控主板放ebay能出掉么?搓衣板deal来了悲催-自己装的机子无法启动intel 335 on T410请大家推荐一个AMD的CPUMK802那种android stick有standby mode吗?谁还有那个显卡树,从高端到低端金字塔那种两台笔记本,A的显示器坏了,能不能接到B上,用B的显示器来工作?谁能给俺买个迅雷会员?国外没法付款啊