Skip to content

Instantly share code, notes, and snippets.

@wylfen
Last active October 25, 2017 11:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wylfen/8498614 to your computer and use it in GitHub Desktop.
Save wylfen/8498614 to your computer and use it in GitHub Desktop.
wkit.rules
# Generated by iptables-save v1.4.21 on Sun Jan 19 01:01:10 2014
*filter
:INPUT ACCEPT [140:10452]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [206:14477]
:morning - [0:0]
:afternoon - [0:0]
:evening - [0:0]
:night - [0:0]
-A INPUT -m time --timestart 08:00 --timestop 12:00 -j morning
-A INPUT -m time --timestart 12:00 --timestop 18:00 -j afternoon
-A INPUT -m time --timestart 18:00 --timestop 00:00 -j evening
-A INPUT -m time --timestart 00:00 --timestop 08:00 -j night
-A OUTPUT -m time --timestart 08:00 --timestop 12:00 -j morning
-A OUTPUT -m time --timestart 12:00 --timestop 18:00 -j afternoon
-A OUTPUT -m time --timestart 18:00 --timestop 00:00 -j evening
-A OUTPUT -m time --timestart 00:00 --timestop 08:00 -j night
-A morning -m statistic --mode random --probability 0.4 -j DROP
-A afternoon -m statistic --mode random --probability 0.8 -j DROP
-A evening -m statistic --mode random --probability 0.6 -j DROP
-A night -m statistic --mode random --probability 0.3 -j DROP
COMMIT
# Completed on Sun Jan 19 01:01:10 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment