-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c31b867
commit d066d7f
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; | ||
} | ||
} | ||
} | ||
} | ||
} |