How to Block Ports on a Firewall
The exact steps to unblock ports on a firewall differ but the logic is the same. For instance, on the built-in Windows firewall by default all ports and programs are denied Internet access. The first time an application attempts to connect, you will be asked whether to allow it or not.
Some firewalls have the option to allow one-time access only, while others add an application (and very often the port it used the first time as well) to the list of programs, which can access the Net. If you need to give an application permanent access to the Internet, it is fine to include it in the list of applications, which always are allowed to access the Net on a specific port or on any port.
More advanced firewalls allow you to configure filters that are more precise. Very often, your choice for rules is not limited only to ports and applications, but it could include IPs, domain names, or protocols as well. While this gives more freedom to the administrator, it also makes your task a bit more difficult because now there are many more rules to set.
Some of the really advanced firewalls (such as the firewall in Windows 7) allow you to configure even the direction (incoming or outgoing) of traffic. For example, you can allow incoming traffic from a particular IP, application, protocol, or port but block all the outgoing traffic and vice versa. This allows you to be very precise in the rules you set. If you make a mistake, though, it could block part of the traffic, thus making it more difficult to understand why this happens. In some cases, you might even be unable to detect the firewall at all.
Blocking ports on a firewall does not require any specific knowledge and skills but it does require concentration. You also should write down any specifics (i.e. I blocked only this and this because of that and that) you might later forget because if a problem arises, these notes will help you to troubleshoot it faster.