Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.67 KB

README.md

File metadata and controls

63 lines (44 loc) · 1.67 KB

README

Made for and by Lyon e-Sport - www.lyon-esport.fr.

Installation

  1. Install dependencies pip3 install -r requirements.txt

  2. Compile udp-broadcast-relay cd broadcast-relay/udp-broadcast-relay-0.3; make; cd -

  3. (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

  1. Start the webserver:

    • as a daemon (will be executed in background): sudo python3 ubrs.py start
    • in foreground for debug/ sudo python3 ubrs.py
  2. Connect to the web interface (see config.py)

  3. Select the OAM interface use for the administration. It will be excluded from the relay.

  4. Select the trunk interface that will receive UDP broadcast

  5. Create as many interfaces as vlans

  6. 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 - [email protected]