找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 7215|回复: 14

[coyote] [问题]我到底那里做错了。coyote我搞来搞去端口映射就是不行,看

[复制链接]
发表于 2003-12-15 23:48:19 | 显示全部楼层
这个我是在web页面的“Edit Advance Portforward Configuration”里设的。如果在SSH里又应该是设“Edit masquerade script (NAT)”还是“Edit port forward configuration”
以下是在“Edit Advance Portforward Configuration”里的内容。      
auto Y tcp 6881 192.168.0.2 dns
auto Y tcp 6882 192.168.0.2 dns
auto Y tcp 6883 192.168.0.2 dns
auto Y tcp 6884 192.168.0.2 dns
auto Y tcp 6885 192.168.0.2 dns
auto Y tcp 6886 192.168.0.2 dns
auto Y tcp 6887 192.168.0.2 dns
auto Y tcp 6888 192.168.0.2 dns
auto Y tcp 6889 192.168.0.2 dns
auto Y tcp 20:21 192.168.0.2 dns
# Auto-Port Forward Configuration File
#
# This file contains entries in the following format:
#
# type active
#
# type = auto or port
#
# active = Y or N
#
# for "auto" rule =
#         protocol port desination [dns]
#
# protocol = TCP or UDP
# port = port or port range in the format of "start:end"
# destination = destination IP address
# dns = flag to create pre-post-route for lan to wan ip (optional)
#
# for "port" rule:
#         destination [internet_ip] [protocol [port1 [port2] [dns]]]
#
# destination = destination IP address
# internet_ip = internet IP address (optional)
# protocol = protocol name or number (optional)
# port1 = the port to forward (optional)
# port2 = the port to forward to (optional)
# dns = flag to create pre-post-route for lan to wan ip
# (optional when used with the above 3 options)
#
# A "#" at the 1st character in a line can be used to denote a comment
#

# Auto examples:
# FTP
# auto Y tcp 20:21 192.168.0.10 dns
# WWW
# auto Y tcp 80 192.168.0.10 dns
# SSL
# auto Y tcp 443 192.168.0.10 dns
#
# Port examples:
# Secondary FTP
# port Y 192.168.0.9 tcp 31 21 dns
# Secondary SSH
# port Y 192.168.0.9 tcp 32 22h[11~~~~~~~~
routeros
回复

使用道具 举报

发表于 2003-12-16 00:22:59 | 显示全部楼层
晕,  用UDP
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-16 00:38:59 | 显示全部楼层
什么啊?那些端口开的都是TCP协议的啊。怎么会是UDP呢?
routeros
回复

使用道具 举报

发表于 2003-12-16 12:49:39 | 显示全部楼层
你是否存盘重启机器了。
routeros
回复

使用道具 举报

发表于 2003-12-16 14:10:44 | 显示全部楼层
对,
要存盘,要重起哦。
再试试。
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-16 17:09:45 | 显示全部楼层
试过了。我每次都是这样做的。后来我又从做了一次软盘,开始映射了2121端口,和把映射的IP改成了192.168.0.100试了下FTP可以是可以连到了。但是但是提示连接错误,改用内网IP连又可以。然后再删再加结果..........还是不行。
你们都是在那项设的auto Y tcp 6881 xxx.xxx.xxx.xxx dns 啊。你们是手工输入的吗?
routeros
回复

使用道具 举报

发表于 2003-12-16 17:43:44 | 显示全部楼层
楼主是映射BT端口吧,,我这能行的啊,auto Y tcp 6881:6999 x.x.x.x dns
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-16 20:25:10 | 显示全部楼层
能告诉我你是用web方式进去Edit Advance Portforward Configuration里设的还是用SSH或直接在路由器上的“Edit masquerade script (NAT)”还是“Edit port forward configuration” 里设置?
routeros
回复

使用道具 举报

发表于 2003-12-16 20:44:18 | 显示全部楼层
我是用SHH登录上去的改的在Edit port forward configuration那里改啊,
改好后,运行/ETC/RC.D/RC.FIREWALL就能生效了,不生重启
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-16 20:52:49 | 显示全部楼层
哦,谢谢你。我现在再去试试。对了。映射后加上dns能自己用公网IP访问到自己映射的端口吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-16 22:51:45 | 显示全部楼层
终于可以。谢谢各位帮忙,特别是hufly兄,我是得到你的提醒才成功的,过去的帖子一直没说具体把"auto Y tcp an udp port x.x.x.x"加在哪一项。现在知道了。但是我很不明白,为什么我昨天是在WEB里的Edit Advance Portforward Configuration添加的不行。而今天按hufly兄的说法设可以而且还没重启。但是我用web进去看添加的结果都是一样的啊。我真的很不明白。我在Edit port forward configuration设的最后结果也是反映在web的“Edit Advance Portforward Configuration”里但是一个可以正常映射一个不行。这是我不明白的,有好心人能帮我说说吗?
routeros
回复

使用道具 举报

发表于 2003-12-17 17:03:00 | 显示全部楼层
不用auto用port试一下,我也有这样的问题,用port解决了
routeros
回复

使用道具 举报

发表于 2003-12-17 21:02:40 | 显示全部楼层
我有web进去加不行,看了这个贴子后用ssh连上去在edit port forward configuration 加入
auto Y udp 27015 192.168.1.3 dns
port Y udp 27016 192.168.1.3 dns
都没有一个行D
运行/etc/rc.d/rc.firewall
提示:iptables v1.2.8:unknown protocol '192.168.1.3'specified
iptables v1.2.8:unknown protocol '192.168.1.3'specified
各位你们要帮帮我,要不谁帮我搅我把密码告诉他用ssh连上去帮我搅好
routeros
回复

使用道具 举报

 楼主| 发表于 2003-12-17 21:59:28 | 显示全部楼层
janlyqiu如果你那实在是不行的话我帮你试试吧。因为我以前也在网吧做过很多CS服务器。一般来说你CS Server只要映射你服务器指定的端口就行的。但是如果你在服务器上的快捷方式里你不指定端口那光是映射27015是不行的,最少要映射5个端口外网才能访问内网的CS Server。到时你把你的CS Server的快捷方式一并发给我把。
routeros
回复

使用道具 举报

发表于 2003-12-17 23:32:18 | 显示全部楼层
谢谢你了
我的CS启动参数是这样的
E:csHLServerhlds.exe -port 27015 -game cstrike -nomaster -insecure -noipx +sv_lan 1 +maxplayers 32 +map de_aztec -console确良+ip 61.145.71.22
你QQ是多少,我的是179605123
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-20 13:24 , Processed in 0.058990 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表