Skip to content

Commit 4f6c899

Browse files
committed
Updated FirewallRuleConfig ip address examples
1 parent 0d8d5ba commit 4f6c899

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

openapi.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13062,7 +13062,8 @@ paths:
1306213062
"ports": "22, 80, 443",
1306313063
"addresses": {
1306413064
"ipv4": [
13065-
"192.0.2.2/32"
13065+
"192.0.2.0/24",
13066+
"198.51.100.2/32"
1306613067
],
1306713068
"ipv6": [
1306813069
"2001:DB8::/128"
@@ -13080,7 +13081,8 @@ paths:
1308013081
"ports": "49152-65535",
1308113082
"addresses": {
1308213083
"ipv4": [
13083-
"192.0.2.2/32"
13084+
"192.0.2.0/24",
13085+
"198.51.100.2/32"
1308413086
],
1308513087
"ipv6": [
1308613088
"2001:DB8::/128"
@@ -13109,8 +13111,8 @@ paths:
1310913111
--label example-firewall \
1311013112
--rules.outbound_policy ACCEPT \
1311113113
--rules.inbound_policy DROP \
13112-
--rules.inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1/32", "192.0.2.2/32"], "ipv6": ["2001:DB8::/128"]}, "action": "ACCEPT"}]' \
13113-
--rules.outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.2/32"],"ipv6": ["2001:DB8::/128"]}, "action": "DROP", "label": "outbound-rule123", "description": "An example outbound rule description."}]'
13114+
--rules.inbound '[{"protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"], "ipv6": ["2001:DB8::/128"]}, "action": "ACCEPT"}]' \
13115+
--rules.outbound '[{"protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"],"ipv6": ["2001:DB8::/128"]}, "action": "DROP", "label": "outbound-rule123", "description": "An example outbound rule description."}]'
1311413116
/networking/firewalls/{firewallId}:
1311513117
parameters:
1311613118
- name: firewallId
@@ -13581,7 +13583,8 @@ paths:
1358113583
"ports": "22, 80, 443",
1358213584
"addresses": {
1358313585
"ipv4": [
13584-
"192.0.2.2/32"
13586+
"192.0.2.0/24",
13587+
"198.51.100.2/32"
1358513588
],
1358613589
"ipv6": [
1358713590
"2001:DB8::/128"
@@ -13599,7 +13602,8 @@ paths:
1359913602
"ports": "49152-65535",
1360013603
"addresses": {
1360113604
"ipv4": [
13602-
"192.0.2.2/32"
13605+
"192.0.2.0/24",
13606+
"198.51.100.2/32"
1360313607
],
1360413608
"ipv6": [
1360513609
"2001:DB8::/128"
@@ -13615,8 +13619,8 @@ paths:
1361513619
- lang: CLI
1361613620
source: >
1361713621
linode-cli firewalls rules-update 123 \
13618-
--inbound '[{"action":"ACCEPT", "protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.1/32", "192.0.2.2/32"], "ipv6": ["2001:DB8::/128"]}}]' \
13619-
--outbound '[{"action":"DROP","protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.1/32", "192.0.2.2/32"], "ipv6": ["2001:DB8::/128`"]}}]'
13622+
--inbound '[{"action":"ACCEPT", "protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"], "ipv6": ["2001:DB8::/128"]}}]' \
13623+
--outbound '[{"action":"DROP","protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"], "ipv6": ["2001:DB8::/128`"]}}]'
1362013624
/networking/vlans:
1362113625
x-linode-cli-command: vlans
1362213626
get:
@@ -21027,7 +21031,8 @@ components:
2102721031
items:
2102821032
type: string
2102921033
example:
21030-
- 192.0.2.2/32
21034+
- 192.0.2.0/24
21035+
- 198.51.100.2/32
2103121036
ipv6:
2103221037
description: |
2103321038
A list of IPv6 addresses or networks. Must be in IP/mask format.

0 commit comments

Comments
 (0)