Giter VIP home page Giter VIP logo

Comments (18)

Alekseykua avatar Alekseykua commented on May 31, 2024 1

Is this project still active? Interested in participating.

from icepa.

conradev avatar conradev commented on May 31, 2024
  • I forgot to push a file – check now and see if the ViewController builds
  • Can you post the full build log of tun2tor-iOS?

Also, Rust is now at version 1.8, so you might want to follow the updated README instructions.

Also, of note: you will not be able to use iCepa at all unless you have those entitlements from Apple.

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

ViewController builds now. I have followed the updated README but the error is there.
Here is the full build log of tun2tor-iOS
https://gist.github.com/ali-ht10/32b8c46c24004895c3971e3d4fc17ac7

Thanks

from icepa.

conradev avatar conradev commented on May 31, 2024

Make sure that your submodules are initialized:

git submodule update --init --recursive

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

Submodules not being initialized is causing the tun2tor-iOS issue?

from icepa.

conradev avatar conradev commented on May 31, 2024

That's the only reason I can think of that Cargo.toml would not be in Extension/tun2tor. Is the file there?

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

Nop

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

But I don't think the second error, Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: target/x86_64-apple-ios/debug/libtun2tor.a ,
is related to Cargo.toml. Maybe its not building the tun2tor.sh file properly.

What do you think?

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

Well I initialized the submodules and Cargo.toml was there after the initialization. Missing Cargo.toml error is fixed. On building the project, I get this:
Updating registry https://github.com/rust-lang/crates.io-index
Compiling ip v1.1.1
Compiling libc v0.2.10
Compiling socks v0.1.0 (file:///Workspace/Documents/iCepa/iCepa/Extension/tun2tor)
Compiling tun2tor v0.1.0 (file:///Workspace/Documents/iCepa/iCepa/Extension/tun2tor)
error: could not find native static library compiler-rt, perhaps an -L flag is missing?
Could not compile tun2tor.

To learn more, run the command again with --verbose.
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: target/x86_64-apple-ios/debug/libtun2tor.a (No such file or directory)

Here is the full build log:
https://gist.github.com/ali-ht10/ca5721736cae71e951213ca60cbca4f0

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

After reinstalling rust, I did manage to successfully build the project. But when I press Start Tor button, the controller.addObserverForCircuitEstablished block is never called. The connected property of controller was false.

Debugging the iOS extension, controller.connect() in startTunnelWithOptions method leads to an error: Error Domain=NSPOSIXErrorDomain Code=49 "Can't assign requested address"

Do I have to change the TorConfiguration, TunnelNetworkSettings according to my own need or will the originals configuration and settings work?

Thanks

from icepa.

conradev avatar conradev commented on May 31, 2024

To respond to your old comments:

  • The second error, can't open input file was a result of the failure of the first error
  • Not being able to find compiler-rt is most likely because the compiler does not have the proper target compiled in

As for NSPOSIXErrorDomain Code=49, or EADDRNOTAVAIL – that is a current crippling issue that was introduced by some change I made and I can't figure out what causes it or how to fix it. That is what I am currently working on with regards to the project. I will try to fix it this weekend!

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

And what about the Tor configuration and the TunnelNetworkSettings?

How can I monitor the DNS traffic through this app? Do I have to monitor that by running the app extension?

from icepa.

al-ht10 avatar al-ht10 commented on May 31, 2024

I'm just wondering that whether Apple allows you to route all of your device's traffic through Tor. Because on App Store, majority of the apps related to Tor are Web Browsers. Meaning only one app's traffic is routed through Tor. I did query this question about whether Apple allows you to route all your traffic but got no response.

What do you think?

from icepa.

mtigas avatar mtigas commented on May 31, 2024

Hi @ali-ht10, you’re correct that apps currently in the App Store only have Tor within themselves. Generally, if you want Tor inside an iOS app, the Tor daemon needs be run as a thread within the app — not as a subprocess, like on Android or on normal computers. When you leave the Tor-using app to use another app, the Tor daemon is paused along with the rest of the app and can no longer process traffic.

The entire point of this iCepa project is to build something where Tor can run system-wide, as you describe. (The iOS 9 Network Extension framework is the new thing that hopefully allows this to happen.) However, iCepa is still a work in progress and does not completely work yet (see list here). So some of your other questions may not have answers yet.

But: the default NEPacketTunnelNetworkSettings and TORConfiguration() options should be OK to reuse, though if Tor is blocked where you are located, you may need more settings passed to TORConfiguration().

(I’m going to leave this ticket open pending the NSPOSIXErrorDomain Code=49 "Can't assign requested address" issue.)

from icepa.

conradev avatar conradev commented on May 31, 2024

Yes it is! I am going to push some changes with Swift 3 in iCepa and Tor.framework, and it should be possible to install without a jailbreak now that iOS 10 beta 2 raises the memory limit!

from icepa.

Alekseykua avatar Alekseykua commented on May 31, 2024

Requested "special Network Extension entitlements". Looking forward to getting this app live !

from icepa.

Alekseykua avatar Alekseykua commented on May 31, 2024

I got an automatic response from that apple email pointing me to some sort of questioner, might be a dead link...

"Sorry, you cannot view this page.
This page no longer exists or the Apple ID you signed in with does not have permission to view this page. If you’re currently a member of the Apple Developer Program, you or your Team Agent may need to update your account by agreeing to the latest license agreement in order to access this page."

from icepa.

conradev avatar conradev commented on May 31, 2024

I resolved EADDRNOTAVAIL back in June at WWDC – going to close this issue.

from icepa.

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.