parent
9a7eb879ac
commit
107d060562
@ -37,6 +37,7 @@ config homeproxy 'control'
|
|||||||
list wan_proxy_ipv4_ips '91.108.56.0/22'
|
list wan_proxy_ipv4_ips '91.108.56.0/22'
|
||||||
list wan_proxy_ipv4_ips '149.154.160.0/20'
|
list wan_proxy_ipv4_ips '149.154.160.0/20'
|
||||||
list wan_proxy_ipv4_ips '185.76.151.0/24'
|
list wan_proxy_ipv4_ips '185.76.151.0/24'
|
||||||
|
list wan_proxy_ipv4_ips '203.208.50.66/32'
|
||||||
list wan_proxy_ipv6_ips '2001:67c:4e8::/48'
|
list wan_proxy_ipv6_ips '2001:67c:4e8::/48'
|
||||||
list wan_proxy_ipv6_ips '2001:b28:f23c::/48'
|
list wan_proxy_ipv6_ips '2001:b28:f23c::/48'
|
||||||
list wan_proxy_ipv6_ips '2001:b28:f23d::/48'
|
list wan_proxy_ipv6_ips '2001:b28:f23d::/48'
|
||||||
|
@ -67,6 +67,7 @@ start_service() {
|
|||||||
config_get_bool auto_update "subscription" "auto_update" "0"
|
config_get_bool auto_update "subscription" "auto_update" "0"
|
||||||
if [ "$auto_update" = "1" ]; then
|
if [ "$auto_update" = "1" ]; then
|
||||||
config_get auto_update_time "subscription" "auto_update_time" "2"
|
config_get auto_update_time "subscription" "auto_update_time" "2"
|
||||||
|
sed -i "/update_crond.sh/d" "/etc/crontabs/root" 2>"/dev/null"
|
||||||
echo -e "0 $auto_update_time * * * $HP_DIR/scripts/update_crond.sh" >> "/etc/crontabs/root"
|
echo -e "0 $auto_update_time * * * $HP_DIR/scripts/update_crond.sh" >> "/etc/crontabs/root"
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
fi
|
fi
|
||||||
@ -290,8 +291,8 @@ stop_service() {
|
|||||||
nft flush set inet fw4 "$i"
|
nft flush set inet fw4 "$i"
|
||||||
nft delete set inet fw4 "$i"
|
nft delete set inet fw4 "$i"
|
||||||
done 2>"/dev/null"
|
done 2>"/dev/null"
|
||||||
echo > "$RUN_DIR/fw4_pre.nft" 2>"/dev/null"
|
echo 2>"/dev/null" > "$RUN_DIR/fw4_pre.nft"
|
||||||
echo > "$RUN_DIR/fw4_post.nft" 2>"/dev/null"
|
echo 2>"/dev/null" > "$RUN_DIR/fw4_post.nft"
|
||||||
fw4 reload >"/dev/null" 2>&1
|
fw4 reload >"/dev/null" 2>&1
|
||||||
|
|
||||||
# Remove DNS hijack
|
# Remove DNS hijack
|
||||||
|
Loading…
Reference in New Issue
Block a user