Problem in setting up firewalls

How do you configure the windows firewall especially using group policies?
As far as I know it is the quickest method.
A firewall is a device or set of devices designed to permit or deny network transmissions based upon a set of rules and is frequently used to protect networks from unauthorized access while permitting legitimate communications to pass.
But it does not serve the above definition.
Please help!
