108 lines
2.3 KiB
YAML
108 lines
2.3 KiB
YAML
---
|
|
|
|
networks:
|
|
|
|
# Each of these networks is connected to one of the routers.
|
|
# These are the networks originated by their corresponding BGP routers.
|
|
|
|
as23_1:
|
|
driver: bridge
|
|
enable_ipv6: true
|
|
ipam:
|
|
config:
|
|
- subnet: fd00:d0ca:23:1::/64
|
|
ip_range: fd00:d0ca:23:1::/96
|
|
|
|
as42_1:
|
|
driver: bridge
|
|
enable_ipv6: true
|
|
ipam:
|
|
config:
|
|
- subnet: fd00:d0ca:42:1::/64
|
|
ip_range: fd00:d0ca:42:1::/96
|
|
|
|
as1337_1:
|
|
driver: bridge
|
|
enable_ipv6: true
|
|
ipam:
|
|
config:
|
|
- subnet: fd00:d0ca:1337:1::/64
|
|
ip_range: fd00:d0ca:1337:1::/96
|
|
|
|
# This network is "the IX" where all the routers and the route server are plugged into
|
|
|
|
ix_1:
|
|
driver: bridge
|
|
enable_ipv6: true
|
|
ipam:
|
|
config:
|
|
- subnet: fd00:d0ca:ffff:1::/64
|
|
ip_range: fd00:d0ca:ffff:1::/96
|
|
|
|
services:
|
|
|
|
# The 3 eBGP routers
|
|
|
|
as23:
|
|
image: docker.io/openbgpd/openbgpd
|
|
volumes:
|
|
- ./as23/conf:/etc/bgpd
|
|
sysctls:
|
|
- net.ipv6.conf.all.forwarding=1 # Required order to actually forward packets
|
|
cap_add:
|
|
- NET_ADMIN # Required to add learned routes to the FIB
|
|
networks:
|
|
as23_1:
|
|
ipv6_address: fd00:d0ca:23:1::10
|
|
ix_1:
|
|
ipv6_address: fd00:d0ca:ffff:1::23
|
|
|
|
as42:
|
|
image: docker.io/openbgpd/openbgpd
|
|
volumes:
|
|
- ./as42/conf:/etc/bgpd
|
|
sysctls:
|
|
- net.ipv6.conf.all.forwarding=1
|
|
cap_add:
|
|
- NET_ADMIN
|
|
networks:
|
|
as42_1:
|
|
ipv6_address: fd00:d0ca:42:1::10
|
|
ix_1:
|
|
ipv6_address: fd00:d0ca:ffff:1::42
|
|
|
|
as1337:
|
|
image: docker.io/openbgpd/openbgpd
|
|
volumes:
|
|
- ./as1337/conf:/etc/bgpd
|
|
sysctls:
|
|
- net.ipv6.conf.all.forwarding=1
|
|
cap_add:
|
|
- NET_ADMIN
|
|
networks:
|
|
as1337_1:
|
|
ipv6_address: fd00:d0ca:1337:1::10
|
|
ix_1:
|
|
ipv6_address: fd00:d0ca:ffff:1::1337
|
|
|
|
ixrs:
|
|
image: docker.io/openbgpd/openbgpd
|
|
volumes:
|
|
- ./ixrs/conf:/etc/bgpd
|
|
# The route server should not be doing any packet forwarding or FIB manipulation
|
|
#sysctls:
|
|
# - net.ipv6.conf.all.forwarding=1
|
|
#cap_add:
|
|
# - NET_ADMIN
|
|
networks:
|
|
ix_1:
|
|
ipv6_address: fd00:d0ca:ffff:1::ffff
|
|
|
|
|
|
# The looking glass server
|
|
|
|
alice-lg:
|
|
build: ../images/alice-lg
|
|
volumes:
|
|
- ./alice-lg:/etc/alice-lg
|
|
network_mode: host
|