Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SharUpOff/gwhosts-proxy

Repository files navigation

gwhosts-proxy

DNS proxy/router for a specified list of hostnames

How does this app work

  1. The service proxies all DNS queries
  2. Adds static routes combining similar addresses into subnets
  3. Traffic for the list of hostnames goes through the specified gateway (e.g. VPN)

common-sequence.png

Installation

git clone https://github.com/sharupoff/gwhosts-proxy.git
cd gwhosts-proxy
# Prepare a gzipped list of hostnames (edit it before)
gzip --keep gwhosts.example
# Install dependencies
python -m venv env
./env/bin/pip install .

Usage

./env/bin/python -m gwhosts.main ./gwhosts.example.gz --ipv4-gateway=192.168.2.1 --ipv4-ifname=tun0 

Supported Environments

Operating Systems

  • GNU/Linux

Python Interpreters

Used resources

About

DNS proxy/router for a specified list of hostnames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /