iptables rule with with random time variable argument.

All topics relating to computer security and internet privacy. Please try to keep it technical related and leave political diatribes at the door.

iptables rule with with random time variable argument.

Postby MarkKx » March 20th, 2017, 11:04 am

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: Select all
iptables -t filter -A OUTPUT -m owner --uid-owner 100 -j REJECT

Question: How to randomly change an argument
Code: Select all
--uid-owner
every 5 minutes?

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: Select all
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

Regards.
Mark
MarkKx
 
Posts: 1
Joined: March 20th, 2017, 10:59 am

Return to Security/Privacy-Related

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x