Drawer content here

How To: Add/Edit/Delete Public IP on Virtual Machine or Server

Updated by Christian Presley on Nov 08, 2018
Article Code: kb/309

Lumen Cloud customers may wish to add a public IP to specific virtual machine or Bare Metal server in their cloud environment to deliver services. Public IPs are delivered using a 1 to 1 NAT model.

General Notes & Best Practices

  • All public IPs deployed on the platform have hairpinning enabled.
  • In its current iteration setting a source IP filter will secure all public ports, single ports or port ranges specified by the customer. Customers can leverage OS based firewall services if they wish to secure public services in a more granular fashion
  • Customers are encouraged to leverage the source IP filter unless delivering completely open public internet services to their user community.
  • Customers should avoid opening RDP or SSH to their virtual machines to the public internet. As such the following are recommended access methods.
    1. Use the free OpenVPN client included in every Lumen Cloud Account. Refer to How To Configure Client VPN. This is the ideal solution for individuals who are mobile and not in fixed office or data center locations.
    2. Build an IPSEC VPN Tunnel from a remote office or data center location. Refer to Creating a Self-Service IPSEC Site-to-Site VPN Tunnel. IPSEC VPN tunnels are best for remote access to Cloud Virtual Machines when administrators are in centralized offices or data centers.
    3. If either of the previous options are not feasible customers should at a minimum use the source IP filter service on the public IP and pair that with local OS firewall policies within the guest VM.

Exceptions

  • Public IP's can only be applied to the Primary Network interface. While the platform allows for Secondary Network interfaces customers cannot deploy a public IP to them.

Add Public IP to Server

  1. Open the Servers GUI in the Control Portal

  2. Navigate to the Server you wish to add a public IP, select Action, Add Public IP

    Add Public IP Action

  3. In the Add Public IP Address form customers should populate the appropriate fields that meet their business needs. The GUI allows customers to add multiple single port, port ranges and CIDR Source IP ranges.

  • Internal IP Address: by default the GUI will present the private IP address of the virtual instance currently deployed. As the Lumen Cloud leverages a 1 to 1 NAT the public IP will be mapped to this private IP. It is important to note that should a customer require more than 1 public IP on a virtual machine the same process applies except when visiting the GUI the internal IP address field will show Add new IP address. During the provisioning of the 2nd Public IP, as we use 1 to 1 NAT, a new private IP will also be bound to the virtual machine.

  • Public Port(s): A fixed, defined list of frequently used TCP ports customers can simple select from to save time.

  • Single Port: A specific TCP or UDP port for an application service

  • Port Range: A specific range of TCP or UDP ports for an application service

  • Restrict Traffic to Source IP: A flag that allows customers to input a source IP filter on the public IP. If this is not enabled any ports defined will be accessible by anyone on the public internet.

  • Source IP (CIDR): The list(s) of source IP or IP Ranges, in CIDR format, a customer wishes to permit access to the defined TCP or UDP ports. All other traffic will be blocked. Please see Wikipedia Classless Inter-Domain Routing or IP Address Guide's CIDR Tool for more details on proper format of CIDR ranges in the interface.

    Add Public IP Action

    Add Public IP Action

Edit or Delete Public IP on a Server

  1. Open the Servers GUI in the Control Portal

  2. Navigate to the Server you wish to edit or delete the public IP, select the public IP in Server Info portion of the GUI

    Add Public IP Action

  3. Make the appropriate updates to the Ports, CIDR and other configuration data and select Update IP Address or select the Remove Public IP button to delete the Public IP.

    Add Public IP Action

Frequently Asked Questions

Q: What happens to my Public IP if I use the pause, power off or archive services in Lumen Cloud?

A: Public IP addresses are static and using any of these features does not remove the public IP services from the server. The only time a public IP is removed from a server is a) when the server is deleted b) the customer removes the public IP in the GUI or API

Q: How are customers billed for public IP addresses?

A: Customers are billed a nominal fee per public IP on a monthly basis. Public IP's are not an hourly billing service and as such using a public IP even for an hour will result in a nominal charge for the public IP address.

Q: What is the maximum number of Public IPs that can be bound to a server?

A: As the platform uses a 1 to 1 NAT (public to private) and /24 network sizes the current maximum number of public IPs is 219 per VM. Bare Metal servers are only permitted a single public IP currently.