mirror of
https://github.com/JamesonHuang/OpenWrt_Luci_Lua.git
synced 2024-12-02 17:23:01 +00:00
10 lines
339 B
Bash
10 lines
339 B
Bash
|
#!/bin/sh
|
||
|
ipset -N adbyby_list hash:ip
|
||
|
iptables -t nat -A PREROUTING -p tcp -m set --match-set adbyby_list dst -j REDIRECT --to-port 8118
|
||
|
|
||
|
sed -e '/.*adbyby_host.conf/d' -i /etc/dnsmasq.conf
|
||
|
echo "conf-file=/tmp/adbyby_host.conf" >> "/etc/dnsmasq.conf"
|
||
|
|
||
|
#/etc/storage/dnsmasq/dnsmasq.conf
|
||
|
restart_dhcpd
|
||
|
/etc/init.d/dnsmasq restart
|