console
$ curl "https://api.vultr.com/v2/firewalls" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"firewall_group_id" : "<target-firewall-group>"
}'
console
$ vultr-cli firewall group list
console
$ vultr-cli instance list
console
$ vultr-cli instance update-firewall-group --instance-id <target-instance> --firewall-group-id <target-firewall-
console
$ curl "https://api.vultr.com/v2/firewalls" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ vultr-cli firewall group list
terraform
resource "vultr_firewall_group" "default" {
description = "default-fw"
}
resource "vultr_firewall_rule" "allow_http" {
firewall_group_id = vultr_firewall_group.default.id
protocol = "tcp"
port = "80"
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
notes = "Allow HTTP"
}
resource "vultr_firewall_rule" "allow_https" {
firewall_group_id = vultr_firewall_group.default.id
protocol = "tcp"
port = "443"
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
notes = "Allow HTTPS"
}
2024-08-09 00:01:58,428 - INFO - --> Running transaction check 2024-08-09 00:01:58,428 -
INFO - ---> Package leapp.noarch 0:0.14.0-1.el7 will be installed 2024-08-09 00:01:58,428
- INFO - --> Processing Dependency: python2-leapp = 0.14.0-1.el7 for package: leapp-
0.14.0-1.el7.noarch 2024-08-09 00:01:58,430 - INFO - ---> Package leapp-upgrade-el7toel8-
deps.noarch 1:0.19.0-7.1.el7 will be installed 2024-08-09 00:01:58,433 - INFO - -->
Processing Dependency: pciutils for package: 1:leapp-upgrade-el7toel8-deps-0.19.0-
7.1.el7.noarch 2024-08-09 00:01:59,881 - INFO - --> Finished Dependency Resolution 2024-
08-09 00:01:59,923 - INFO - Error: Package: leapp-0.14.0-1.el7.noarch (elevate) 2024-08-
09 00:01:59,923 - INFO - Requires: python2-leapp = 0.14.0-1.el7 2024-08-09 00:01:59,923 -
INFO - Installed: python2-leapp-0.16.0-2.el7.noarch (@elevate) 2024-08-09 00:01:59,923 -
INFO - python2-leapp = 0.16.0-2.el7 2024-08-09 00:01:59,923 - INFO - Available: python2-
leapp-0.12.1-100.20210924142320684911.master.28.g1f03432.el7.noarch (elevate) 2024-08-09
00:01:59,923 - INFO - python2-leapp = 0.12.1-
100.20210924142320684911.master.28.g1f03432.el7 2024-08-09 00:01:59,923 - INFO -
Available: python2-leapp-0.14.0-1.el7.noarch (elevate) 2024-08-09 00:01:59,923 - INFO -
python2-leapp = 0.14.0-1.el7 2024-08-09 00:01:59,924 - INFO - Error: Package: 1:leapp-
upgrade-el7toel8-deps-0.19.0-7.1.el7.noarch (elevate) 2024-08-09 00:01:59,924 - INFO -
Requires: pciutils 2024-08-09 00:01:59,924 - INFO - You could try using --skip-broken to
work around the problem 2024-08-09 00:02:00,429 - INFO - You could try running: rpm -Va -
-nofiles --nodigest 2024-08-09 00:02:00,474 - ERROR - Command ['/usr/bin/yum', 'install',
'-y', 'leapp-0.14.0-1.el7', 'python2-leapp-0.14.0-1.el7', 'leapp-data-almalinux-0.1-
6.el7'] failed with return code 1 2024-08-09 00:02:00,475 - ERROR - Failed: installing
leapp. The reason: Command '['/usr/bin/yum', 'install', '-y', 'leapp-0.14.0-1.el7',
'python2-leapp-0.14.0-1.el7', 'leapp-data-almalinux-0.1-6.el7']' returned non-zero exit
status 1. 2024-08-09 00:02:01,039 - DEBUG - Going to write json
'/usr/local/psa/var/centos2alma/actions.json' with new data 2024-08-09 00:02:02,167 -
DEBUG - Sent error report 2024-08-09 00:02:02,168 - WARNING - Conversion status flag file
does not exist. Skip sending conversion status 2024-08-09 00:02:02,168 - ERROR -
centos2alma process has failed. Error: Failed: installing leapp. The reason: Command
'['/usr/bin/yum', 'install', '-y', 'leapp-0.14.0-1.el7', 'python2-leapp-0.14.0-1.el7',
'leapp-data-almalinux-0.1-6.el7']' returned non-zero exit status 1. 2024-08-09
00:02:02,170 - INFO - Going to free lockfile
'/usr/local/psa/var/centos2alma/centos2alma.lock'... ...
console
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"region" : "<location>",
"ip_type" : "<address_type>",
"label" : "<label>"
}'
console
$ vultr-cli reserved-ip list
2.Create a new reserved IP in a specific Vultr location.console
$ vultr-cli reserved-ip create --label <label> --region <location> --type <address_type>
terraform
resource "vultr_reserved_ip" "rip" {
region = "ewr"
ip_type = "v4" # v4 | v6
label = "web-rip"
# instance_id = vultr_instance.server.id
}
3.Apply the configuration and observe the following output:Sorry, you have been blocked
You are unable to access example.com
Why have I been blocked?
This website is using a security service to protect itself from online attacks. The action
you just performed triggered the security solution. There are several actions that could
trigger this block, including submitting a certain word or phrase, a SQL command or
malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when
this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: hfdd73ghg94hf78 • Your IP:
203.0.113.2 • Performance & security by Cloudflare
console
$ curl "https://api.vultr.com/v2/reserved-ips" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
console
$ curl "https://api.vultr.com/v2/reserved-ips/{reserved-ip}/attach" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"instance_id" : "<target-instance-id>"
}'
console
$ vultr-cli reserved-ip list
console
$ vultr-cli instance list
console
$ vultr-cli reserved-ip attach <reserved-ip-id> --instance-id="<target-instance-id>"
terraform
resource "vultr_instance" "server" {
# ...existing fields
}
resource "vultr_reserved_ip" "rip" {
region = "ewr"
ip_type = "v4"
label = "web-rip"
instance_id = vultr_instance.server.id
}
227 Entering Passive Mode (203,0,13,2,119,129).
ftp: connect: Connection timed out
Error: Connection timed out after 20 seconds of inactivity Error: Failed to retrieve directory listing
nmap -p49192,65535 203.0.13.2
Host is up (0.25s latency).
PORT STATE SERVICE
49192/tcp closed unknown
65535/tcp closed unknown
PassivePorts 49152 65535