RouterOS 小结

      PC文档 2006-5-5 12:57

固定ip上网基本设置(2.92版本):

1)设置外网IP

IP→address→"+"

address:外网IP/掩码
Interface:相应的网卡接口

2)添加防火墙规则

a.IP→Firewall→NAT→"+"→action选项

action后的下拉框中选择"Masquerade"

b.IP→Firewall→NAT→"+"→General选项

Chain后的下拉选框中选择"srcnat"

3)添加路由表

IP→Routes→"+"
Destination : 0.0.0.0/0
Gateway :外网网关IP

上网基本设置至此已完成

===================================================

提升服务器防SYN攻击的方法:IP→FIREWall→CONNECTIONS→TRACKING→TCP SYN SEND TIME OUT的值设为30至60之间

======================================

限线程脚本:

:for aaa from 2 to 254 do={/ip firewall filter add chain=forward src-address=(192.168.0. . $ aaa) protocol=tcp connection-limit=50,32 action=drop}

限速脚本:

:for aaa from 2 to 254 do={/queue simple add name=(queue . $ aaa) dst-address=(192.168.0. . $ aaa) limit-at=0/0 max-limit=2000000/2000000}

说明:
脚本为一行不是两行
aaa是变量
2 to 254是2~254
192.168.0. . $ aaa是IP
上两句加起来是192.168.0.2~192.168.0.254的意思
connection-limit=50是线程数这里为50
max-limit=2000000/2000000是上行/下行

使用:
WinBox-System-Scripts-+
Name(脚本名程)
Source(脚本)
OK-选择要运行的脚本-Run Script

查看:
限线程:WinBox-IP-Firewall-Filter Rules(看是否已经填加进来)
限速:WinBox-Queues-Simple Queues(看是否已经填加进来)

 

=======================================

Change MSS:IP→FIREWall→Mangle→"+"

General选项:
Chain:forward    porotcol:6(TCP) 

advanced选项
TCP FLags:SYN

Action选项

action:Change MSS
New TCP MSS:填入要修改的值
 

标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}