As you didn’t specify otherwise, I’ll suppose that all the ports you mentioned need to be open. Please, check if it is the case, it’ could be dangerous to have open ports when not needed.
Well let’s go.
- Export your current configuration
- launch ipconfig /all, find your MAC address and note it
- go to Stealth Ports Wizard and select the 3d option
- go to FW > Network Security Policy > Applications Rules and remove everything except Comodo Internet Security, Windows System Applications and Windows Updater Applications.
Right click on Windows Updater Applications > edit > use a Predefined Policy > Blocked application
Now we’ll make files group for each of your games ==> Defense+ > Computer security Policy > Protected Files and Folders > Groups > Add > A New Group > Choose file group name : Team Fortress 2 > apply > scroll down to “Team Fortress 2” > right click > add ==> add the files of Team Fortress 2 requiring internet access.
Do the same for the 2 other games.
We’ll make ports sets forTeam Fortress 2 ans Steam ==> FW > Network Security Policy > Ports Sets > Add > A new Ports Set > Type name of port set : UDP ports for Steam > apply > scroll down to “UDP ports for Steam” > right click > add > a single port : 3478
add > a port range : 4379-4380
add > a port range : 27000-27030
Do the same for the UDP ports of Team Fortress 2
Global rules to open the ports
==> FW > Network Security Policy > Global Rules > add
Action: Allow
Protocol: TCP
Direction: In
Description: Rule for incoming TCP connections for Team Fortress 2 and Steam
Source Address: Any Address
Destination Address: your MAC address
Source port: Any
Destination port: A Port Range : 27014-27050
Action: Allow
Protocol: UDP
Direction: In
Description: Rule for incoming UDP connections for Team Fortress 2
Source Address: Any Address
Destination Address: your MAC address
Source port: Any
Destination port: A Port Set : the port set you have made ie “UDP ports for Team Fortress 2”
Action: Allow
Protocol: UDP
Direction: In
Description: Rule for incoming UDP connections for Steam Fortress 2
Source Address: Any Address
Destination Address: your MAC address
Source port: Any
Destination port: A Port Set : the port set you have made ie "UDP ports for Steam "
Action: Allow
Protocol: TCP or UDP
Direction: In
Description: Rule for incoming TCP or UDP connections for Mumble
Source Address: Any Address
Destination Address: your MAC address
Source port: Any
Destination port: A Single Port : 64738
Move these rules above any Global Blocking Rule
Applications Rules
==> FW > Network Security Policy > Applications Rules > add > Select > Files Group > Team Fortress 2 > add (lower left) :
Action: Allow
Protocol: TCP
Direction: In
Description: Rule for incoming TCP connections
Source Address: Any
Destination Address: Any
Source port: Any
Destination port: A Port Range : 27014-27050
Action: Allow
Protocol: UDP
Direction: In
Description: Rule for incoming UDP connections
Source Address: Any
Destination Address: Any
Source port: Any
Destination port: A Port Set : the port set you have made ie “UDP ports for Team Fortress 2”
Action: Allow
Protocol: TCP or UDP
Direction: Out
Description: Rule for outgoing TCP and UDP connections
Source Address: Any
Destination Address: Any
Source port: Any
Destination port: Any
Action: Allow
Protocol: ICMP
Direction: Out
Description: Ping the server
Source Address: Any
Destination Address: Any
ICMP Details: Message: ICMP Echo Request
Action: Ask (Also select the check box ‘Log as a firewall event if this rule is fired’)
Protocol: TCP
Direction: Out
Description: Rule for HTTP requests
Source Address: Any
Destination Address: Any
Source port: Any
Destination port: A Single Port : 80
Action: Block (Also select the check box ‘Log as a firewall event if this rule is fired’)
Protocol: IP
Direction: In/Out
Description: Block and Log All Unmatching Requests
Source Address: Any
Destination Address: Any
IP Details: IP Protocol: Any
Do the same with Steam and Mumble
Make a last Application rule ==> add > Select > Files Groups > All Applications > use a Predefined Policy > Blocked application
Finally, move the 2 blocked application rules (ie Windows Updater Applications and the All Applications one) below all the other Application rules.
Edit : don’t forget to set the FW Security Level on Custom Policy