Question
How do I control allowed incoming and outgoing ports with firewall rules on the network level with a Google Cloud™ server?
Answer
cPanel & WHM does not control your firewall. If you need to control the network level firewall on a Google server, you'll need to refer to Google's documentation on this:
Virtual Private Cloud - Using Firewalls