For you're first question you do need a firewall for a server.
second if first is yes
is there a script (/etc/init.d/firewall) that uses iptables where i can simple say on 2 lines
TCP_ALLOW="21 22 80" etc.
and
UDP_ALLOW="7777 666" etc.
for the above, i think that you are trying to allow ports 21, 22 and 80 to be open and UDP 7777 and 666 to be open. IF thay is the case you need to declare them individually. If you wanted ports 21 TO 80 open you could use this 21:80.
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
The Bastille firewall ( http://www.bastille-linux.org/source.htm ) has such a script where you can specify the ports that should be open. Download the source tarball, extract it and have a look at the firewall scripts.
ISPConfig also uses the Bastille firewall, so you could also extract the ISPConfig sources and have a look at the folder install_ispconfig/security.
Recent comments
16 hours 23 min ago
21 hours 22 min ago
22 hours 48 min ago
23 hours 41 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 22 hours ago
1 day 23 hours ago