Hi ....
ok... only started using Linux (RedHat 7) a few weeks ago because i was instructed to build a firewall on a zero budget. I've been closely following the 'Firewall how-to' and the advice from various sites and everythings been going great; (rebuilt the kernel, installed 2 network cards, enabled packet forwarding, etc.) everything that should be working is, that is until now (cue sinister music).
I've gotten to the stage where i set the rules for ipchains. I've written the firewall script rc.firewall with all the services i need etc.(thanks to R.Zieglers site
http://www.linux-firewall-tools.com/linux/), but i can't get the script to run properly!
When i run the script (using the command #sh /etc/rc.d/rc.firewall) i get a load of error messages e.g. command not found & no such file or directory etc. The thing is, is that if i type the command in on the command line it works fine, but if its in the script it dosent work. Also the files its says arent there are. Because of my lack of experience in Linux, I presume (hope) i am missing something simple. What am i doing wrong?
Please help!