-
Notifications
You must be signed in to change notification settings - Fork 5
/
srx-policer.conf
56 lines (56 loc) · 1.17 KB
/
srx-policer.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
interfaces {
reth0 {
redundant-ether-options {
redundancy-group 1;
}
unit 0 {
family inet {
filter {
input INBOUND-FILTER;
output OUTBOUND-FILTER;
}
address 10.20.30.40/24;
}
}
}
firewall {
policer GLOBAL-POLICER {
if-exceeding {
bandwidth-limit 80m;
burst-size-limit 625k;
}
then discard;
}
filter OUTBOUND-FILTER {
term SOURCE-ANY {
from {
source-address {
0.0.0.0/0;
}
}
then {
policer GLOBAL-POLICER;
accept;
}
}
term END-POLICY {
then accept;
}
}
filter INBOUND-FILTER {
term SOURCE-ANY {
from {
source-address {
0.0.0.0/0;
}
}
then {
policer GLOBAL-POLICER;
accept;
}
}
term END-POLICY {
then accept;
}
}
}