Tariq is yet another smart DNS solution to bypass geo-blocking.
- Docker (Install)
- systemd
- BASH v4
- crontab
- dig
- iptables
- Open ports: 53, 80, 443
- Open ports (IF Encrypt Enable): 53, 80, 443 , 853, 4443
- A domain and ssl for it (IF Encrypt Enable)
sudo git clone https://github.com/alikhadivi/tariq /opt/tariq
cd /opt/tariq
sudo git submodule init
sudo git submodule update
sudo ln -snf /opt/tariq/tariq /usr/bin/tariq
sudo tariq pull
Tariq needs to be installed on a server to the region you are interested. After you start it, change the DNS of client to the IP of your server.
sudo tariq config-set encrypt true
create .env
file with below content and set your ssl path:
cert=/path/to/cert.pem
key=/path/to/key.pem
After:
sudo tariq start
sudo tariq enable
sudo docker compose up -d --build
sudo tariq start
sudo tariq enable
Note: Required to enable cronjob after install
sudo tariq status
Enable cronjob for auto reload ddns ips(Required):
sudo tariq cronjob
sudo tariq add-ip 1.2.3.4
sudo tariq rm-ip 1.2.3.4
sudo tariq list-ips
sudo tariq add-ddns mypc.example.com
sudo tariq rm-ddns mypc.example.com
sudo tariq list-ddns
sudo tariq reload-ddns
sudo tariq update
OR
cd /otp/tariq
sudo git pull
sudo git submodule update
sudo tariq pull
sudo tariq restart
If you want to use OpenDNS servers instead Google DNS then do:
sudo tariq config-set dns '208.67.222.222,208.67.220.220'
sudo tariq restart
Tariq by default is using iptables to allow ports 443
, 80
, 53
only for the IPs you want. If you prefer to manage this with your own
firewall rules, then you can disable this feature with:
sudo tariq config-set iptables false
sudo tariq restart