|
|
@@ -17,9 +17,9 @@ In DHCPv6 DHCP Protect will account based on the client DUID. |
|
|
|
``` |
|
|
|
git clone https://git.home.spale.com/dhcp_protect.git |
|
|
|
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 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. |
|
|
|
|
|
|
@@ -34,7 +34,7 @@ The `--queue-bypass` will tell iptables to continue to forward packets if DHCP P |
|
|
|
`iptables -A INPUT -p udp -m udp --dport 67 -j NFQUEUE --queue-num 67 --queue-bypass` |
|
|
|
|
|
|
|
## 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 |
|
|
|
The configuration file may be tuned, but the defaults should be fine. |