From b8829f96acc6951e1d7ecf438cafdc5ed645c53d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 26 Jul 2024 09:58:27 +0200 Subject: [PATCH] openwrt/nat64: disable dhcp on lan --- openwrt/openwrt-nat64-bootstrap.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openwrt/openwrt-nat64-bootstrap.sh b/openwrt/openwrt-nat64-bootstrap.sh index 9419e5e..d25e2b6 100755 --- a/openwrt/openwrt-nat64-bootstrap.sh +++ b/openwrt/openwrt-nat64-bootstrap.sh @@ -58,6 +58,11 @@ uci delete network.lan.netmask uci delete network.lan.gateway uci set network.lan.proto="dhcpv6" +# Disable DHCP on LAN +uci delete dhcp.lan.dhcpv4 +uci delete dhcp.lan.dhcpv6 +uci delete dhcp.lan.ra +uci set dhcp.lan.ignore=1 # Do something wireless (?) # disable? @@ -130,3 +135,5 @@ uci commit /etc/init.d/bird restart EOF + +echo "Restart router to restart firewall, network, dhcp"