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,594 Times in 2,445 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
18 hours 56 min ago
19 hours 1 min ago
23 hours 59 min ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 13 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 1 hour ago