Install Zapret
Install Zapret to bypass DPI barriers.
1. Install required tools
Required tools for installation.
# FreeBSD, DragonFlyBSD, TrueNAS, MidnightBSD, GhostBSD (pkg)
sudo pkg install -y curl bind-tools unzip unbound
# NetBSD (pkgsrc)
sudo pkgin install curl unzip bind unbound
# OpenBSD (pkgsrc)
sudo pkg_add curl unzip bind unbound
# Others bsd's can install from their package managers, source or cargo (rust implement, not recommended).2. Change DNS rules
Zapret only bypasses dpi, its not going to add dns for yourself. Get cool and add a dns over tls with unbound :3 Be sure pf rules flushed and firewall state is open. Im gonna use cloudflare's dns for myself... so u can use any dns what is suitable for yourself (eg yandex dns if youre in russia)
# Before ipfw fucks your internet, you need configure your firewall state to open before enabling
sudo sysrc firewall_type="open"
sudo sysrc firewall_enable="YES"
# Backup your old unbound config and replace it with this (or if you advanced merge it)
sudo cp /usr/local/etc/unbound/unbound.conf /usr/local/etc/unbound/unbound.conf.bak
sudo tee /usr/local/etc/unbound/unbound.conf &>/dev/null <<'EOF'
server:
interface: 127.0.0.1
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: yes
qname-minimisation: no
forward-zone:
name: "."
forward-tls-upstream: yes
forward-addr: 1.1.1.1@853
forward-addr: 1.0.0.1@853
EOF
# Enable and start unbound
sudo service enable unbound
sudo service start unbound
# add 127.0.0.1 on your resolv.conf and lock
sudo mv /etc/resolv.conf /etc/resolv.conf.bak
echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf
sudo chflags schg /etc/resolv.conf3. Download Zapret
Download the compiled zip file as release on GitHub.
4. Prepare for installation
build and prepare to perform installation.
5. Do Blockcheck
Find the DPI methods implemented by the ISP.
Here are the answers you need to give to the questions you may encounter during this time.
Wait for the test to finish. This may take a few minutes.
After the process is finished, the test results will appear.
Copy the latest setting from these results. Example:
This is an example settings for DVTWS. It may be different for each person. Make a note of it.
6. Install Zapret
We can start installing Zapret. Also there's dvtws implement for nfqws because bsd systems doesnt use network filter libs.
6.1 Zapret service on Runit BSD Systems
6.2 Zapret service on rc.d BSD Systems
TIP: Uninstall Zapret
If you ever regain your freedom, you can undo all of these actions in the following way.
TIP: Remove DNS settings
If you want to remove the DNS settings, you can do the following.
Last updated