Community discussions

MikroTik App
 
latohe
just joined
Topic Author
Posts: 1
Joined: Fri Jul 14, 2023 10:17 pm

L7 regex to block IKEv1 connections

Wed Jul 26, 2023 7:13 pm

Wireshark says the 59th byte of the ipsec packet is the proto version. How to make a regex to prevent IKEv1 connection?
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: L7 regex to block IKEv1 connections

Wed Jul 26, 2023 9:22 pm

RegEx is a mask that is moving over an "text" and can be hooked to the end of the beginning but not on a specific point in a "text".

A dot is a single position so ^..... ....v1 (55 dots in total) provides you the location of the 56 position. Or if supported ^.{56}v1

Who is online

Users browsing this forum: No registered users and 125 guests