Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Automatic Upcloud DNS firewall rules #100

Open
nicovs opened this issue Dec 9, 2021 · 0 comments
Open

Add Automatic Upcloud DNS firewall rules #100

nicovs opened this issue Dec 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@nicovs
Copy link

nicovs commented Dec 9, 2021

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"
@nicovs nicovs added the enhancement New feature or request label Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant