This is a fairly flexible firewall script that I wrote. It started out pretty simple with concrete rules and settings, but now has a fairly configurable /etc/conf.d/firewall. It suits all the purposes I need it for, perhaps someone else might find it useful or make improvements.
Created attachment 16512 [details] /home/blcknight/asdf/firewall.tar.gz
This only blocks certain incoming connections, it should be able to allow certain incoming ports and other outgoing ports e.g. ALLOW_OUT_TCP="ftp ssh http rsync" ALLOW_IN_TCP="ssh" ALLOW_OUT_UDP="domain" ALLOW_IN_UDP="" in conf.d/firewall. ${IPT} -P OUTPUT DROP should be added to init.d/firewall in function start also.
There are a few options in init.d/firewall that aren't in conf.d/firewall. They should be added and have commented explanations.
Is this meant to be just a script (maybe part of baselayout?) or a package?
best integrated with iptables i think
see above comments.