Skip to content

Commit

Permalink
Update usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrammar committed Dec 17, 2022
1 parent 8c9dcf4 commit ae3b83d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usage_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
1. Ensure all the dependancies have been installed: `pip3 install --user -r requirements.txt`
2. Review the `whitelist` file to ensure all domains you want to whitelist are present
3. Run the following command: `python3 updateHostsFile.py --replace --skipstatichosts --extensions porn --whitelist whitelist`
4. Upload outputted `hosts` file to `/etc/config/custom_hosts/` in the router e.g. `scp hosts [email protected]:/etc/config/custom_hosts/porn`
4. Upload outputted `hosts` file to `/etc/config/custom_hosts/` in the router e.g. `scp hosts [email protected]:/etc/config/custom_hosts/porn` (you made need the `-O` flag - upper case `o` - to tell the sftp client to fall
back to an older protocol to connect to the server successfully)
5. Then run `/etc/init.d/dnsmasq restart`
6. Check in the logs to see that its loaded it ok by running `logread` and checking for a line like `Sat Apr 30 08:50:43 2022 daemon.info dnsmasq[7703]: read /etc/config/custom_hosts/porn - 142886 addresses`
6. Check in the logs to see that its loaded it ok by running `logread` and checking for a line like `Sat Apr 30 08:50:43 2022 daemon.info dnsmasq[7703]: read /etc/config/custom_hosts/porn - 142886 addresses`

0 comments on commit ae3b83d

Please sign in to comment.