I am a bit puzzled about updating tables in PF. I can do:
I understand why the second command fails. The command including its arguments (the file contains thousands of lines) is way too long for the shell.
However, I do not understand why the third command (with the
Bash:
root# pfctl -t blocked_zones -T replace `head /etc/pf-conf.d/blocked_zones`
36009 addresses deleted.
root# pfctl -t blocked_zones -T replace `cat /etc/pf-conf.d/blocked_zones`
/sbin/pfctl: Argument list too long.
root# pfctl -t blocked_zones -T replace -f /etc/pf-conf.d/blocked_zones
pfctl: Invalid argument.
I understand why the second command fails. The command including its arguments (the file contains thousands of lines) is way too long for the shell.
However, I do not understand why the third command (with the
-f
flag) fails. I've checked the man page but could not see what is wrong.