Code Monkey home page Code Monkey logo

Comments (4)

imgk avatar imgk commented on August 23, 2024
  • It is possible to add an option of setting MTU and DNS and it is easy to implement. PR is welcome.
  • Modifying the route table is complicated. Currently, shadow just supports adding an entry. But I'm not sure how to implement excluding routes.
  • As the main function is quite simple now. If you want to pass arguments via CLI, I suggest you write a customized main.go. I want to keep shadow simple and won't add too many args.

from shadow.

kayrus avatar kayrus commented on August 23, 2024

Modifying the route table is complicated. Currently, shadow just supports adding an entry. But I'm not sure how to implement excluding routes

excluding routes is already implemented in my module

from shadow.

imgk avatar imgk commented on August 23, 2024

Setting DNS is just applicable for Windows. So I won't add this feature. Setting MTU is fine. However, I DO not think it is necessary. I think adding an option to run PostUp and PostDown is a better way to modify the route table for excluding routes.

I have read your method about excluding routes. I doubt that adding these route entries may conflict with original ones.

from shadow.

 avatar commented on August 23, 2024

Hi, I'm working on a similar project fork (https://github.com/eycorsican/go-tun2socks). I implemented some features I missed, but the upstream project is based on LwIP stack, which I don't like.

I'd happy to switch to your project, but it doesn't support features listed below:

  • MTU set for Windows (wireguard doesn't set it by default)
  • Exclude routes (CLI arg + config)
  • It would be nice if you make config file to be optional and allow specifying parameters via CLI args as well

I prepared a package to support this stuff: https://github.com/kayrus/tuncfg
Let me know if you want to embed it into your project

何必纠结LwIP?tun2socks其实最难受的还是需要手动安装一次虚拟网卡,好像叫tap-windows。相比之下还是本项目的作者更为简单直接,一套cmd直接带走。

from shadow.

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.