forked from jtkristoff/junos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbmp.conf
57 lines (55 loc) · 1.5 KB
/
bmp.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
routing-options {
bmp {
station /* bmp-server hostname */ {
local-address /* loopback address */;
connection-mode active;
station-address /* bmp-server IP address */;
station-port 1790; /* or listener port of your choosing */
}
}
policy-options {
prefix-list bmp-stations-v4 {
127.0.0.0/8;
apply-path "routing-options bmp station <*> station-address <*.*.*.*>";
}
prefix-list bmp-stations-v6 {
::1/128;
apply-path "routing-options bmp station <*> station-address <*:*:*>";
}
}
firewall {
family inet {
filter loopback-v4 {
term bmp {
from {
source-prefix-list {
bmp-stations-v4;
}
protocol tcp;
source-port 1790; /* or listener port of your choosing */
}
then {
count bmp;
accept;
}
}
}
}
family inet6 {
filter loopback-v6 {
term bmp {
from {
source-prefix-list {
bmp-stations-v6;
}
payload-protocol tcp;
source-port 1790; /* or listener port of your choosing */
}
then {
count bmp;
accept;
}
}
}
}
}