Skip to content

Commit

Permalink
v7.3.4
Browse files Browse the repository at this point in the history
Reduce /jffs/configs/dnsmasq.conf.add size for  edge cases
  • Loading branch information
Adamm00 committed Dec 29, 2022
1 parent 55cc235 commit b37b2fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firewall.sh
Expand Up @@ -10,7 +10,7 @@
# #
# Router Firewall And Security Enhancements #
# By Adamm - https://github.com/Adamm00/IPSet_ASUS #
# 29/12/2022 - v7.3.3 #
# 30/12/2022 - v7.3.4 #
#############################################################################################################


Expand Down Expand Up @@ -214,7 +214,7 @@ Check_Settings() {
extendedstats="disabled"
fi

if ps | grep "/sbin/syslogd" | grep -qF "/jffs/syslog.log" && [ "$syslogloc" = "/tmp/syslog.log" ]; then
if ps | grep "/sbin/syslogd" | grep -qF /jffs/syslog.log && [ "$syslogloc" = "/tmp/syslog.log" ]; then
syslogloc="/jffs/syslog.log" # Fix syslog location on newer random models
syslog1loc="/jffs/syslog.log-1"
fi
Expand Down Expand Up @@ -913,7 +913,7 @@ Whitelist_Shared() {
add Skynet-Whitelist 127.0.0.0/8 comment \"nvram: Localhost\"" | tr -d "\t" | Filter_IPLine | ipset restore -! 2>/dev/null
ipset flush Skynet-WhitelistDomains
sed -i '\~# Skynet~d' /jffs/configs/dnsmasq.conf.add
grep -hvF "#" /jffs/addons/shared-whitelists/shared-*-whitelist | Strip_Domain | xargs -n 50 | sed 's~^~ipset=/~g;s~ ~/~g;s~$~/Skynet-WhitelistDomains # Skynet~g' >> /jffs/configs/dnsmasq.conf.add
grep -hvF "#" /jffs/addons/shared-whitelists/shared-*-whitelist | Strip_Domain | xargs -n 20 | sed 's~^~ipset=/~g;s~ ~/~g;s~$~/Skynet-WhitelistDomains # Skynet~g' >> /jffs/configs/dnsmasq.conf.add
chmod +x /jffs/configs/dnsmasq.conf.add
service restart_dnsmasq >/dev/null 2>&1
if [ "$(uname -o)" = "ASUSWRT-Merlin" ]; then dotvar="dnspriv_rulelist"; else dotvar="stubby_dns"; fi
Expand Down

0 comments on commit b37b2fe

Please sign in to comment.