1.测试拓扑:
备注:因为模拟环境的限制,无法从IPS原有的sensor口发出tcp重置命令,因此测试用IPS其他接口发出TCP重置。
2.基本配置:
R1:
interface FastEthernet1/0
ip address 10.1.1.1 255.255.255.0
no shut
R2:
interface FastEthernet1/0
ip address 10.1.1.2 255.255.255.0
no shut
R3:
R3#VLAN DA
R3(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
R3(vlan)#exit
APPLY completed.
Exiting....
int range f0/1 - 2 , f0/13
sw mo acc
sw acc vlan 10
monitor session 1 source interface Fa0/1
monitor session 1 destination interface Fa0/12
3.IPS配置:
A.根据向导自定义signature:
①选择string tcp,点next:
②输入signature名称,点next:
③设置action为重置tcp连接,并设定字符串和服务端口:
备注:event action可以按住CTRL键进行多选。
④按默认点next:
⑤按默认点finish:
B.激活接口:
C.设定重置tcp连接的接口:
4.效果测试:
A.telnet连接输入关键字,则会被断开连接:
R1#telnet 10.1.1.2
Trying 10.1.1.2 ... Open
User Access Verification
Password:
R2>xlltes
[Connection to 10.1.1.2 closed by foreign host]
B.在R1的接口上面抓包,发现IPS发出的tcp重置的mac与R1的MAC相同:
本文转自 碧云天 51CTO博客,原文链接:http://blog.51cto.com/333234/967343,如需转载请自行联系原作者