PDA

View Full Version : [ubuntu] File in /etc/network/if-post-down.d/ doesn't run at shutdown



Frozen Forest
August 25th, 2011, 03:07 PM
After following this guide¹ did I manage to get iptables working except for one thing, the script that should save counters and iptables doesn't run when the computer shutdown or restart.

https://help.ubuntu.com/community/IptablesHowTo#Solution%20#3%20iptables-persistant

sanderd17
August 25th, 2011, 03:14 PM
can you give the output of the following command? (between CODE tags please)



ls -l /etc/network/if-post-down.d/

Frozen Forest
August 30th, 2011, 10:43 AM
can you give the output of the following command? (between CODE tags please)




ls -l /etc/network/if-post-down.d/


iptablessave


#!/bin/sh
/bin/bash -c "/sbin/iptables-save -c > /etc/iptables.rules"
exit 0
ls -l


-rwxr-xr-x 1 root root 77 2011-08-28 18:54 /etc/network/if-post-down.d/iptablessave