Community discussions

MikroTik App
 
marcelofares
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Tue Mar 03, 2015 2:26 pm

Scritp for Black list for failed login to IPSec VPN

Thu Mar 28, 2024 1:10 pm

Dear colleagues,

I've been suffering lately from many connectivity attempts via IPSEC and as a result, the logs of the Mikrotik equipment I manage are full of entries and information.

The events I usually receive are these:

ipsec,error: phase1 negotiation failed due to time up
ipsec, error phase1 negotiation failed.
ipsec,error failed to pre-process ph1 packet (side: 1, status 1).
ipsec,error failed to get valid proposal.
ipsec, error no suitable proposal found.

I would like to know if there is any functional script that identifies any of these messages above and blacklists the destination IP?

I found this post here on the forum but unfortunately no one responds and the post's script ends up putting 0.0.0.0 on the blacklist.
viewtopic.php?t=148397

Can anybody help me ?
 
drpioneer
just joined
Posts: 10
Joined: Mon Nov 01, 2021 8:33 am

Re: Scritp for Black list for failed login to IPSec VPN

Thu Mar 28, 2024 1:16 pm

 
marcelofares
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Tue Mar 03, 2015 2:26 pm

Re: Scritp for Black list for failed login to IPSec VPN

Thu Mar 28, 2024 1:39 pm

From what I'm seeing in your script, it goes too far and goes far beyond what I need, and since I don't understand it, I asked for help.

Who is online

Users browsing this forum: MSN [Bot] and 9 guests