iptables rule with with random time variable argument.

Alles rund um sicherheitsrelevante Fragen und Probleme.
Antworten
Markxy
Beiträge: 4
Registriert: 29.11.2016 17:55:00

iptables rule with with random time variable argument.

Beitrag von Markxy » 20.03.2017 11:33:19

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: Alles auswählen

iptables -t filter -A OUTPUT -m owner --uid-owner 100 -j REJECT
Question: How to randomly change an argument

Code: Alles auswählen

--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: Alles auswählen

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

Antworten