Software firewall configuration

Hi,

I am configuration for "software firewall" for all machines.

There are 3 directions - Inbound, Outbound, Both

1) Let say a proxy server opened tcp/8080, below policy in "Both" direction can meet the requirement ?

2) Recommended to configure Deny ALL Inbound / Outbound ?

Or I have to configure for Inbound & Outbound rules ?

1st rule

2nd rule