Giter Site home page Giter Site logo

tariq's Introduction

About

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

Prerequisites

  • 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)

Installation

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

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.

Enable With Encryption

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

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

Update Tariq

sudo tariq update

OR

cd /otp/tariq
sudo git pull
sudo git submodule update
sudo tariq pull
sudo tariq restart

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's People

Contributors

alikhadivi avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

tariq's Issues

doesn't start

Hello i followed the guide line but when i do the commad "sudo tariq start
sudo tariq enable" doesn't start

Start on boot: yes
Running: no

Thank you

I have problems

Hello, I have a problem, everything starts correctly but I get these errors.
Could you help me, thanks a lot.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.