ipfw vs ipf vs pf

HI.I have completely no idea about how to set a firewall.But i want to setup a little firewall on my pc.To cut some url,for a little protection and for learning purpose.
Witch of this 3 (ipfw,ipf,pf) is the best and the most easy to setup and use for a noob on firewalls?
 
you can't cut url's you can block ip's (at least with pf, and ipfw)
search forum, for similar threads, this has been discussed many times
 
Right, understanding the OSI model is the first piece to this puzzle. For layer 7 "filtering" (URLs in your case), you will probably want to force connections through an HTTP proxy.

-------

Not really relevant to this thread, but I'd also point out that ipfw(8) can be configured to perform some level of layer 2 filtering.
 
you can do this with commands

Code:
nslookup google.com | grep Address | grep -v # | awk '{print $2}'
Code:
ipfw table 1 add <ip_address>
Code:
ipfw add 1 deny ip from $local_net to "table(1)"

but it is wrong way, because at one IP may hosts many site and if you block ip you block all sites, not only google.com ;)
 
Hi there,
Just out of curiosity, could you tell me which firewall you ended up with and why?
I am in the same process at the moment :)

Fred
 
Back
Top