Install Zapret
Install Zapret to bypass DPI barriers.
1. Install required tools
# 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
# 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
4. Prepare for installation
5. Do Blockcheck
6. Install Zapret
6.1 Zapret service on Runit BSD Systems
6.2 Zapret service on rc.d BSD Systems
TIP: Uninstall Zapret
TIP: Remove DNS settings
Last updated