Would you be willing to share your scripts?
#!/bin/bashfilter() { # filter out lines with the following criteria: # - comment lines (starts with optional blank followed by hash) # - empty lines (only blank or completely empty) # - lines without any dot # - lines with ' localhost' inside grep -v -e '^[[:space:]]*#' -e '^[[:space:]]*$' -e '^[^.]*$' -e ' localhost' | tr ' ' ' '| sed -e 's#\s\+$##'}adblockListTemp=/tmp/adblocklist.tempadblockListFinal=/tmp/adblock.listwebserverIp=${1:-192.168.1.201}:> $adblockListTemp# Adblockcurl -s https://adaway.org/hosts.txt | filter | cut -f2 -d' ' >> $adblockListTemp# Shallalistcurl -s http://www.shallalist.de/Downloads/shallalist.tar.gz | tar -C /tmp -xzcat /tmp/BL/{adv,costtraps,spyware,tracker,warez}/domains >> $adblockListTemprm -rf /tmp/BL/# Yoyocurl -s 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext' >> $adblockListTemp### PI-Holecurl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | filter | cut -f2 -d' ' >> $adblockListTempcurl -s http://mirror1.malwaredomains.com/files/justdomains >> $adblockListTempcurl -s http://sysctl.org/cameleon/hosts | filter | cut -f2 -d' ' >> $adblockListTempcurl -s 'https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist' >> $adblockListTempcurl -s https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt >> $adblockListTempcurl -s https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt >> $adblockListTempcurl -s https://hosts-file.net/ad_servers.txt | tr -d '\r' | filter | cut -f2 -d' ' >> $adblockListTempcurl -s https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win10/spy.txt | tr -d '\r' | cut -f2 -d' ' >> $adblockListTemp### Cleancat $adblockListTemp | filter | grep -vP '^(\d+\.){3}\d+$' | sed -e "s#^#$webserverIp #" | sort -u > $adblockListFinalscp -i adblock.key -o UserKnownHostsFile=adblock.known_hosts $adblockListFinal adblock@opnsense:./adblock.listrm $adblockListTemp $adblockListFinal
server { listen 80 default_server; listen 443 ssl http2 default_server; server_name 192.168.1.201; error_log /var/log/nginx/opnsense-hole.error.log info; access_log /var/log/nginx/opnsense-hole.access.log; ssl_session_cache shared:SSL_opnsense-hole:10m; ssl_certificate /etc/ssl/opnsense-hole.cert.pem; ssl_certificate_key /etc/ssl/opnsense-hole.key.pem; location / { expires max; return 204; }}
addn-hosts=/home/adblock/adblock.list