Git Product home page Git Product logo

Comments (8)

Rhys-T avatar Rhys-T commented on June 2, 2024 1
  • Can you confirm whether both Downloads folder & Logcat did not work?

The 'Logcat' option seems to work fine. The 'Downloads folder' option creates a file successfully - the file just isn't correctly formatted.

  • For Downloads folder, make sure Rethink has been granted access to write to the external storage.

The first time I tried it, it prompted me to grant that, and I did. I wondered whether the header had been lost as a result of that somehow, but I tried it a second time with the permission already granted, and it failed the same way.


I've had a chance to examine the broken files more closely. It looks like they're missing the initial global header, and instead begin with the first packet header. (Enough network activity happens in the background that I don't know whether any actual packets from the beginning are being lost or not.) I don't see any sign of the global header (D4C3B2A1 etc.) anywhere else in the file - it seems to just be missing.

from rethink-app.

ignoramous avatar ignoramous commented on June 2, 2024 1

I just did some more testing, and it seems like once I start capturing (to either a file or logcat), it keeps going even after I turn it back off. Turning Rethink off and back on seems to stop the capture.

Yikes.

private suspend fun setPcapMode() {
val pcapPath = appConfig.getPcapFilePath()
if (pcapPath.isEmpty()) {
Log.i(LOG_TAG_VPN, "pcap mode disabled")
return
}
Log.i(LOG_TAG_VPN, "pcap mode enabled, path: $pcapPath")
vpnAdapter?.setPcapMode(pcapPath)
}

Network engine (vpnAdapter) must be instructed to stop capturing before the return on line 1718.

from rethink-app.

hussainmohd-a avatar hussainmohd-a commented on June 2, 2024 1

Fix: 3788577

from rethink-app.

Rhys-T avatar Rhys-T commented on June 2, 2024 1

Just got 055g through F-Droid, and this seems to be fixed. I've tested both Logcat and Downloads folder modes, and they both seem to stop immediately when I change the setting again. Thanks!

from rethink-app.

Rhys-T avatar Rhys-T commented on June 2, 2024 1

🤦 Sorry, I think perhaps I wasn't quite fully awake yet when I posted that, because I completely forgot to check on the thing this issue was originally about. But I can confirm that the new .pcap files seem to have the proper header, and are loaded correctly by Wireshark.

from rethink-app.

ignoramous avatar ignoramous commented on June 2, 2024

This is helpful. I think the ongoing "improvements" we are making where we never restart the network engine (regardless of whether the VPN service is restarted) might have caused this.

from rethink-app.

Rhys-T avatar Rhys-T commented on June 2, 2024

Could be. I also noticed that one of the test files kept getting written to for a long time after I thought I had stopped it, ending up over 2 GiB. I had convinced myself that I just missed stopping the capture somehow, but I just did some more testing, and it seems like once I start capturing (to either a file or logcat), it keeps going even after I turn it back off. Turning Rethink off and back on seems to stop the capture.

from rethink-app.

ignoramous avatar ignoramous commented on June 2, 2024

Thanks for confirming. The pcap file isn't malformed anymore, is it?

from rethink-app.

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.