summaryrefslogtreecommitdiff
path: root/files/etc/uci-defaults/70_fill-dhcp-checksum
blob: 6e9224aa83348b2412ac2b58a511782b71d5a9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

cat >> /etc/firewall.user << EOF

# Fill DHCP checksums, try to work-around broken DHCP clients (such as FreeBSD).
# It requires iptables-mod-checksum which is installed by default in lxd-openwrt.
if [ -e /usr/lib/iptables/libxt_CHECKSUM.so ]; then
    iptables -t mangle -A OUTPUT -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill
fi

EOF