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 pullTariq 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 truecreate .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 --buildsudo tariq start
sudo tariq enableNote: Required to enable cronjob after install
sudo tariq statusEnable cronjob for auto reload ddns ips(Required):
sudo tariq cronjobsudo tariq add-ip 1.2.3.4sudo tariq rm-ip 1.2.3.4sudo tariq list-ipssudo tariq add-ddns mypc.example.comsudo tariq rm-ddns mypc.example.comsudo tariq list-ddnssudo tariq reload-ddnssudo tariq updateOR
cd /otp/tariq
sudo git pull
sudo git submodule update
sudo tariq pull
sudo tariq restartIf 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 restartTariq 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