how to limit ssh and telnet connection

I am in need of the Rule :

My users do not have connect to servers via telnet and ssh more than 5 connections in 1 minute !

that’s mean :

192.168.88.2 ssh–> 53.75.51.x = allow
192.168.88.2 ssh–> 43.25.12.x = allow
192.168.88.2 ssh–> 38.12.88.x = allow
192.168.88.2 ssh–> 13.35.21.x = allow
192.168.88.2 ssh–> 73.15.11.x = allow
192.168.88.2 ssh–> 54.33.30.x = Deny !
192.168.88.2 ssh–> 44.23.10.x = Deny !
.
.
.

only 5 connections in 60 Second !

help me

I’m afraid your need is unclear.


Sent from Tapatalk

I think that you want to limit the amount of new SSL OR Telnet connections to a maximum of 5 new sessions every 60 seconds. Is this what you are asking?

/ip firewall filter
add action=accept chain=forward connection-state=new dst-port=22,23 limit=5/1m,5:packet protocol=tcp src-address=192.168.88.2

-Chris

[quote="stoser":odgjh9q0]I think that you want to limit the amount of new SSL OR Telnet connections to a maximum of 5 new sessions every 60 seconds. Is this what you are asking?[/quote:odgjh9q0]

Well done :)

thats right !

[quote="stoser":1dcga6ye]I think that you want to limit the amount of new SSL OR Telnet connections to a maximum of 5 new sessions every 60 seconds. Is this what you are asking?[/quote:1dcga6ye]

Well done :)
that’s right

[quote="cdiedrich":1dcga6ye][code:1dcga6ye]
/ip firewall filter
add action=accept chain=forward connection-state=new dst-port=22,23 limit=5/1m,5:packet protocol=tcp src-address=192.168.88.2
[/code:1dcga6ye]
-Chris[/quote:1dcga6ye]

i try it
thanks and best regards