Remove obsolete files and scripts related to the BGP server setup, including .gitignore, Dockerfile, and various documentation files. Update docker-compose.yml to streamline the configuration for the FRRouting BGP server. This cleanup enhances project maintainability and focuses on the current implementation.

This commit is contained in:
2025-07-11 18:41:15 +07:00
parent 58f1405fef
commit af197d8953
27 changed files with 443 additions and 3471 deletions
+62 -39
View File
@@ -1,46 +1,69 @@
# FRR Configuration File
# Этот файл будет перезаписан динамически сгенерированной конфигурацией
# из переменных окружения при запуске контейнера.
#
# Для просмотра текущей конфигурации используйте:
# docker exec bgp-server cat /etc/frr/frr.conf
# FRRouting configuration file
# BGP Server Configuration
# Глобальные настройки
frr version 8.5.2
frr defaults traditional
hostname bgp-server
log syslog info
service integrated-vtysh-config
# Enable password for vtysh
password zebra
enable password zebra
# Настройки BGP
# Router ID
router-id 192.168.1.1
# BGP configuration
router bgp 65000
bgp router-id 192.168.100.99
bgp log-neighbor-changes
neighbor 192.168.0.254 remote-as 65001
neighbor 192.168.0.254 description RouterOS Client
neighbor 192.168.0.254 timers 30 90
neighbor 192.168.0.254 capability graceful-restart
neighbor 192.168.0.254 soft-reconfiguration inbound
!
address-family ipv4 unicast
neighbor 192.168.0.254 activate
neighbor 192.168.0.254 route-map OUTBOUND out
neighbor 192.168.0.254 route-map INBOUND in
exit-address-family
!
bgp router-id 192.168.1.1
# Network configuration
network 192.168.1.0/24
network 10.0.0.0/8
network 172.16.0.0/12
network 203.0.113.0/24
network 198.51.100.0/24
network 192.0.2.0/24
network 8.8.8.0/24
network 1.1.1.0/24
network 9.9.9.0/24
# IPv6 networks
network 2001:db8::/32
network 2001:db8:1::/48
network 2001:db8:2::/48
# Community configuration
neighbor 0.0.0.0/0 remote-as external
neighbor 0.0.0.0/0 send-community
neighbor 0.0.0.0/0 send-community extended
# IPv6 neighbors
neighbor ::/0 remote-as external
neighbor ::/0 send-community
neighbor ::/0 send-community extended
# Route redistribution
redistribute connected
redistribute static
# 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)
!
# Static routes with communities
ip route 192.168.1.0/24 null0 community 65000:100:65000:200
ip route 10.0.0.0/8 null0 community 65000:101:65000:201
ip route 172.16.0.0/12 null0 community 65000:102:65000:202
ip route 203.0.113.0/24 null0 community 65000:110:65000:210
ip route 198.51.100.0/24 null0 community 65000:111:65000:211
ip route 192.0.2.0/24 null0 community 65000:112:65000:212
ip route 8.8.8.0/24 null0 community 65000:120:65000:220
ip route 1.1.1.0/24 null0 community 65000:121:65000:221
ip route 9.9.9.0/24 null0 community 65000:122:65000:222
# Настройки интерфейса
# IPv6 static routes
ipv6 route 2001:db8::/32 null0 community 65000:300:65000:400
ipv6 route 2001:db8:1::/48 null0 community 65000:301:65000:401
ipv6 route 2001:db8:2::/48 null0 community 65000:302:65000:402
# Interface configuration
interface eth0
ip address 192.168.100.99/24
!
ip address 192.168.1.1/24
ipv6 address 2001:db8::1/64
no shutdown
# Статические маршруты (будут добавлены динамически)
# ip route 192.168.1.0/24 Null0
# Logging
log file /var/log/frr/frr.log
log timestamp precision 6