8000 GitHub - yanghuaxuan/stun · GitHub
[go: up one dir, main page]

Skip to content
yanghuaxuanPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0