I'm trying to track a connection with the following command:
Code: Select all
/ip firewall connection print from=[find dst-address="SERVER_IP:80"]
Code: Select all
/ip firewall connection print from=[find src-address="CLIENT_IP:*"]
/ip firewall connection print from=[find dst-address="SERVER_IP:80"]
/ip firewall connection print from=[find src-address="CLIENT_IP:*"]
/ip firewall connection print where src-address~"1.2.3.4"
/ip firewall connection print where dst-address~"1.2.3.4:80"
ip firewall connection print where src-address~"IP"
/ip firewall connection print where src-address~"1.2.3.4"
/ip firewall connection print where src-address~"^1\\.2\\.3\\.4(:*|\$)"
/ip firewall connection print where dst-address~"^1\\.2\\.3\\.4:80\$"
you right,@rextended
Did you try this?
For me, I do get red \, to that is not accepted.
Using ^ works fine
Using $ at end of line give hit for all
So some is not following regex standard.
Remember: is RegExp using POSIX standard without metadata (Character classes) like [:digit:] (stay for [0-9] ) or \d (again is equal to [0-9] ) from other languagesAhh, thanks, learned some today as well :)