Giter VIP home page Giter VIP logo

Comments (8)

zhuhaow avatar zhuhaow commented on July 28, 2024

Thank you for pointing that out. I tried and it was not working. See Router.swift. I'm not sure it is because there is some limitation on the TUN interface (seems like it will not forward packets to itself) or I just did something wrong.

Zhuhao Wang

2016年9月24日 +0800 23:44 Samuel [email protected],写道:

the ip packets to bytes method used in fq router is explained here. http://fqrouter.tumblr.com/post/51474945203/socks%E4%BB%A3%E7%90%86%E8%BD%ACvpn


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#18), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABOmLLZgn-UZiYMg5Ha_-vav4HJNM1Hoks5qtUVogaJpZM4KFq_A).

from nekit.

simpzan avatar simpzan commented on July 28, 2024

did you try to zero the checksum field? like the following code?
https://github.com/fqrouter/fqrouter/blob/master/manager/vpn.py#L94

from nekit.

zhuhaow avatar zhuhaow commented on July 28, 2024

I do not think it is the case. If I remember right I implemented the checksum correctly. Is there any reason that setting this to zero would make a difference than setting it to the real one?

2016年9月25日 +0800 09:11 Samuel [email protected],写道:

did you try to zero the checksum field? like the following code?
https://github.com/fqrouter/fqrouter/blob/master/manager/vpn.py#L94


You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#18 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABOmLDiUpLTXwq06ifjo7pPQhWgrWTjvks5qtcpOgaJpZM4KFq_A).

from nekit.

simpzan avatar simpzan commented on July 28, 2024

I don't know either. I want to try it myself, but I found some classes are missing, do you have them? If so could you share?

from nekit.

zhuhaow avatar zhuhaow commented on July 28, 2024

I think every file needed is in the repo, just need to add to the project.
Take a look at IPStack/Packet/


Zhuhao Wang
Zhejiang university

2016年9月25日 +0800 09:22 Samuel [email protected],写道:

I don't know either. I want to try it myself, but I found some classes are missing, do you have them? If so could you share?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub (#18 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/ABOmLPynoV1Yf48ATio2TpjYqlrWHI_Uks5qtczSgaJpZM4KFq_A).

from nekit.

simpzan avatar simpzan commented on July 28, 2024

I tried it, it does not work on tcp server in app extension, but it works on tcp server on containing app.

I asked the question on stackoverflow here http://stackoverflow.com/questions/39760871/socket-server-in-ios-nepackettunnelprovider-app-extension-cant-receive-connecti

from nekit.

zhuhaow avatar zhuhaow commented on July 28, 2024

Well, I think you representation is a little misleading, because you are not dealing with IP packets with containing app.

The proxy server works fine, the problem is the SYN packet is never received by the TUN interface if I remember correctly, and that is what you should ask. You can check it by using tcpdump or wireshark.

My guess is there is something special about how the system routing packets in this circumstance, maybe it's a bug.

from nekit.

simpzan avatar simpzan commented on July 28, 2024

Yes, the modified packets sent to packetFlow never show up in tcpdump.

from nekit.

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.