News for hackers. Stuff that matters.
Re:Redirector – Browser extension to redirect to privacy res... by 1vuio0pswjnm7 on Thursday December 23, 2021 @09:29PM (#29669339)
In the case where I have to use popualr browsers, I use local DNS and a forward proxy to do what this extension does, i.e., replace URLs. Google/Mozilla/Apple/Microsoft/Opera have control over extensions to their browsers, but they have less/no control over a proxy server written by someone else.
Re:Redirector – Browser extension to redirect to privacy res... by 1vuio0pswjnm7 on Friday December 24, 2021 @02:36AM (#29671285)
Simplified setup, many variations possible

DNS: nsd or tinydns

listens on 127.8.8.1

query example.com @127.8.8.1

custom root.zone with wildcards

answer example.com IN A 127.8.8.2

Proxy: haproxy

listens on 127.8.8.2, returns user-provided certificate

replaces URLs, etc.

forwards to 93.184.216.34, verifies server certificate

To generate certificates, I wrote a "mkcert" script years before the one written in Go that is now being promoted by someone working for Google. That company's web browser has the majority share of users. Alas, that browser is unreasonably hostile to user-provided certificates for local addresses.1 Hence this is probably not a setup that is appropriate for everyone or every situation. For recreational web use, I like to manipulate and inspect traffic, this is more lightweight than popular alternatives (mitmproxy, etc.), so it works for me.

1. https://stackoverflow.com/questions/7580508/getting-chrome-t...

Re:Redirector – Browser extension to redirect to privacy res... by pretext on Friday December 24, 2021 @03:27AM (#29671566)
I wonder how to implement this with pi-hole.
Re:Redirector – Browser extension to redirect to privacy res... by 1vuio0pswjnm7 on Friday December 24, 2021 @04:04AM (#29671803)
Pi-Hole used dnsmasq and modified it. Pi-Hole encourages users to forward DNS queries to (so-called "upstream") third party DNS providers; I think it comes with presets for GoogleDNS and others. I try to avoid dnsmasq (it is often used by default on OpenWRT) as well as third party DNS. I love the idea behind Pi-Hole but I cannot get excited about the implementation.

If I were to make a "Pi-Hole", I would use nsd, tinydns and haproxy. There would be no need for third party DNS. For anyone that wanted to use third party DNS, optionally I would provide dnscache. It's easy to take public DNS blocklists and "import"^1 them into dnscache.

There are lots of other interesting "alternative Pi-Hole" ideas yet to be tried.

1. dnscache uses the filesystem for nameserver manipulation instead of lists. Each domain is a file in the root/servers folder. Each file contains the address of a (blackhole) nameserver.

Re:Redirector – Browser extension to redirect to privacy res... by anshulag on Friday December 24, 2021 @12:32AM (#29670601)
I'm also curious about your setup.
Re:Redirector – Browser extension to redirect to privacy res... by ghjklpoiuy on Thursday December 23, 2021 @10:43PM (#29669902)
Link please to your setup
Re:Redirector – Browser extension to redirect to privacy res... by grapescheesee on Friday December 24, 2021 @08:00AM (#29673233)
Bump to this as well