iptables rule with with random time variable argument.

Discussion in 'other firewalls' started by MarkKx, Mar 20, 2017.

  1. MarkKx

    MarkKx Registered Member

    Joined:
    Feb 13, 2016
    Posts:
    13
    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
     
  2. MarkKx

    MarkKx Registered Member

    Joined:
    Feb 13, 2016
    Posts:
    13
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.