This commit is contained in:
Thomas von Dein
2022-04-24 15:39:30 +02:00
parent 22adcd57c4
commit e2c08a0235

6
jaildk
View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
version=1.26 version=1.28
usage_jaildk() { usage_jaildk() {
beg=`tput -T ${TERM:-cons25} md` beg=`tput -T ${TERM:-cons25} md`
@@ -23,7 +23,7 @@ uninstall <jail> [-w] - uninstall a jail
remove <jail> - remove a jail or a jail version remove <jail> - remove a jail or a jail version
reinstall <jail> [-b <base>] [-v <version>] - stop, remove, install and start a jail, if reinstall <jail> [-b <base>] [-v <version>] - stop, remove, install and start a jail, if
-b and/or -v is set, update the jail config -b and/or -v is set, update the jail config
prunt [-b | -a | -j <jail> - display unused directories prune [-b | -a | -j <jail> - display unused directories
${beg}Maintaining Jails:${end} ${beg}Maintaining Jails:${end}
start <jail> - start a jail start <jail> - start a jail
@@ -340,7 +340,6 @@ rc_pf() {
# generate a pf.conf based on config variables # generate a pf.conf based on config variables
echo "# generated pf ruleset for jail, generated on ` date`" > $ruleset echo "# generated pf ruleset for jail, generated on ` date`" > $ruleset
extif=$(netstat -rnfinet | grep default | cut -f4 -w) extif=$(netstat -rnfinet | grep default | cut -f4 -w)
fi
# we need to make sure the ip address doesn't contain a mask which # we need to make sure the ip address doesn't contain a mask which
# is not required for these rules # is not required for these rules
@@ -417,6 +416,7 @@ rc_pf() {
fi fi
done done
fi fi
fi
;; ;;
esac esac