have a little Wisp, with normal user (home user, one PC), and SOHO, cyber or office with 10 or more PC
now, if apply this rule
/ip firewall filter add action=drop connection-limit=5,32 protocol=tcp tcp-flags=syn, chain=forward
this rule limits to 6 conections for each user
i will have problem for my SOHO customer, but work for home user.
now i have two segment the normal user segment is 192.168.150.x/24,
and for SOHO is 192.168.200.x/24
if apply this rule
add chain=forward src-address=192.168.150.0/24 protocol=tcp tcp-flags=syn
connection-limit=5,32 action=drop comment=“limit one pc
internet for home” disabled=no
work??? my question is because i put in src-address the /24, and connection-limit the mask is 32 bits ???
or the correct rule is
add chain=forward src-address=192.168.150.0 protocol=tcp tcp-flags=syn
connection-limit=5,24 action=drop comment=“limit one pc
internet for home” disabled=no
look i change in src-address put only the segment no put /24, and in connection-limit put the mask 24 bits
i want control the normal user, i want the normal user no can share the internet, but the SOHO customer, can share the internet
if you want limit coonections for one host than you enter /32 if you wnt limit whole network then use /24 but remember if you limit whole network, that one user of netowrk can use all available conenctions and other ppl on that network would not be able to use network at all.
and no you cannot detect if home user is using router with properly configured NAT (masquarade)
I have many dubt on limiti connection per user.
Is this rule limit new connection opened at the same time? or total?
I tried to open a p2p on a client and his statistic shows 400 connection while on the mk the limit was set to 50.
Is it enough to add first rule in the chain with IP address and after that rule for all others?
rule in the chain - for user 192.168.1.1 limit at 300 connections:
/ip firewall filter add chain=forward protocol=tcp tcp-flags=syn connection-limit=300,32 action=drop src-address=192.168.1.1
2.rule in the chain - for all others 6:
/ip firewall filter add chain=forward protocol=tcp tcp-flags=syn connection-limit=6,32 action=drop