46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# FRR Configuration File
|
|
# Этот файл будет перезаписан динамически сгенерированной конфигурацией
|
|
# из переменных окружения при запуске контейнера.
|
|
#
|
|
# Для просмотра текущей конфигурации используйте:
|
|
# docker exec bgp-server cat /etc/frr/frr.conf
|
|
|
|
# Глобальные настройки
|
|
frr version 8.5.2
|
|
frr defaults traditional
|
|
hostname bgp-server
|
|
log syslog informational
|
|
service integrated-vtysh-config
|
|
|
|
# Настройки BGP
|
|
router bgp 65000
|
|
bgp router-id 192.168.1.100
|
|
bgp log-neighbor-changes
|
|
neighbor 192.168.1.1 remote-as 65001
|
|
neighbor 192.168.1.1 description RouterOS Client
|
|
neighbor 192.168.1.1 timers 30 90
|
|
neighbor 192.168.1.1 capability graceful-restart
|
|
neighbor 192.168.1.1 soft-reconfiguration inbound
|
|
!
|
|
address-family ipv4 unicast
|
|
neighbor 192.168.1.1 activate
|
|
neighbor 192.168.1.1 route-map OUTBOUND out
|
|
neighbor 192.168.1.1 route-map INBOUND in
|
|
exit-address-family
|
|
!
|
|
|
|
# Route maps для фильтрации
|
|
route-map OUTBOUND permit 10
|
|
description Allow all outbound routes
|
|
!
|
|
route-map INBOUND deny 10
|
|
description Deny all inbound routes (receive-only mode)
|
|
!
|
|
|
|
# Настройки интерфейса
|
|
interface eth0
|
|
ip address 192.168.1.100/24
|
|
!
|
|
|
|
# Статические маршруты (будут добавлены динамически)
|
|
# ip route 192.168.1.0/24 Null0 |