Reverse Proxy & DNS based solution to bypass paywalls 🔨💵🧱
Reverse Proxy & DNS based solution to bypass paywalls written in go
free.news
systemctl stop systemd-resolved
Requirements:
mkdir freenews && cd freenews
curl -O https://raw.githubusercontent.com/fipso/freenews/main/docker-compose.yml
sudo docker-compose up -d
sudo docker-compose logs --follow
sudo docker-compose pull && sudo docker-compose up -d
sudo docker-compose restart
Requirements:
git clone https://github.com/fipso/freenews.git
cd freenews
go build . && chmod +x freenews
sudo setcap CAP_NET_BIND_SERVICE=+eip freenews
(Optional. Allows binding low ports as normal user.)./freenews
Auto Start (systemd):
If you choose docker you obviously dont need this.
Create freenews.service
at /lib/systemd/system/
.
Example Service:
[Unit]
Description=FreeNews DNS & Reverse Proxy
[Service]
User=<some non root user>
WorkingDirectory=/home/<user>/...
ExecStart=/home/<user>/.../freenews
# DoT & AdBlock example:
#ExecStart=/home/<user>/.../freenews -dotDomain <your domain> -blockList <blocklist file>
Restart=always
[Install]
WantedBy=multi-user.target
DNS over TLS (DoT) is a new privacy focused way to use normal DNS using a TLS socket.
To make this work with this project, you have to get yourself a domain and SSL cert.
Place the cert (Copy fullchain.pem
instead of cert.pem
to dot_cert.pem
if you are using Let's Encrypt) file and its private key at cert/dot_cert.pem
and cert/dot_key.pem
.
Start freenews with the -dotDomain <your domain>
flag to enable DoT. Make sure to open port 853/UDP.
Android: Use one of the following:
IOS:
You can add new hosts to the list by appending a [[host]]
block to the config.toml
file.
curl -O https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/light.txt
-blockList
param./freenews -blockList light.txt
We currently redirect all blocked domains to 127.0.0.1