Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1696245
  • 博文数量: 362
  • 博客积分: 10587
  • 博客等级: 上将
  • 技术积分: 4098
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-10 18:15
文章分类

全部博文(362)

文章存档

2014年(1)

2013年(58)

2011年(115)

2010年(112)

2009年(76)

分类: PERL

2013-03-14 14:32:05

昨晚误删了routeros上的端口映射。要手动添加200条映射规则,写脚本了。。。将输出复制到routeeros的终端就执行了。

#!/usr/bin/perl -w

for(8000..8200) {
say "ip firewall nat add chain=dstnat dst-address=118.x.x.x dst-port=$_ action=dst-nat protocol=tcp to-address=192.168.100.6 to-port=$_";
}
阅读(3367) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~