Skip to content

Commit 6f29b2b

Browse files
committed
docs for firewall command
1 parent 9e4e5eb commit 6f29b2b

File tree

1 file changed

+51
-0
lines changed
  • resource-scripts/set_azure_mgmt_firewall

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Set Azure Virtual Appliance Routing Gateway
2+
A utility resource script to to construct and send the API request to Azure to set routing tables on Azure
3+
4+
## Usage
5+
1. Add script as resource script
6+
2. Append resource script to desired firewall / switch model
7+
3. Add switch / firewall to sandbox, connect subnets across the firewall / virtual appliance
8+
4. Trigger the "set_azure_mgmt_firewall" command from setup
9+
5. Confirm that the request worked:
10+
- that the routing table on Azure appears correct
11+
- that traffic is flowing through virtual appliance (try traceroute)
12+
- If issues, confirm that JSON request appears valid
13+
14+
## Sample request JSON structure
15+
```json
16+
{
17+
"route_tables": [
18+
{
19+
"name": "myRouteTable1",
20+
"subnets": [
21+
"subnetId1",
22+
"subnetId2"
23+
],
24+
"routes": [
25+
{
26+
"name": "myRoute1",
27+
"address_prefix": "10.0.1.0/28",
28+
"next_hop_type": "VirtualAppliance",
29+
"next_hop_address": "10.0.1.15"
30+
}
31+
]
32+
},
33+
{
34+
"name": "myRouteTable2",
35+
"subnets": [
36+
"subnetId3",
37+
"subnetId4"
38+
],
39+
"routes": [
40+
{
41+
"name": "myRoute2",
42+
"address_prefix": "10.0.1.0/28",
43+
"next_hop_type": "VirtualAppliance",
44+
"next_hop_address": "10.0.1.15"
45+
}
46+
]
47+
}
48+
]
49+
}
50+
```
51+

0 commit comments

Comments
 (0)