xvzc / SpoofDPI

A simple and fast anti-censorship tool written in Go
Apache License 2.0
3.72k stars 255 forks source link

Feature request: iOS / iPadOS support #243

Open CryptoManiac opened 1 month ago

CryptoManiac commented 1 month ago

Description

Hello. As far as I can see, the iOS is providing a network filter functionality which is nearly identical to that of macOS implementation. As a consequence, a lot of applications like VPN clients, as well as Tor and SSH tunnelling tools are working on both iOS and macOS without any problem (see SSH VPN for example). It would be great to see the SpoofDPI working on mobile platforms.

dtcyganok commented 1 month ago

It's a mighty relevant issue especially considering the utter lack of such kind of software on iOS.

CryptoManiac commented 1 month ago

It's a mighty relevant issue especially considering the utter lack of such kind of software on iOS.

There's AdGuard and similar tools but their functionality is rather limited.

dtcyganok commented 1 month ago

There's AdGuard and similar tools but their functionality is rather limited.

Hmm In my last little research I have found no DPI spoofers...

CryptoManiac commented 1 month ago

Description

(see SSH VPN for example).

Source code for the reference:

https://github.com/hossinasaadi/sshTunnel-ios

Ledorub commented 1 month ago

Source code for the reference:

https://github.com/hossinasaadi/sshTunnel-ios

Is it possible without rewriting the app in Swift?

CryptoManiac commented 1 month ago

Source code for the reference:

https://github.com/hossinasaadi/sshTunnel-ios

Is it possible without rewriting the app in Swift?

Swift can interact with everything that is able to export symbols. Meaning that integration with Go is not a problem. The sshTunnel application itself is a wrapper too.

A wrapper over this C library to be exact.

Ledorub commented 1 month ago

I haven't checked it myself, but looks like https://github.com/SpoofDPIApp/SpoofDPI-App may do.

An app for macOS won't work on iOS. But I suggest everyone interested ask the author about an iOS app. Maybe they will be willing to create one.

CryptoManiac commented 1 month ago

~I haven't checked it myself, but looks like https://github.com/SpoofDPIApp/SpoofDPI-App may do.~

An app for macOS won't work on iOS. But I suggest everyone interested ask the author about an iOS app. Maybe they will be willing to create one.

If there are no macOS-specific APIs then it might work after compiling for the iOS target. As it would seem, I can say that the GUI itself is interacting with menu bar so it's unlikely to work as is. In order to make it work, that GUI functionality will need to be removed.