/
Ensure that RDP access is restricted from the internet

Ensure that RDP access is restricted from the internet

Description: 

GCP Firewall Rules are specific to a VPC Network. Each rule either allows or denies traffic when its conditions are met. Its conditions allow you to specify the type of traffic, such as ports and protocols, and the source or destination of the traffic, including IP addresses, subnets, and instances. Firewall rules are defined at the VPC network level, and are specific to the network in which they are defined. The rules themselves cannot be shared among networks. Firewall rules only support IPv4 traffic. When specifying a source for an ingress rule or a destination for an egress rule by address, you can only use an IPv4 address or IPv4 block in CIDR notation. Generic (0.0.0.0/0) incoming traffic from internet to VPC or VM instance using RDP on Port 3389 can be avoided.

Firewall rules that allow any IP address to connect to RDP ports may expose your RDP services to attackers.

The RDP service ports are:

  • TCP - 3389

  • UDP - 3389


Solution: 

  1. Go to the firewall rules page. 

  2. Click EDIT.

  3. Delete 0.0.0.0/0.

  4. Add specific IP addresses or IP ranges you want to allow to connect to your instance.

  5. Add specific protocols and ports you want to open on your instance.

  6. Click SAVE.



Reference: 

https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules

Related content

Ensure that SSH access is restricted from the internet
Ensure that SSH access is restricted from the internet
More like this
Ensure that any source IP address is not used on network ports besides web services
Ensure that any source IP address is not used on network ports besides web services
More like this
Ensure Private Google Access is enabled for all subnetwork in VPC Network
Ensure Private Google Access is enabled for all subnetwork in VPC Network
More like this
Ensure the default network does not exist in a project
Ensure the default network does not exist in a project
More like this
Ensure that IP forwarding is not enabled on Instances
Ensure that IP forwarding is not enabled on Instances
More like this
Ensure connecting to serial ports is not enabled for VM Instance
Ensure connecting to serial ports is not enabled for VM Instance
More like this