Community discussions

MikroTik App
 
User avatar
winet
Member Candidate
Member Candidate
Topic Author
Posts: 273
Joined: Fri Mar 16, 2007 4:49 pm
Location: Indonesia

Firewall Rule Action Trigger Script

Fri May 21, 2021 2:55 pm

Hi, is there a way for a firewall rule action trigger(run) a script?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Firewall Rule Action Trigger Script

Fri May 21, 2021 3:08 pm

Not directly,
you must use what already we have.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Firewall Rule Action Trigger Script

Fri May 21, 2021 3:16 pm

You can log firewall rule to memory log, then make a scheduled script that search trough the logs and do some when triggered.
Or you can send data to Syslog server like Splunk, then Splunk can do various action. Script/email +++
 
User avatar
winet
Member Candidate
Member Candidate
Topic Author
Posts: 273
Joined: Fri Mar 16, 2007 4:49 pm
Location: Indonesia

Re: Firewall Rule Action Trigger Script

Sat May 22, 2021 3:30 am

Not directly,
you must use what already we have.
i hope this could be included in the future updates
You can log firewall rule to memory log, then make a scheduled script that search trough the logs and do some when triggered.
Or you can send data to Syslog server like Splunk, then Splunk can do various action. Script/email +++
hmm... a third party software
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Firewall Rule Action Trigger Script

Sat May 22, 2021 10:19 pm

hmm... a third party software
Only the second part.

Who is online

Users browsing this forum: No registered users and 33 guests