forked from jtkristoff/junos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rov.conf
94 lines (88 loc) · 1.87 KB
/
rov.conf
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
prefix-list rpki-validators-v4 {
127.0.0.0/8;
apply-path "routing-options validation group <*> session <*.*.*.*>";
}
prefix-list rpki-validators-v6 {
::1/128;
apply-path "routing-options validation group <*> session <*:*:*>";
}
policy-statement route-validation {
term valid {
from {
protocol bgp;
validation-database valid;
}
then {
local-preference add 10;
validation-state valid;
accept;
}
}
term invalid {
from {
protocol bgp;
validation-database invalid;
}
then {
local-preference subtract 10;
validation-state invalid;
accept;
}
}
term unknown {
from protocol bgp;
then {
validation-state unknown;
accept;
}
}
}
validation {
group rpki-validator {
session ##VALIDATION_HOST## {
port ##PORT##;
local-address ##LOOPBACK##;
}
}
}
# neighbor import policies, add route-validation
neighbor ##NEIGHBOR## {
import [ ... route-validation ... ];
}
# IPv4 filter
filter loopback-v4 {
# ...
term rpki-rtr {
from {
source-prefix-list {
rpki-validators-v4;
}
protocol tcp;
source-port ##PORT##;
}
then {
count rpki-rtr;
accept;
}
}
# ....
}
# IPv6 filter
filter loopback-v6 {
# ...
term rpki-rtr {
from {
source-prefix-list {
rpki-validators-v6;
}
payload-protocol tcp;
source-port ##PORT##;
}
then {
count rpki-rtr;
accept;
}
}
# ...
}
# NOTE: ROV on Junos opens TCP port 2222, limit access with lo0 filter