cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2707
Views
5
Helpful
17
Replies

MPF: Reset existing IM sessions.

Hello.

I'm trying to block IM with MPF. I have managed to block new log in and chat, but when the user is allready logged in, the session do not terminate.

The MPF config is:

******************************************************************

class-map all_netuse

match any

policy-map type inspect im stop_im_policy
param
match prot msn
reset

policy-map stop_im
class all_netuse
inspect im stop_im_policy

service-policy stop_im interface inside

******************************************************************

I just use this config for test. I'm supposed to use a time range to activate it so that the users can use msn for a spesific time.

So the problem is that when I assign the policy to the inside interface users can continue using msn if they are allready logged in.

What can I do to reset the existing connections?

Regards,

Jon A.

17 Replies 17

Hi Aossipov.

You didn't have to make the script for me, but thanks :-) I was hoping you knew hver to get the expect program for windows. The one I found was for unix.

Since the expect script will be the best solution in this case I will mark your first reply as "Correct Answer"

Jon.

Hello Jon,

My apologies as I had misread your question. While using a Linux/*NIX host would be the best approach, I suspect you can do something similar under Windows with Putty/Plink (command line SSH client). There's also a port of expect for Win32, but I'm not sure how much installation effort is involved.

Thanks!

Andrew

Hi Andrew.

No worries, I guess I didn't write anything about my preffered os either :-s

I looked at Plink, and it looks like it will do the trick. I appreciate all your help.

Jon

Review Cisco Networking for a $25 gift card