This is the firewall settings dialog - much the same as we know it from Windows XP already:
However, once you fire up the management console (mmc.exe), you can add snapins for advanced firewall configuration (ok, IPSec is one of my personal favorites and not necessary to configure the firewall per se...):
Once you have done this, you can now configure the firewall like, well, an administrator would expect - rule based: