I installed Shorewall using Synaptic today, configured it and tested that I can start it manually. Then I restarted the computer and found out that there are no rules defined in any iptables chain (sudo iptables -L). I used the sudo invoke-rc.d shorewall start command to check what's happening during boot time and I saw the following error:
Please read about Debian specific customization in
/usr/share/doc/shorewall/README.Debian.gz.
After a few minutes of checking by trial and error I knew there was a problem with a piece of code right after the # check if shorewall is configured or not comment and after a few more minutes I modified it and the problem was solved. Below is the modified version - the script was looking for a wrong file and checking a non-existent variable.
# check if shorewall is configured or not if [ -f "/etc/shorewall/shorewall.conf" ] then . /etc/shorewall/shorewall.conf if [ "$STARTUP_ENABLED" != "Yes" ] then not_configured fi else not_configured fi