Thanks to visit codestin.com
Credit goes to github.com

Skip to content

yanghuaxuan/stun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

(s)plit (tun)nel

a wireguard split tunnel script

This is a simple bash script that utilizes Linux network namespaces to selectively split tunnel applications.

Usage

  • Require root permissions
  • You must also edit the script's $IF variable to the external interface you're using (i.e. eth0). I'm currently using eno1, and therefore, the script is set to use eno1
stun --init -i | --destroy -d

--init | -i	Must be run before using exec. Create a new network namespace for split tunneling, along with other stuff to make this all work.
--destroy | -d	Destroys the network namespace for split tunneling.

stun COMMAND

Run command in the split tunnel network namespace.

Example

$ curl ifconfig.me
-> Your VPN's ip :(

# stun --init
# stun curl ifconfig.me
-> Your residential ip :)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages