找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2162|回复: 5

请问,如何在命令行作bimap?

[复制链接]
发表于 2004-4-19 00:20:27 | 显示全部楼层 |阅读模式
Rule ID:   60000  
Rule Flavor:   BIMAP  
IF Name:   ALL  
Local Address From:   192.168.1.6
Local Address To:   192.168.1.6
Global Address From:   0.0.0.0
Global Address To:   0.0.0.0
ifname 添什么?all好像不行啊
create nat rule entry ruleid 5 bimap prot any ifname all lcladdrfrom 192.168.1.66 lcladdrto 192.168.1.66 desaddrfrom 0.0.0.0 deaddrto 255.255.255.255 destportfrom 0 destportto 65535 lclport 0
 楼主| 发表于 2004-4-19 19:56:30 | 显示全部楼层

请问,如何在命令行作bimap?

斑竹来看看萨
发表于 2004-4-19 20:01:25 | 显示全部楼层

请问,如何在命令行作bimap?

NAT 这项设置偶也不懂,哪位懂的最好把图也帖上,谢谢~~
发表于 2004-4-19 23:13:50 | 显示全部楼层

请问,如何在命令行作bimap?

不用ifname字段就是ALL了
在web上建立那么方便,干嘛要去用命令行。。。
 楼主| 发表于 2004-4-20 15:21:48 | 显示全部楼层

请问,如何在命令行作bimap?

下面引用由goingchan2004/04/19 11:13pm 发表的内容:
不用ifname字段就是ALL了
在web上建立那么方便,干嘛要去用命令行。。。
因为我想用个批处理文件直接点击就可以的那种,谢谢你的回答!
顺便问个问题:那些加中括号的选项是不是都是可选的?比如:
Parameter                         Description
---------                         -----------
ruleid <decvalue>                  Rule identifier
<rule type>                        Type:basic|filter|napt|bimap|rdr|pass
[ prot <ProtType> ]                Vals:any|tcp|udp|icmp|[num <decvalue>]
[ ifname <name> ]                  Interface name
[ lcladdrfrom <ip addr> ]          Start source address
[ lcladdrto <ip addr> ]            End source address
[ glbaddrfrom <ip addr> ]          Start global address
[ glbaddrto <ip addr> ]            End global address
[ destaddrfrom <ip addr> ]         Start dest address
[ destaddrto <ip addr> ]           End dest address
[ destportfrom <decvalue> ]        Start dest port
[ destportto <decvalue> ]          End dest port
[ lclport <decvalue> ]             Translation port
发表于 2004-4-20 18:14:39 | 显示全部楼层

请问,如何在命令行作bimap?

"< >"表示必选
"[ ]"表示可选,不输入"[ ]"中的字段,则表示该字段使用默认值
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-6 13:21 , Processed in 0.021374 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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