FirewallUpdate
Updates information about a Ionoscloud Firewall Rule.
1
knife ionoscloud firewall update (options)
Copied!

Available options:

Required options:

    datacenter_id
    ionoscloud_username
    ionoscloud_password
1
datacenter_id: --datacenter-id DATACENTER_ID, -D DATACENTER_ID
2
the ID of the data center (required)
3
4
server_id: --server-id SERVER_ID, -S SERVER_ID
5
the ID of the server
6
7
nic_id: --nic-id NIC_ID, -N NIC_ID
8
iD of the NIC
9
10
firewall_id: --firewall-id FIREWALL_ID, -F FIREWALL_ID
11
iD of the Firewall Rule
12
13
name: --name NAME, -n NAME
14
name of the Firewall Rule
15
16
protocol: --protocol PROTOCOL, -P PROTOCOL
17
the protocol of the firewall rule (TCP, UDP, ICMP, ANY)
18
19
source_mac: --source-mac MAC, -m MAC
20
only traffic originating from the respective MAC address is allowed
21
22
source_ip: --source-ip IP, -I IP
23
only traffic originating from the respective IPv4 address is allowed; null allows all source IPs
24
25
target_ip: --target-ip IP
26
in case the target NIC has multiple IP addresses, only traffic directed to the respective IP address of the NIC is allowed; null value allows all target IPs
27
28
port_range_start: --port-range-start PORT, -p PORT
29
defines the start range of the allowed port(s)
30
31
port_range_end: --port-range-end PORT, -t PORT
32
defines the end range of the allowed port(s)
33
34
icmp_type: --icmp-type INT
35
defines the allowed type (from 0 to 254) if the protocol ICMP is chosen; null allows all types
36
37
icmp_code: --icmp-code INT
38
defines the allowed code (from 0 to 254) if the protocol ICMP is chosen; null allows all codes
39
40
ionoscloud_username: --username USERNAME, -u USERNAME
41
your Ionoscloud username (required)
42
43
ionoscloud_password: --password PASSWORD, -p PASSWORD
44
your Ionoscloud password (required)
45
46
extra_config_file: --extra-config EXTRA_CONFIG_FILE_PATH, -e EXTRA_CONFIG_FILE_PATH
47
path to the additional config file
Copied!

Example

1
knife ionoscloud firewall update --datacenter-id DATACENTER_ID --server-id SERVER_ID --nic-id NIC_ID --firewall-id FIREWALL_ID --name NAME --protocol PROTOCOL --source-mac MAC --source-ip IP --target-ip IP --port-range-start PORT --port-range-end PORT --icmp-type INT --icmp-code INT --username USERNAME --password PASSWORD --extra-config EXTRA_CONFIG_FILE_PATH
Copied!
Last modified 30d ago