blob: 05895c5b3a4c75f88114282eb2f8b6fc46d73aac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
routing-instances {
NAT-LAN {
forwarding-options {
dhcp-relay {
dhcpv6 {
overrides {
allow-snooped-clients;
}
group all-networks {
active-server-group v6-dhcp;
route-suppression access-internal;
interface ae999.30;
{% for distro in floor_distros %}
{% if v.tree[distro] %}
{% for key, switchname in v.tree[distro].items() %}
{% if "nat" in objects["public/switches"].switches[switchname].tags %}
{% set network = v.distro_networks[switchname] %}
interface ae10.{{ network.vlan }};
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{# NAT stuff ringen #}
{% if v.tree['d1.ring'] %}
{% for key, switchname in v.tree['d1.ring'].items() %}
{% set network = v.distro_networks[switchname] %}
{% if "nat" in objects["public/switches"].switches[switchname].tags %}
interface ae11.{{ network.vlan }};
{% endif %}
{% endfor %}
{% endif %}
}
server-group {
v6-dhcp {
2a06:5841:f:d::98;
}
}
}
server-group {
v4-dhcp {
185.110.148.98;
}
}
group all-networks {
active-server-group v4-dhcp;
overrides {
allow-snooped-clients;
trust-option-82;
}
route-suppression {
access-internal;
}
interface ae999.30;
{% for distro in floor_distros %}
{% if v.tree[distro] %}
{% for key, switchname in v.tree[distro].items() %}
{% if "nat" in objects["public/switches"].switches[switchname].tags %}
{% set network = v.distro_networks[switchname] %}
interface ae10.{{ network.vlan }};
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{# NAT stuff ringen #}
{% if v.tree['d1.ring'] %}
{% for key, switchname in v.tree['d1.ring'].items() %}
{% set network = v.distro_networks[switchname] %}
{% if "nat" in objects["public/switches"].switches[switchname].tags %}
interface ae11.{{ network.vlan }};
{% endif %}
{% endfor %}
{% endif %}
}
}
}
protocols {
ospf3 {
realm ipv4-unicast {
area 0.0.0.0 {
/* natfw1 zone: NAT-LAN */
interface ae999.30;
}
reference-bandwidth 1000g;
export v4-from-direct-to-ospf;
import v4-only-default-from-ospf;
}
area 0.0.0.0 {
/* natfw1 zone: NAT-LAN */
interface ae999.30;
}
reference-bandwidth 1000g;
export v6-from-direct-to-ospf
import v6-only-default-from-ospf;
}
}
instance-type virtual-router;
/* natfw1 zone: NAT-LAN */
interface ae999.30;
/* Test interface */
interface lo0.2;
}
NAT-WIFI {
forwarding-options {
dhcp-relay {
dhcpv6 {
overrides {
allow-snooped-clients;
}
group all-networks {
active-server-group v6-dhcp;
route-suppression access-internal;
interface irb.778;
}
server-group {
v6-dhcp {
2a06:5841:f:d::98;
}
}
}
server-group {
v4-dhcp {
185.110.148.98;
}
}
group all-networks {
active-server-group v4-dhcp;
overrides {
allow-snooped-clients;
trust-option-82;
}
route-suppression {
access-internal;
}
interface ae999.20;
interface irb.778;
}
}
}
protocols {
ospf3 {
realm ipv4-unicast {
area 0.0.0.0 {
interface ae999.20;
}
reference-bandwidth 1000g;
import v4-only-default-from-ospf;
export v4-from-direct-to-ospf;
}
area 0.0.0.0 {
/* natfw1 zone: NAT-WIFI */
interface ae999.20;
}
reference-bandwidth 1000g;
import v6-only-default-from-ospf;
export v6-from-direct-to-ospf;
}
}
instance-type virtual-router;
/* natfw1 zone: NAT-WIFI */
interface ae999.20;
/* s1.tele mgmt and lab (static-ip) */
interface ae11.20;
/* Test interface */
interface lo0.1;
/* All wifi clients for SSID The Gathering */
interface irb.778;
}
}
routing-options {
nonstop-routing;
rib inet6.0 {
static {
route 2a06:5840::/29 {
discard;
no-install;
}
}
}
rib inet.0 {
static {
/* NAT POOL */
route 185.110.150.0/24 next-hop 185.110.148.163;
/* vpn.tg23.gathering.org */
route 151.216.255.0/24 next-hop 185.110.148.110;
/* Telenor */
route 88.92.0.0/17 {
discard;
no-install;
}
/* RIPE */
route 151.216.128.0/17 {
discard;
no-install;
}
/* KANDU */
route 185.110.148.0/22 {
discard;
no-install;
}
}
}
router-id 185.110.148.0;
autonomous-system 21067;
}
protocols {
ospf3 {
realm ipv4-unicast {
area 0.0.0.0 {
/* natfw1 zone: inet */
interface ae999.10;
/* stand */
interface ae12.0;
}
reference-bandwidth 1000g;
export [ static-to-ospf direct-to-ospf v4-default-from-bgp ];
}
area 0.0.0.0 {
/* natfw1 zone: inet */
interface ae999.10;
/* stand */
interface ae12.0;
}
export [ static-to-ospf direct-to-ospf v6-default-from-bgp ];
reference-bandwidth 1000g;
}
bgp {
group telenor {
authentication-key "<removed>"; ## SECRET-DATA
peer-as 2119;
neighbor 193.212.22.1 {
import telenor-in-v4;
export telenor-out-v4;
}
neighbor 2001:4600:9:300::291 {
import telenor-in-v6;
export telenor-out-v6;
}
}
}
}
|