## Cross-Compiling ``` cargo install cross cross build --target armv7-unknown-linux-musleabihf --release ``` ## Installation 1. Install necessary dependencies with `opkg update && opkg install ipset iptables-mod-extra logrotate` 2. Copy files, copy cross-compiled `target/armv7-unknown-linux-musleabihf/dns-firewall` binary to `/usr/bin/dns-firewall` 3. Update at least `chain` parameter in `/etc/init.d/dns-firewall` (other parameters as necessary) 4. Re-configure firewall: Ensure to reject all traffic by default from the intended zone, add rule to allow inbound dns-firewall traffic (and maybe DHCP) 5. Exclude intended interface(s) from dnsmasq 6. `/etc/init.d/cron restart && /etc/init.d/dns-firewall start` 7. Enable dns-firewall service