Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

wireguard-disallow-ips

With this tool you can easily allow some traffic to bypass the VPN. There is no DisallowedIPs property in wireguard configs, but you can do this by specifying only the AllowedIPs property.

Install

pip install -r requirements.txt

Usage

  1. Create input.txt file and write hosts to be processed without VPN:

    yandex.ru
    mail.yandex.ru
     
    google.com
    
  2. Make sure that you have disabled your vpn and run the script.

    python3 main.py
    
  3. Copy AllowedIPs from console of from allowed.ips file and paste it into your wireguard client config. Make sure that Block untunneled traffic is disabled.

About

A simple script that uses https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/ . It will help you to route specific trafic outside the vpn

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

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