I've just rebuilt a Debian 7.3 server. I'm working through the instructions in the "Securing Your Server"
https://library.linode.com/securing-your-server page and copied and pasted the rules as shown into an /etc/iptables.firewall.rules file. When I run the command "sudo iptables-restore < /etc/iptables.firewall.rules", I always get this error:
iptables-restore v1.4.14: no command specified
Error occurred at line: 33
Line 33 is the last line in the file, "COMMIT".
I copied and pasted the file from the web page into sublimetext editor and double-checked to ensure there aren't any bad characters in the file. The permissions for the file are 644 and it's owned by root:root.
Has something changed to make this document out-of-date? I went through this process early last December and I was able to create this file and then create the firewall rules without any problems.
Thanks!