I installed firehol-3.0.0-rc.1 on a x86-64 Linux, it works well when it comes to the firewall itself, but the "save" fails.
I even stopped FH to start it up with "firehol save".
I put the suggested filename into $FIREHOL_AUTOSAVE, and exported the variable so that even a script could read it. [I wrote a test script to see if the variable $FIREHOL_AUTOSAVE is really set, and it is set OK]
Still, "firehol save" fails:
$ export FIREHOL_AUTOSAVE=/var/spool/firehol/last_save_modules.sh
$ firehol save
FireHOL: Saving active firewall to a temporary file... OK
FireHOL: Processing file '/etc/firehol/firehol.conf'... OK
FireHOL: Fast activating new firewall... OK
FireHOL: Saving activated firewall to '/var/spool/firehol'... OK
ERROR : # 1
WHEN : Setting default unmatched policy (options: UNMATCHED_INPUT_POLICY UNMATCHED_OUTPUT_POLICY UNMATCHED_ROUTER_POLICY)
WHY : Cannot find where to save iptables file. Please set FIREHOL_AUTOSAVE.
COMMAND: (unset)
MODE : ipv4
SOURCE : FIN
$ /home/user/testfirehol.sh
/home/user/testfirehol.sh
/var/spool/firehol/last_save_modules.sh
$ cat /user/rava/testfirehol.sh
.#!/bin/sh
echo $0
echo $FIREHOL_AUTOSAVE
(the "," in front of .#!/bin/sh is just so that the line is not formatted as bold and huge font)
Hope this bug can resolved soon.
Cheers,
yours truly, Rava
Hi
Looks like the documentation is out of date, you should set this variable in /etc/firehol/firehol-defaults.conf in this version. This file should have been created automatically with some default values if it did not exist.
Also, not sure how you came to sourceforge, everything should point to http://firehol.org/ or for issues: https://github.com/ktsaou/firehol/issues
Cheers
Phil