upcloud-cli
upcloud-cli copied to clipboard
Add Automatic Upcloud DNS firewall rules
Is your feature request related to a problem? Please describe. I need to add the 8 DNS Rules by hand over the CLI. Not that this is a major problem, but it would be nice to be able to invoke 1 single CLI command
Describe the solution you'd like n upctl CLI option to the create, delete, show option like:
upctl server firewall add-automatic "${SERVERNAME}"
Describe alternatives you've considered
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv4 --protocol udp --source-port-start 53 --source-port-end 53 --src-ipaddress-block 94.237.40.9/32 --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv4 --protocol tcp --source-port-start 53 --source-port-end 53 --src-ipaddress-block 94.237.40.9/32 --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv4 --protocol udp --source-port-start 53 --source-port-end 53 --src-ipaddress-block 94.237.127.9/32 --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv4 --protocol tcp --source-port-start 53 --source-port-end 53 --src-ipaddress-block 94.237.127.9/32 --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv6 --protocol udp --source-port-start 53 --source-port-end 53 --src-ipaddress-block '2a04:3540:53::1/128' --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv6 --protocol tcp --source-port-start 53 --source-port-end 53 --src-ipaddress-block '2a04:3540:53::1/128' --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv6 --protocol udp --source-port-start 53 --source-port-end 53 --src-ipaddress-block '2a04:3540:53::1/128' --comment "Upcloud DNS"
upctl server firewall create "${SERVERNAME}" --direction in --action accept --position 1 --family IPv6 --protocol tcp --source-port-start 53 --source-port-end 53 --src-ipaddress-block '2a04:3540:53::1/128' --comment "Upcloud DNS"