1- # ########################
2- # # NETWORK AREA ROUTES ##
3- # ########################
1+ # ###################
2+ # # FIREWALL ROUTE ##
3+ # ###################
44
5- resource "stackit_network_area_route " "rfc1918_10 " {
5+ resource "stackit_routing_table " "wan " {
66 organization_id = var. organization_id
77 network_area_id = var. network_area_id
8- destination = { type = " cidrv4" , value = " 10.0.0.0/8" }
9- next_hop = { type = " ipv4" , value = stackit_network_interface.lan.ipv4 }
8+ name = " wan"
109}
1110
12- resource "stackit_network_area_route" "rfc1918_172" {
13- organization_id = var. organization_id
14- network_area_id = var. network_area_id
15- destination = { type = " cidrv4" , value = " 172.16.0.0/12" }
16- next_hop = { type = " ipv4" , value = stackit_network_interface.lan.ipv4 }
11+ resource "stackit_routing_table_route" "wan" {
12+ organization_id = var. organization_id
13+ network_area_id = var. network_area_id
14+ routing_table_id = stackit_routing_table. wan . routing_table_id
15+
16+ destination = {
17+ type = " cidrv4"
18+ value = " 0.0.0.0/0"
19+ }
20+
21+ next_hop = {
22+ type = " internet"
23+ }
1724}
1825
19- resource "stackit_network_area_route" "rfc1918_192" {
26+ # ########################
27+ # # NETWORK AREA ROUTES ##
28+ # ########################
29+
30+ resource "stackit_network_area_route" "default" {
2031 organization_id = var. organization_id
2132 network_area_id = var. network_area_id
22- destination = { type = " cidrv4" , value = " 192.168.0.0/16" }
23- next_hop = { type = " ipv4" , value = stackit_network_interface.lan.ipv4 }
33+
34+ destination = {
35+ type = " cidrv4"
36+ value = " 0.0.0.0/0"
37+ }
38+ next_hop = {
39+ type = " ipv4"
40+ value = stackit_network_interface.lan.ipv4
41+ }
2442}
0 commit comments