Giter VIP home page Giter VIP logo

nio-socks-proxy's Introduction

nio-socks-proxy

为了在windows环境下使用kt-connect连接k8s内部网络,需要为NIO实现对SOCKS5代理的支持,否则一些客户端组件如果使用的是NIO,就无法连接。

具体实现参考了mocksocks项目以及JDK8中的java.net.SocksSocketImpl的实现。

使用方式

配置项目启动参数,javaagent与nioSocksProxyJar的参数值为lib/nio-socks-proxy-1.0.0.jar的绝对路径。nioSocksProxyHost与nioSocksProxyPort配置socks服务器的地址。

-DnioSocksProxyHost=127.0.0.1
-DnioSocksProxyPort=2223
-javaagent:xxx\nio-socks-proxy.jar
-DnioSocksProxyJar=xxx\nio-socks-proxy.jar

nio-socks-proxy's People

Contributors

michael1024-cjx avatar

Stargazers

 avatar  avatar LiuJie avatar pptom avatar 不想当厨子的老谭 avatar fanjiwang avatar  avatar  avatar

Watchers

 avatar

nio-socks-proxy's Issues

关于该代理工具使用的疑问

目前我是在windows环境使用idea,用socks5的方式联调。启动项目后可以访问pod提供的服务,但是使用dubbo进行微服务调用失败。然后看到您的项目,猜测需要给dubbo底层nio进行代理才能正常访问服务提供者。但是按照您的方法添加lib之后,仍然无法代理,只多出来来一句Can't set proxy for /11.244.203.152:20880,请问您当时代理成功的时候,本地网络是怎么配置的呢。

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.