mirror of
https://github.com/ICKelin/gtun.git
synced 2025-09-26 19:11:15 +08:00
17 lines
399 B
Bash
17 lines
399 B
Bash
|
|
config_dnsmasq() {
|
|
echo "configuring dnsmasq service"
|
|
cp dnsmasq/dnsmasq.conf /etc/dnsmasq.conf
|
|
cp dnsmasq/dnsmasq.resolv /etc/dnsmasq.resolv
|
|
echo "configuring dnsmasq cn domain list"
|
|
cp dnsmasq/cn.conf /etc/dnsmasq.d/
|
|
cp dnsmasq/cn_set.conf /etc/dnsmasq.d/
|
|
systemctl restart dnsmasq
|
|
}
|
|
|
|
./redirect_all.sh
|
|
echo "Configuring dnsmasq"
|
|
config_dnsmasq
|
|
echo "Done."
|
|
echo $sep
|