Skip to content

Tariq is yet another smart DNS solution to bypass geo-blocking.

License

Notifications You must be signed in to change notification settings

AliKhadivi/tariq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ddc9e61 · Jun 7, 2022

History

56 Commits
Jun 7, 2022
Apr 17, 2022
Jun 7, 2022
Apr 17, 2022
Jun 7, 2022
Apr 27, 2022
Jun 7, 2022
Jun 7, 2022
Apr 17, 2022
Apr 17, 2022
Jun 7, 2022

Repository files navigation

About

Tariq is yet another smart DNS solution to bypass geo-blocking.

Prerequisites

  • Docker (Install)
  • systemd
  • BASH v4
  • crontab
  • dig
  • iptables

Installation

sudo git clone https://github.com/alikhadivi/tariq /opt/tariq
sudo ln -snf /opt/tariq/tariq /usr/local/bin/tariq
sudo tariq pull

Usage

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.

Start Tariq and enable it on boot

sudo tariq start
sudo tariq enable

Note: Required to enable cronjob after install

Check if it's running

sudo tariq status

Enable Cronjob

Enable cronjob for auto reload ddns ips(Required):

sudo tariq cronjob

Allow an IP to use your smart DNS

sudo tariq add-ip 1.2.3.4

Remove an IP

sudo tariq rm-ip 1.2.3.4

List all allowed IPs

sudo tariq list-ips

Allow an DDNS Client to use your smart DNS

sudo tariq add-ddns mypc.example.com

Remove an DDNS Client

sudo tariq rm-ddns mypc.example.com

List all allowed DDNS Client

sudo tariq list-ddns

Update DDNS Client IP

sudo tariq reload-ddns

Configuration

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

Tariq detects if you have a global IPv6 and it creates IPv6 NAT. This feature adds an iptables rule even if iptables config options is false. To disable this feature do:

sudo tariq config-set ipv6nat false
sudo tariq restart