Dear guru mikrotik Router OS! Help write scripts for mikrotik Router OS 4.6 please. In general, we need: to mikrotik in / ip Firewall Address List in the address list itc_users have an IP address. Need script to take out the address, generates a file that will be the contents:
!
no access-list 150
—> with this line adds the addresses that are in address-list
access-list 150 deny tcp 10.222.0.250 0.0.0.0 any
access-list 150 permit tcp any any
!
end
and had offered this solution I’ve found through tftp on the server from which I’ve found this will take cisco.
And the second: a script that would go through telnet or sssh went to the address to log in and do the pressing Enter.
Sorry, can not:) 24 Gigabit per second, no RouterBoard not be able to handle it. Can you suggest any more loyal solution to this problem? Would be very grateful. But still the question about the script leave open - as a solution to the problem.
It is impossible to do that with just RouterOS since you cannot automate file uploads from the router itself.
Since you need to involve a third host you can do whatever you want on that host, in whatever language you would like.
Or maybe you can do it with EEM on the Cisco router. I’m only superficially familiar with that, and don’t know if it would support logging into the Mikrotik router, looking at configuration, and re-parsing it into something IOS can use. I’m pretty sure they have a community site.
I have used tera term to write a script that downloads (using WGET) the fullbogons-ipv4.txt from http://www.team-cymru.org/Services/Bogons/http.html and uploads this list into RB750’s and RB1100’s. This list is over 7000 IP addresses and cannot be input through telnet alone without taking several hours, but tera term can initiate an FTP upload after converting the list to a routerboard script and can complete the entire process in under 1 minute.
I have also used tera term to retrieve running-config from Cisco routers so I am sure it will be able to do what you are looking for.