Hello all. I am looking for long time iptables rule satisfying the following conditions. Assuming, we have a pool of users (from: --uid owner 100, until: -- uid owner 200) Our iptables rule: Code: iptables -t filter -A OUTPUT -m owner --uid-owner 100 -j REJECT Question: How to randomly change an argument Code: --uid-owner every 5 minutes? Regards. Mark
I,am afraid, I presented my position in an insufficient way. Briefly, the idea is to REJECT entire traffic in OUTPUT chain for random user, and change the user every 5 minutes. With other words, iptables rule: Code: iptables -t filter -A OUTPUT -m owner --uid-owner 100 -j REJECT will REJECT (for one random user) entire traffic in OUTPUT chain for 5 minutes. No Internet connection. Everyone else will enjoy Internet connection, every 5 minutes different (random) user will be discriminated