Code Monkey home page Code Monkey logo

Comments (2)

eycorsican avatar eycorsican commented on September 27, 2024

@dogfight360 粗略搞了下,暂时可以用这个分支来编译 windows 程序:https://github.com/eycorsican/go-tun2socks/tree/windows ,我得另找时间合并进 master。

因为项目用到了 cgo,在其它平台上交叉编译需要用相应的工具链,比如 MinGW。我推荐你用 xgo:https://github.com/karalabe/xgo

另外我把现成的可执行程序上传了,你要用可以直接下载:https://github.com/eycorsican/go-tun2socks/blob/windows/tun2socks-windows.zip

运行所需的命令大概这样子:

tun2socks.exe -dnsServer 1.1.1.1,223.5.5.5 -proxyServer 1.2.3.4:1086 -tunAddr 10.0.0.1 -tunGw 10.0.0.2 -tunMask 255.255.255.0 -tunName tap0901:tun1:10.0.0.1:10.0.0.0:255.255.255.0

route add 1.2.3.4 192.168.1.1 metric 5
route add 0.0.0.0 mask 0.0.0.0 10.0.0.2 metric 6

具体可参考这里:https://code.google.com/archive/p/badvpn/wikis/tun2socks.wiki

from go-tun2socks.

dogfight360 avatar dogfight360 commented on September 27, 2024

exe测试在win10正常运行
编译为win还在一头雾水中.还是等一个完整的教程吧┗( T﹏T )┛

from go-tun2socks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.