Hello,
I was checking out the “random” function in the FIREWALL/NAT wiki and doesn’t explain any further.
Anyone can tell me how this function works?
Thanks in advance!
Hello,
I was checking out the “random” function in the FIREWALL/NAT wiki and doesn’t explain any further.
Anyone can tell me how this function works?
Thanks in advance!
The wiki DOES explain it.
http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/Filter
random (integer: 1..99; Default: ) Matches packets randomly with given probability.
That’s the only explanation in the wiki. I don’t understand it so well because there’s no example.
Can you give me a hand with this? I just want to redirect every X web connection attempts from an internal bridge to the outside, the dst-nat rule redirects the query to an internal webserver and in the next connection attempt, they can navigate outside and so on.
Thanks in advance
If you add a rule with random 50, then 50% of any packets that will go through this rule will take the action that is specified for this rule.
For other 50% of packets, this rule will act as if passthrough was the action. (the packets will not hit the rule)
Thank you very much!
Have a nice day