I know this question has been asked before, but I can't find a fix for my problem, I just can't get my script to run on startup. Here's my script:
iptables -A INPUT -m state --state NEW -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -m state --state NEW -p tcp --sport 22 -j ACCEPT
I put it into the
Made sure it had executable by using
chmod 755 /etc/init.d/iptables.sh
But nothing :( ... Any suggestions?
[ Nov 2017 ] The accepted answer here should be considered obsolete, please see https://raspberrypi.stackexchange.com/a/75057/5538