Rewrote in bash
This commit is contained in:
parent
9fa7e85fa1
commit
fd87d6bef6
2 changed files with 12 additions and 0 deletions
12
tmpufw.sh
Executable file
12
tmpufw.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $# == 0 ]
|
||||
then
|
||||
echo 'Usage: ./tmpufw.sh [rule]'
|
||||
exit 2
|
||||
else
|
||||
rule=$(printf ' %s' "$@")
|
||||
|
||||
ufw $rule
|
||||
echo 'ufw delete $rule' | at NEXT MONTH
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue