Community discussions

 
lio00lio
just joined
Topic Author
Posts: 3
Joined: Fri May 18, 2012 1:34 pm
Location: Italy

Connection tracking - cout

Mon May 13, 2019 4:47 pm

hi,
I'm trying to do a script to count the connections on the router that have a certain destination.

some idea?
example:
:put [/ip firewall connection find reply-dst-address="xxx.xxx.xxx.xxx"[/ip firewall connection tracking get total-entries]]
I definitely made some mistakes, how can I solve?

Best regards
EC
 
sindy
Forum Guru
Forum Guru
Posts: 3019
Joined: Mon Dec 04, 2017 9:19 pm

Re: Connection tracking - cout  [SOLVED]

Mon May 13, 2019 4:55 pm

:put [len [ip firewall connection find reply-src-address~"remote.ip.add.ress"]]
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
lio00lio
just joined
Topic Author
Posts: 3
Joined: Fri May 18, 2012 1:34 pm
Location: Italy

Re: Connection tracking - cout

Mon May 13, 2019 5:03 pm

Thank you so much :D

Who is online

Users browsing this forum: No registered users and 88 guests