2015-08-20 09:29:28 |
B. |
description |
Ubuntu 14.04 LTS and 15.04
Steps to reproduce:
apt-get install shorewall
vi /etc/default/shorewall
replace
startup=0
with
startup=1
cp -va /usr/share/doc/shorewall/examples/one-interface/{interfaces,policy,rules,zones} /etc/shorewall/
shorewall safe-restart
iptables -L -n # all rules are there
reboot
iptables -L -n # all rules are gone #FAIL
Workaround:
vi /etc/init.d/shorewall
replace
# Default-Start: S
with
# Default-Start: 2 3 4 5
sudo rm -fv /etc/rc?.d/*shorewall*
sudo update-rc.d shorewall defaults
References:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773392
http://ubuntuforums.org/showthread.php?t=2275224
https://help.ubuntu.com/community/ShorewallBasics |
Ubuntu 14.04 LTS and 15.04
Steps to reproduce:
apt-get install shorewall
vi /etc/default/shorewall
replace
startup=0
with
startup=1
cp -va /usr/share/doc/shorewall/examples/one-interface/{interfaces,policy,rules,zones} /etc/shorewall/
shorewall check
shorewall safe-restart
iptables -L -n # all rules are there
reboot
iptables -L -n # all rules are gone #FAIL
Workaround:
vi /etc/init.d/shorewall
replace
# Default-Start: S
# Default-Stop: 0 6
with
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
sudo rm -fv /etc/rc?.d/*shorewall*
sudo update-rc.d shorewall defaults
References:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773392
http://ubuntuforums.org/showthread.php?t=2275224
https://help.ubuntu.com/community/ShorewallBasics |
|