Temporarily apply ufw rules
Find a file
Joshua John Sherman b264825e85 Update README.md
Cleaned up the arguments section
2013-10-23 19:25:11 -04:00
LICENSE Initial commit 2013-10-22 08:59:13 -07:00
README.md Update README.md 2013-10-23 19:25:11 -04:00
tmpufw Added logic to add rules and write to disk 2013-10-23 23:21:52 +00:00

tmpufw

Temporarily apply ufw rules

This script allows you to add rules to ufw (Uncomplicated Firewall) with a time to live. You can then run the script as a cronjob (with the --clean flag) to clean up (remove) the expired rules.

Arguments

-h, --help                       show the help message and exit
-s, --status                     show rule list with expirations
-c, --clean                      clean up expired rules
-r RULE, --rule RULE             rule to be added to `ufw`
-p POSITION, --position POSITION position to add the rule
-t TTL, --ttl TTL                time to live for the rule