Skip to content

Public IPv4s should be unique #1055

@scottyeager

Description

@scottyeager

It's currently possible for a single IPv4 address to be simultaneously:

  1. Assigned to a node via a public config for gateway functions
  2. Assigned to the pool of rentable IPv4 addresses for the same farm as the previously mentioned node

This creates a problem if both a node and a VM are trying use the same IP address at the same time. Of course the farmer should avoid creating this situation in the first place. However, it's a simple check we can add to avoid a fairly serious problem:

  1. When an IPv4 address is added to a public config, check that it's not part of the IP pool for the same farm
  2. When an IPv4 address is added to a farm's IP pool, check that it's not assigned to a public config for a node in the same farm

The same farm part is important, because otherwise farmers can falsely add IP addresses to their farm's pool and deny the real owner from using them in a public config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions