README
Made for and by Lyon e-Sport - www.lyon-esport.fr.
Installation
-
Install dependencies
pip3 install -r requirements.txt
-
Compile udp-broadcast-relay
cd broadcast-relay/udp-broadcast-relay-0.3; make; cd -
-
(optional) To start UBRS at startup:
cp systemd/ubrs.service /etc/systemd/system/ubrs.service; systemctl enable ubrs
Configuration
Please update the configuration file config.py
before using. Note that it starts a
webserver on port 80 by default.
Interface configuration
Example
# The primary network interface for admin
rename ens224=admin
allow-hotplug admin
iface admin inet static
address 172.16.2.29/24
gateway 172.16.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 172.16.2.20 8.8.8.8 1.1.1.1
dns-search les
# Trunk interface managed by UBRS
# No given IP
rename ens192=trunk
allow-hotplug trunk
iface trunk inet manual
pre-up ip link set dev trunk up
post-down ip link set dev trunk down
Usage
-
Start the webserver:
- as a daemon (will be executed in background):
sudo python3 ubrs.py start
- in foreground for debug/
sudo python3 ubrs.py
- as a daemon (will be executed in background):
-
Connect to the web interface (see config.py)
-
Select the OAM interface use for the administration. It will be excluded from the relay.
-
Select the trunk interface that will receive UDP broadcast
-
Create as many interfaces as vlans
-
Add UDP port. Broadcast messages will be relayed on all the interfaces.
If you add a new interface, existing port will be updated dynamically to relay traffic on the new VLAN.
Author
rarenlys - etienne.glossi@lyon-esport.fr