mirror of
https://github.com/novatiq/packages.git
synced 2026-07-30 07:13:07 +01:00
adblock: uci support, dynamic uhttpd instance support plus various fixes
* add uci support * add dynamic uhttpd instance support (no longer rely on uhttpd config changes) * package reordering * plus various fixes Signed-off-by: Dirk Brenken <dirk@brenken.org>
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
# adblock configuration
|
||||
#
|
||||
config adblock "global"
|
||||
option adb_ip "192.168.2.1"
|
||||
option adb_dev "eth0"
|
||||
option adb_if "adblock"
|
||||
option adb_domain "heise.de"
|
||||
option adb_minspace "100000"
|
||||
option adb_blacklist "/etc/adblock/adblock.blacklist"
|
||||
option adb_whitelist "/etc/adblock/adblock.whitelist"
|
||||
|
||||
config service "wancheck"
|
||||
option enabled "0"
|
||||
list adb_wanlist "wan"
|
||||
|
||||
config service "ntpcheck"
|
||||
option enabled "0"
|
||||
list adb_ntplist "0.pool.ntp.org"
|
||||
list adb_ntplist "1.pool.ntp.org"
|
||||
list adb_ntplist "2.pool.ntp.org"
|
||||
list adb_ntplist "3.pool.ntp.org"
|
||||
|
||||
config service "backup"
|
||||
option enabled "0"
|
||||
option adb_backupfile "/tmp/adlist.backup"
|
||||
|
||||
config service "errorlog"
|
||||
option enabled "0"
|
||||
option adb_logfile "/tmp/error.log"
|
||||
|
||||
config service "querylog"
|
||||
option enabled "0"
|
||||
option adb_queryfile "/tmp/query.log"
|
||||
option adb_queryhistory "1"
|
||||
|
||||
config source "yoyo"
|
||||
option enabled "1"
|
||||
option adb_src_yoyo "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=one-line&showintro=0&mimetype=plaintext&ruleset=rset_yoyo"
|
||||
|
||||
config source "malware"
|
||||
option enabled "0"
|
||||
option adb_src_malware "http://mirror1.malwaredomains.com/files/justdomains&ruleset=rset_default"
|
||||
|
||||
config source "zeus"
|
||||
option enabled "0"
|
||||
option adb_src_zeus "https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist&ruleset=rset_default"
|
||||
|
||||
config source "feodo"
|
||||
option enabled "0"
|
||||
option adb_src_feodo "https://feodotracker.abuse.ch/blocklist/?download=domainblocklist&ruleset=rset_default"
|
||||
|
||||
config source "palevo"
|
||||
option enabled "0"
|
||||
option adb_src_palevo "https://palevotracker.abuse.ch/blocklists.php?download=domainblocklist&ruleset=rset_default"
|
||||
|
||||
config source "dshield"
|
||||
option enabled "0"
|
||||
option adb_src_dshield "http://www.dshield.org/feeds/suspiciousdomains_Low.txt&ruleset=rset_default"
|
||||
|
||||
config source "spam404"
|
||||
option enabled "0"
|
||||
option adb_src_spam404 "http://spam404bl.com/spam404scamlist.txt&ruleset=rset_spam404"
|
||||
|
||||
config source "winhelp"
|
||||
option enabled "0"
|
||||
option adb_src_winhelp "http://winhelp2002.mvps.org/hosts.txt&ruleset=rset_winhelp"
|
||||
|
||||
config source "shalla"
|
||||
option enabled "0"
|
||||
option adb_arc_shalla "http://www.shallalist.de/Downloads/shallalist.tar.gz"
|
||||
list adb_catlist "adv"
|
||||
list adb_catlist "costtraps"
|
||||
list adb_catlist "downloads"
|
||||
list adb_catlist "spyware"
|
||||
list adb_catlist "tracker"
|
||||
list adb_catlist "warez"
|
||||
@@ -0,0 +1,7 @@
|
||||
# tweaks for dnsmasq
|
||||
# configuration found in /etc/config/dhcp
|
||||
#
|
||||
config dnsmasq
|
||||
option cachesize '1000'
|
||||
option filterwin2k '0'
|
||||
option logqueries '1'
|
||||
@@ -0,0 +1,5 @@
|
||||
# tell DHCP clients to not ask for proxy information
|
||||
# some clients - like Win7 - will constantly ask if not told "No!"
|
||||
# configuration found in /etc/dnsmasq
|
||||
#
|
||||
dhcp-option=252,"\n"
|
||||
@@ -0,0 +1,5 @@
|
||||
# redirect/force all dns queries to port 53 of your router
|
||||
# configuration found in /etc/firewall.user
|
||||
#
|
||||
iptables -t nat -I PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports 53
|
||||
iptables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports 53
|
||||
@@ -0,0 +1,26 @@
|
||||
# sample startup script
|
||||
# configuration found in /etc/rc.local
|
||||
#
|
||||
|
||||
# start logging
|
||||
#
|
||||
/usr/bin/logger -t rc.local "start rc.local processing"
|
||||
|
||||
# set home directory
|
||||
#
|
||||
export HOME=/root
|
||||
|
||||
# resize /tmp partition to 256 MB
|
||||
#
|
||||
/usr/bin/logger -t rc.local "resize /tmp partition to 256 MB"
|
||||
mount tmpfs /tmp -t tmpfs -o remount,nosuid,nodev,noatime,size=256M
|
||||
|
||||
# start adblock script
|
||||
#
|
||||
/usr/bin/logger -t rc.local "start adblock script"
|
||||
/usr/bin/adblock-update.sh >/dev/null 2>&1
|
||||
|
||||
# write log and exit
|
||||
#
|
||||
/usr/bin/logger -t rc.local "finish rc.local processing"
|
||||
exit 0
|
||||
@@ -0,0 +1,8 @@
|
||||
# sample crontab script
|
||||
# configuration found in /etc/crontabs/root
|
||||
#
|
||||
|
||||
# start adblock script twice a day
|
||||
#
|
||||
0 06 * * * /usr/bin/adblock-update.sh &
|
||||
0 22 * * * /usr/bin/adblock-update.sh &
|
||||
Reference in New Issue
Block a user