Skip to content

Add IPv6 6RD reporting for UniFi Security Gateway

License

Notifications You must be signed in to change notification settings

mafredri/vyatta-dhcp-option-6rd-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vyatta-dhcp-option-6rd-reporter

NOTICE: This package is not maintained, I published it in case it's helpful for someone. My USG has been sunset.

This package sends IPv6 OPTION_6RD DHCP events to the UniFi controller.

Can be used to listen to controller events and updating IPv6 RD (Rapid Deployment) configuration in gateway.config.json and re-provisioning the USG.

Installation

This package requires vyatta-dhcp-global-option.

# Install vyatta-dhcp-global-option
curl -sSL -o /tmp/dhcp-global-option-0.0.2-1.deb https://github.com/mafredri/vyatta-dhcp-global-option/releases/download/v0.0.2/dhcp-global-option-0.0.2-1.deb
sudo dpkg -i /tmp/dhcp-global-option-0.0.2-1.deb

# Install vyatta-dhcp-option-6rd-reporter
curl -sSL -o /tmp/dhcp-option-6rd-reporter-0.0.1-1.deb https://github.com/mafredri/vyatta-dhcp-option-6rd-reporter/releases/download/v0.0.1/dhcp-option-6rd-reporter-0.0.1-1.deb
sudo dpkg -i /tmp/dhcp-option-6rd-reporter-0.0.1-1.deb

Automatic restore after firmware upgrade

mkdir -p /config/data/firstboot/install-packages
mv /tmp/dhcp-global-option-0.0.2-1.deb /tmp/dhcp-option-6rd-reporter-0.0.1-1.deb /config/data/firstboot/install-packages

Configure

Configure OPTION_6RD to start receiving events.

Example

Event received by the UniFi Controller

{
  "event_string": "EVT_GW_DHCP6RD",
  "interface": "eth0",
  "local_ip": "80.78.100.100",
  "option_6rd": "10 30 8093 8095 60460 0 0 0 0 0 80.80.255.254",
  "reason": "REBOOT"
}