Steam losing connection (What firewall rules need to be set?)

Required Ports for Steam

Which ports do I need to open on my router or firewall for Steam? To log into Steam and download content: HTTP (TCP port 80) and HTTPS (443) UDP 27015 through 27030 TCP 27015 through 27030

Steam Client

UDP 27000 to 27015 inclusive (Game client traffic) UDP 27015 to 27030 inclusive (Typically Matchmaking and HLTV) UDP 27031 and 27036 (incoming, for In-Home Streaming) TCP 27036 and 27037 (incoming, for In-Home Streaming) UDP 4380

Dedicated or Listen Servers

TCP 27015 (SRCDS Rcon port)

Steamworks P2P Networking and Steam Voice Chat

UDP 3478 (Outbound) UDP 4379 (Outbound) UDP 4380 (Outbound)

Note:

Many university networks and proxies block required ports for Steam operation - please consult your network administrator to ensure the required ports are open if you are using a university network or a proxy. Ports required for Steam can not be re-mapped to HTTP or reconfigured to a custom port range.

Advanced

For generic Steam HTTP/HTTPS requests, your proxy should allow the following domains: steampowered.com steamcommunity.com steamgames.com steamusercontent.com steamcontent.com steamstatic.com akamaihd.net

Info was found here