Skip to content

Tool to route traffic of a specific process over a interface e.g. a VPN

License

Notifications You must be signed in to change notification settings

jrester/wepwawet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wepwawet

Route the traffic of a process over a interface.

Note: currently only IPv4 is working.

Install

Install using pip:

$ pip install wepwawet

Examples

Route over wg0 interface and drop a bash shell:

$ sudo wepwawet --interface wg0 exec /bin/bash

Note: when running a shell or something similar, make sure to correctly exit. Otherwise cleanup will not work and you will end up with zombie tables, iptable rules, etc.

Don't route subnet 192.168.0.0/24 and 192.168.1.0/24 over the vpn (e.g. for a home network) and use the DNS 1.1.1.1:

$ sudo wepwawet --exclude 192.168.0.0/24 --exclude 192.168.1.0/24 --dns 1.1.1.1 exec "ping 192.168.0.1"

Only route a specific subnet over the interface, but the other traffic flows through your default interface:

$ sudo wepwawet --net 192.168.0.0/24 exec /bin/bash

Note: This creates an iptable masquerade rule for most interfaces on the system. Depending on the number of interfaces, this might get a little bit messy...

Disable automatic rule creation in your VPN

Wireguard

Add to your wireguard interface configuration file:

[Interface]
...
Table = off
...

About

Tool to route traffic of a specific process over a interface e.g. a VPN

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages