mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-24 02:46:36 +01:00
Merge branch 'master' of https://github.com/FastVPSEestiOu/fastnetmon
This commit is contained in:
commit
13a0f6995e
@ -17,6 +17,12 @@ Install ExaBGP:
|
||||
pip install exabgp
|
||||
```
|
||||
|
||||
Install socat (if you haven't socat for your platform, please check this [manual](EXABGP_INTEGRATION_WITHOUT_SOCAT.md)):
|
||||
```bash
|
||||
apt-get install -y socat
|
||||
yum install -y socat
|
||||
```
|
||||
|
||||
Create example configuration: ```vim /etc/exabgp_blackhole.conf```
|
||||
|
||||
Example here (please fix this configuration to your network):
|
||||
@ -28,11 +34,6 @@ group Core_v4 {
|
||||
router-id 10.0.3.114;
|
||||
graceful-restart 1200;
|
||||
|
||||
# Static announce is not used
|
||||
# static {
|
||||
# route 10.10.10.1/32 next-hop 10.0.3.114 community 65001:666;
|
||||
# }
|
||||
|
||||
neighbor 10.0.3.115 {
|
||||
local-address 10.0.3.114;
|
||||
description "Quagga";
|
||||
@ -40,26 +41,11 @@ group Core_v4 {
|
||||
|
||||
# Add this line for process management
|
||||
process service-dynamic {
|
||||
run /etc/exabgp/exabgp_pipe_provider.sh;
|
||||
run /usr/bin/socat stdout pipe:/var/run/exabgp.cmd;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
For PIPE API we need create this script: ```vim /etc/exabgp/exabgp_pipe_provider.sh```
|
||||
|
||||
Script code here:
|
||||
```bash
|
||||
|
||||
```#!/bin/sh
|
||||
FIFO="/var/run/exabgp.cmd"
|
||||
|
||||
rm -f $FIFO
|
||||
mkfifo $FIFO
|
||||
tail -f $FIFO
|
||||
```
|
||||
|
||||
Set exec flag for script: ```chmod +x /etc/exabgp/exabgp_pipe_provider.sh```
|
||||
|
||||
Run ExaBGP:
|
||||
```bash
|
||||
env exabgp.daemon.user=root exabgp.daemon.daemonize=true exabgp.daemon.pid=/var/run/exabgp.pid exabgp.log.destination=/var/log/exabgp.log exabgp /etc/exabgp_blackhole.conf
|
||||
|
49
docs/EXABGP_INTEGRATION_WITHOUT_SOCAT.md
Normal file
49
docs/EXABGP_INTEGRATION_WITHOUT_SOCAT.md
Normal file
@ -0,0 +1,49 @@
|
||||
### With this guide you could integrate ExaBGP and FastNetMon without socat tool
|
||||
|
||||
Create example configuration: ```vim /etc/exabgp_blackhole.conf```
|
||||
|
||||
Example here (please fix this configuration to your network):
|
||||
```bash
|
||||
group Core_v4 {
|
||||
hold-time 180;
|
||||
local-as 65001;
|
||||
peer-as 1234;
|
||||
router-id 10.0.3.114;
|
||||
graceful-restart 1200;
|
||||
|
||||
# Static announce is not used
|
||||
# static {
|
||||
# route 10.10.10.1/32 next-hop 10.0.3.114 community 65001:666;
|
||||
# }
|
||||
|
||||
neighbor 10.0.3.115 {
|
||||
local-address 10.0.3.114;
|
||||
description "Quagga";
|
||||
}
|
||||
|
||||
# Add this line for process management
|
||||
process service-dynamic {
|
||||
run /etc/exabgp/exabgp_pipe_provider.sh;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
For PIPE API we need create this script: ```vim /etc/exabgp/exabgp_pipe_provider.sh```
|
||||
|
||||
Script code here:
|
||||
```bash
|
||||
|
||||
```#!/bin/sh
|
||||
FIFO="/var/run/exabgp.cmd"
|
||||
|
||||
rm -f $FIFO
|
||||
mkfifo $FIFO
|
||||
tail -f $FIFO
|
||||
```
|
||||
|
||||
Set exec flag for script: ```chmod +x /etc/exabgp/exabgp_pipe_provider.sh```
|
||||
|
||||
Run ExaBGP:
|
||||
```bash
|
||||
env exabgp.daemon.user=root exabgp.daemon.daemonize=true exabgp.daemon.pid=/var/run/exabgp.pid exabgp.log.destination=/var/log/exabgp.log exabgp /etc/exabgp_blackhole.conf
|
||||
```
|
Loading…
Reference in New Issue
Block a user