cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1490
Views
0
Helpful
1
Replies

Automate Cisco comands (ASA 5505)

james.wilson1
Level 1
Level 1

Hi all,

 

I have set up timed ACL's on my ASA 5505 but I have an issue with Skype and iMessage, they don't break the connection at any point so when the timed ACL kicks in its useless for all but new connections.

 

I have searched about and found that I can stop all current connections to a host with the CLI command "Clear local-host *IP address*" however I wanted to set this up to automatically clear this the minute my ACL kicks in.

What would be involved in doing this?

 

Thanks in advance

1 Reply 1

james.wilson1
Level 1
Level 1

Never mind I managed to do this by saving a session and automating putty by running the commands in a separate .txt file. Very simple

 

If anyone is interested I have attached the files. (Script file will need changing from .txt to .bat)

 

This can be adapted for any CLI command! Only issue is storing your password in plain text (Shows the password in both the .bat file and your enable password in the accompanying .txt file)

My set up is just to stop my daughter Skyping after a certain time during school nights so just a mickey mouse set up, nothing that requires strict security so I am happy to do this)

 

After these were created, I just set up a basic task on my 2012 server to run the script at the specific time, sorted!

 

Hope this helps anyone trying to do the same thing :)

 

Regards,

 

James