GithubHelp home page GithubHelp logo

jtun2socks's Introduction

jtun2socks's People

Contributors

drbrad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jtun2socks's Issues

How could I hide the remotePort in the TCP packet?

Thank you for this code. It's short so it's readable.

First, in NatSession, I would recommend to rename remoteAddress to remoteIP for consistency.

Secondly, this line is not "very good":
https://github.com/DrBrad/JTun2Socks/blob/master/app/src/main/java/jtun2socks/shadowrouter/org/jtun2socks/VPN/Proxy.java#L90

I think that it would be better to use session.remoteAddress. I have a C-implementation of proxy.java and I initially did getsockname for java "socket.getInetAddress().getAddress()" but it was giving me 10.8.0.2. I had to use getpeername.

To continue my point, remoteAddress is not used in proxy.java because you are putting the IP address into the source IP header. So you are duplicating information and remoteAddress is not used. Not a bug but it was confusing a little bit.

Now, as I'm doing a C-implementation of proxy.java, it's very difficult to go back from JNI to JAVA to get the NatSessionManager.getSession((short) socket.getPort()) because the class is started by a service (I could explain this more but that's not the point of the issue). My point is that if remotePort was hidden somewhere else in the socket, it could be retrieved from C without JAVA and without even the NATSession.

So, how could I hide the remotePort to retrieve it without java? Couldn't it be put where the port key is put?

How to forward UDP?

Thanks for your efforts.

Now I want to support forwarding UDP.
What time will you support UDP?
If you don't have time to support UDP soon, please guide me(documents or any relate technical) to support forwarding UDP.

Proxy server socks5-IPv6 doesn't work at all

Proxy server socks5 IPv4 work fine. But when I added a proxy server socks5 IPv6, then Internet access is lost for all content. Error message in Chrome browser ERR_SSL_PROTOCOL_ERROR.

Build failed due to client inputstream

Hey,
you did a amazing job created android socks5 client in java!
i want to use it but i get this error while building in android studio:

/home/paya/AndroidStudioProjects/JTun2Socks/app/src/main/java/jtun2socks/shadowrouter/org/jtun2socks/VPN/Proxy.java:55: error: cannot find symbol
                    clientIn = socket.getInputStream();
                    ^
  symbol:   variable clientIn
  location: class Proxy.Tunnel

i wasn't able to fix it(did build but doesn't connect)
so if u could fix it and push update it would be really helpful

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.