set ipv6 dhcp relay mode
This commit is contained in:
parent
7dd9a1a8eb
commit
8afccee4ee
@ -13,11 +13,12 @@ __target_inc=1
|
|||||||
DEVICE_TYPE?=router
|
DEVICE_TYPE?=router
|
||||||
|
|
||||||
# Default packages - the really basic set
|
# 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 \
|
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 \
|
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-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
|
# For nas targets
|
||||||
DEFAULT_PACKAGES.nas:=block-mount fdisk lsblk mdadm
|
DEFAULT_PACKAGES.nas:=block-mount fdisk lsblk mdadm
|
||||||
# For router targets
|
# For router targets
|
||||||
|
@ -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
|
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
|
sed -i '/REDIRECT --to-ports 53/d' /etc/firewall.user
|
||||||
echo "" >> /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
|
echo "iptables -t nat -A PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53" >> /etc/firewall.user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user