Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.
/ xray-tun2socks Public archive

This is a simple script that will route all traffic through xray using tun2socks tun adapter

License

Notifications You must be signed in to change notification settings

iamtrazy/xray-tun2socks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xray-tun2socks

This is a simple script that will route all traffic through xray using tun2socks tun adapter

📖 Pre-Requirements

  1. install xray using command " bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install "
  2. clone the repo into any directory ( git clone https://github.com/iamtrazy/xray-tun2socks )
  3. create a user named tun2socks - ( sudo useradd -m tun2socks )

📖 How to connect

  1. go to the directory xray-tun2socks
  2. edit the config.json file and paste your xray-client configuration ( do-not use dns name , instead use VPS ip address )
  3. set 10808 as socks5 inbound port in xray config
  4. run the tunnel.sh file ( sudo ./tunnel.sh )
  5. you can stop the script anytime by pressing ctrl+c

screenshots

image

:octocat: Credits

https://github.com/xjasonlyu/tun2socks

https://github.com/XTLS/Xray-install

About

This is a simple script that will route all traffic through xray using tun2socks tun adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages