From 8afccee4ee2548300cbda7594fda8799eb980d85 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sat, 16 Jun 2018 13:20:02 +0800 Subject: [PATCH] set ipv6 dhcp relay mode --- include/target.mk | 5 +++-- package/lean/default-settings/files/zzz-default-settings | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/target.mk b/include/target.mk index 0615ad3a3..adf5382e6 100644 --- a/include/target.mk +++ b/include/target.mk @@ -13,11 +13,12 @@ __target_inc=1 DEVICE_TYPE?=router # Default packages - the really basic set -DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd \ +DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg netifd fstools uclient-fetch logd \ iptables-mod-nat-extra kmod-nf-nathelper kmod-nf-nathelper-extra kmod-ipt-raw kmod-macvlan kmod-nft-offload block-mount automount \ default-settings ipset-lists luci luci-app-ddns luci-app-sqm luci-app-upnp luci-app-adbyby-plus luci-app-autoreboot \ luci-app-filetransfer luci-app-ssr-pro luci-app-usb-printer luci-app-vsftpd ddns-scripts_aliyun luci-app-xlnetacc \ -luci-app-pptp-server luci-app-ipsec-vpnd luci-app-vlmcsd luci-app-wifischedule luci-app-wol luci-app-sfe luci-app-flowoffload luci-app-nlbwmon +luci-app-pptp-server luci-app-ipsec-vpnd luci-app-vlmcsd luci-app-wifischedule luci-app-wol \ +luci-app-sfe luci-app-flowoffload luci-app-nlbwmon # For nas targets DEFAULT_PACKAGES.nas:=block-mount fdisk lsblk mdadm # For router targets diff --git a/package/lean/default-settings/files/zzz-default-settings b/package/lean/default-settings/files/zzz-default-settings index 40077f83b..60637df04 100755 --- a/package/lean/default-settings/files/zzz-default-settings +++ b/package/lean/default-settings/files/zzz-default-settings @@ -42,6 +42,11 @@ sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999 sed -i "s/# //g" /etc/opkg/distfeeds.conf +uci set dhcp.lan.ra='relay' +uci set dhcp.lan.dhcpv6='relay' +uci set dhcp.lan.ndp='relay' +uci commit dhcp + sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user echo "" >> /etc/firewall.user echo "iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user