Installation Issues
Download Failures
Main file not available
Main file not available
Problem: The main
blackweb.tar.gz file fails to download.Solution: Use the multipart download script:Checksum verification failed
Checksum verification failed
Problem: Downloaded file doesn’t match the expected checksum.Solution: Verify the file integrity:If checksum fails:
- Re-download the file
- Check your internet connection
- Verify disk space and integrity
Extraction errors
Extraction errors
Problem: Cannot extract
blackweb.tar.gz.Solution:-
Check file integrity:
-
Verify tar is installed:
-
Try extraction with verbose output:
-
Check disk space:
Squid Configuration Issues
Squid Won’t Start
Configuration errors
Configuration errors
Problem: Squid fails to start after adding BlackWeb rules.Solution:
-
Check Squid configuration syntax:
-
View detailed error messages:
-
Check Squid logs:
-
Verify file paths in
squid.confare correct -
Ensure file permissions allow Squid to read:
Cache directory errors
Cache directory errors
Problem:
ERROR: Can't change type of existing cache_dir aufs /var/spool/squid to ufs. Restart requiredSolution:If you use aufs, temporarily change it to ufs during the BlackWeb upgrade:-
Edit
/etc/squid/squid.conf: -
Restart Squid:
-
After update completes, change back to
aufsif desired
SquidErrors.txt contains domains
SquidErrors.txt contains domains
Problem: After running BlackWeb,
SquidErrors.txt contains blocked domains.Solution:-
Review the error file:
-
Use the
debugerror.pyscript to identify problematic domains:This script comparesblackweb.txtwith Squid error logs and outputs differences tofinal.txt. -
Add legitimate domains to
allowdomains.txt: -
Reload Squid configuration:
Squid Installation Problems
Squid not properly installed
Squid not properly installed
Problem: Squid is not installed or configured correctly.Solution: Use this installation script:
Update Process Issues
Update Script Failures
Missing dependencies
Missing dependencies
Problem: Update script fails due to missing dependencies.Solution: Install required packages:Required versions:
- Python 3.x
- Bash 5.x
Interrupted update process
Interrupted update process
Problem: Update was interrupted with Ctrl+C.Solution:
- If stopped during DNS Lookup stage: The script will resume from that point on the next run
- If stopped earlier: You must start from the beginning or manually modify the script
High resource consumption
High resource consumption
Problem: Update process consumes too much CPU/bandwidth.Solution: Adjust the Lower values reduce resource usage but increase processing time.
PROCS variable in bwupdate.sh:DNS lookup timeouts
DNS lookup timeouts
Problem: DNS lookups fail or timeout frequently.Solution:
- Reduce
PROCSvalue to decrease concurrent DNS queries - Check DNS server configuration:
- Consider using faster DNS servers:
- Google:
8.8.8.8,8.8.4.4 - Cloudflare:
1.1.1.1,1.0.0.1
- Google:
- Check network connectivity:
Performance Issues
Slow Squid Performance
Large blocklist file
Large blocklist file
Problem: Squid is slow due to the 4.7M+ domain blocklist.Solution:BlackWeb is optimized for Squid-Cache, but you can improve performance:
-
Increase Squid cache memory:
- Use SSD storage for Squid cache
-
Increase file descriptor limits:
- Consider hardware upgrade if processing large volumes
Memory usage
Memory usage
Problem: High memory consumption.Solution:
-
Monitor memory usage:
-
Adjust Squid memory settings:
- Ensure adequate system RAM (recommended 4GB minimum)
Domain Blocking Issues
False Positives
Legitimate domain blocked
Legitimate domain blocked
Problem: A legitimate domain is being blocked by BlackWeb.Solution:
-
Identify which source is blocking it:
-
Example output:
- Contact the upstream source maintainer to request removal
-
Temporarily whitelist in
allowdomains.txt:
Google/Microsoft services broken
Google/Microsoft services broken
Problem: Google Drive, Gmail, or Microsoft services aren’t working.Solution: Add these domains to Then reload Squid:
allowdomains.txt:Domains Not Being Blocked
Expected domain not blocked
Expected domain not blocked
Problem: A domain you expect to be blocked isn’t.Solution:
-
Check if domain is in BlackWeb:
-
Check Squid ACL order in
/etc/squid/squid.conf:- Ensure
allowdomainsdoesn’t include it - Verify BlackWeb ACL is loaded
- Check rule order (allow rules before deny rules)
- Ensure
-
Add to custom blocklist:
- Clear browser cache and test
HTTPS sites bypassing block
HTTPS sites bypassing block
Problem: HTTPS sites aren’t being blocked.Solution:BlackWeb blocks domains at the DNS/domain level. For HTTPS:
- Configure SSL bumping in Squid (advanced)
- Use
ssl_bumpdirectives - Install CA certificate on client machines
Log Analysis
Understanding Squid Logs
Checking blocked requests
Checking blocked requests
Location: Count blocked domains:Find blocks for specific domain:
/var/log/squid/access.logView recent denials:Monitoring cache log
Monitoring cache log
Location: Check recent errors:
/var/log/squid/cache.logWatch for errors:File Permission Issues
Permission denied errors
Permission denied errors
Problem: Squid can’t read BlackWeb files.Solution:
-
Set correct ownership:
-
Set correct permissions:
-
Verify:
Platform-Specific Issues
Getting Help
GitHub Issues
Report bugs or request features
Check Syslog
Monitor update completion:Expected output:
Emergency Recovery
Restore Squid to working state
Restore Squid to working state
If BlackWeb causes critical issues:
-
Disable BlackWeb temporarily:
Comment out BlackWeb lines:
-
Reload Squid:
-
Restore from backup:
-
Test basic Squid:
