Skip to content

hostkeys: exclude ip classes for hostkey #413

@Szparki

Description

@Szparki

On a few servers I have many IP addresses (which keep changing) on many interfaces, mostly used by docker.
Is there a way to exclude a range of IP's or a network, for ex: 172.16.0.0/8?

Or to a wildcard in the interface name, ex br-*.
In the documentation I only found how to exclude specific interfaces or IP addresses:

ssh::hostkeys::exclude_interfaces:
  - eth0
  - eth3
ssh::hostkeys::exclude_ipaddresses:
  - 192.168.0.1
  - 10.42.24.242

Of course, I could add all IP's here but that'd be at least a few hundred lines :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions