safety wrote:Apple uses
ipfw as a firewall filter. I have found some good tutorials on this, plus
brickhouse is a GUI that has list of commonly exploitable ports that it makes rules for with a few clicks.
As you don't use Windows, you won't need Brickhouse. Vulnerable ports are most commonly found on Windows hosts. I assume you don't run any service like a HTTP server or similar. Thus, you don't need it.
Brickhouse claims to be useful for security, but actually it isn't.
safety wrote:Netfilter seems to be similar to ipfw, but without any experience I can't be sure. What is your take on this?
I control my filter via commandline with the
iptables command. The Netfilter is very flexible and supports creation of very complex rules, which I make use of.
safety wrote:mm_freak, do you test your firewall? If so, what methods do you use? Do you use online tests or something similar to nmap?
I'm running many services and most of them are open for the internet. My hostname is
kill.mine.nu. I'm testing its open ports locally via
netstat --inet --inet6 -np. It shows me all listening sockets on all network interfaces, which are accessible though the internet or my local network.
I close any ports to which remote users don't need access to, like my database daemon, which I use only locally. Theoretically it doesn't add any security, but I do it, so an attacker can't make use of any potential security flaws in that software.
I test my host two times with
nmap -vvvA. The first time I test my loopback device
localhost, because all loopback connections are permitted. This would be the worst case scenario for an attack. If I find any flaws here, I correct them. Then I test my ethernet device, for which all Netfilter rules apply. In normal case only connections explicitly allowed to pass are shown there. If this is true, then I'm finished.
Edit: online testing tools are useless. They show to a WinXP/2k user that port 1025 is open, even though it is in no way a security hole. They even tell you that your host is replying to ICMP Echo (ping). What's so bad about this? Correct: nothing!