| ``` | ``` | ||||
| git clone https://git.home.spale.com/dhcp_protect.git | git clone https://git.home.spale.com/dhcp_protect.git | ||||
| cd dhcp_protect | cd dhcp_protect | ||||
| apt-get install build-essential uthash-dev libnetfilter-queue-dev | |||||
| sudo apt-get install build-essential uthash-dev libnetfilter-queue-dev | |||||
| make all | make all | ||||
| make install | |||||
| sudo make install | |||||
| ``` | ``` | ||||
| Note: the `make install` will automatically create, enable and start the systemd service and the `make uninstall` will stop and remove the systemd service. | Note: the `make install` will automatically create, enable and start the systemd service and the `make uninstall` will stop and remove the systemd service. | ||||
| `iptables -A INPUT -p udp -m udp --dport 67 -j NFQUEUE --queue-num 67 --queue-bypass` | `iptables -A INPUT -p udp -m udp --dport 67 -j NFQUEUE --queue-num 67 --queue-bypass` | ||||
| ## Example IPv6 | ## Example IPv6 | ||||
| `iptables -A INPUT -p udp -m udp --dport 547 -j NFQUEUE --queue-num 67 --queue-bypass` | |||||
| `ip6tables -A INPUT -p udp -m udp --dport 547 -j NFQUEUE --queue-num 67 --queue-bypass` | |||||
| # Configuration | # Configuration | ||||
| The configuration file may be tuned, but the defaults should be fine. | The configuration file may be tuned, but the defaults should be fine. |