cloudflared for powerpc64 (ps3 linux (red ribbon))

so since you can jailbreak an iphone and add repos could it theoretically be possible to add support for iphoneos-arm
N: Skipping acquire of configured file 'main/binary-iphoneos-arm/Packages' as repository 'https://pkg.cloudflare.com/cloudflared any InRelease' doesn't support architecture 'iphoneos-arm'
N: Skipping acquire of configured file 'main/binary-iphoneos-arm/Packages' as repository 'https://pkg.cloudflare.com/cloudflared any InRelease' doesn't support architecture 'iphoneos-arm'
use case: localhosting a website with cloudflared tunneling as an iphone as the host machine
18 Replies
Erisa
Erisa2w ago
i tried building it myself once but turns out building Go programs for ios is nowhere near as simple as it is for other platforms so i doubt cloudflare will put in the work it is open source though so if you want to put in the large amount of required time and effort yourself its possible your usecase is significantly easier on android btw, because you can install termux and run everything in there without needing root
alriceee
alriceeeOP2w ago
i've decided to take my time and effort to build from source, and since ios doesn't use systemd or anything like that, it makes this twice as hard and not having a mac also makes it difficult
Erisa
Erisa2w ago
significantly, yes compiling for ios without a mac is a nightmare i do have a mac and still found building cloudflared for ios to be way too much effort than i was willing to spend
alriceee
alriceeeOP2w ago
well i mean, i got it to build and compile for iphoneos-arm (rootful jailbreak) i just don't know if it works
redacted-iPhone:~ mobile% cloudflared
dyld[14934]: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Referenced from: <no uuid> /usr/bin/cloudflared
Reason: tried: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file), '/private/preboot/Cryptexes/OS/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file), '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file, not in dyld cache)
zsh: abort cloudflared
redacted-iPhone:~ mobile%
redacted-iPhone:~ mobile% cloudflared
dyld[14934]: Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Referenced from: <no uuid> /usr/bin/cloudflared
Reason: tried: '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file), '/private/preboot/Cryptexes/OS/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file), '/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation' (no such file, not in dyld cache)
zsh: abort cloudflared
redacted-iPhone:~ mobile%
nope, i clearly didn't do something right since its still looking for macos binarys
Erisa
Erisa2w ago
yeah, exactly
alriceee
alriceeeOP2w ago
is that all you got to then realized its not worth the effort?
Erisa
Erisa2w ago
i did play around with it a bit and tried some tools online but it was always that or other unhelpful errors
alriceee
alriceeeOP2w ago
might just try to get macos running in a vm (try not to get mad at virtualbox challenge: impossible)
alriceee
alriceeeOP2w ago
No description
𝖆𝖚𝖙𝖎𝖘𝖙
@alriceee you might want to try docker-osx. Dont know if it fits your usecase but for me it always was easier to setup than VirtualBox
alriceee
alriceeeOP6d ago
docker osx? seems like a mac thing just from the name
𝖆𝖚𝖙𝖎𝖘𝖙
Nah you can use docker to run mac os on linux and windows 😄 https://github.com/sickcodes/Docker-OSX
GitHub
GitHub - sickcodes/Docker-OSX: Run macOS VM in a Docker! Run near n...
Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers. - sickcodes/Docker-OSX
alriceee
alriceeeOP3d ago
well im going with an even stupider route: ps3linux :D pros: linux cons: stuck on debian 8.11 (jessie) have to build a bunch of stuff for powerpc arch/debian 8 Progress - Python 3.6: built and compiled - Cloudflared: still needing to do so
Erisa
Erisa3d ago
seems weird to reuse the thread for a completely different approach you dont need a ppc machine to build cloudflared for ppc though, its supported by Go and so can be cross-compiled
GOOS=linux GOARCH=ppc64el make cloudflared
GOOS=linux GOARCH=ppc64el make cloudflared
from any machine
alriceee
alriceeeOP3d ago
oh good, so no issues with debain 8.11?
Erisa
Erisa3d ago
add GO111MODULE=on CGO_ENABLED=0 as well you'll get a static binary that will work anywhere adapting these from https://github.com/Erisa/cloudflared-docker/blob/main/Dockerfile
alriceee
alriceeeOP2d ago
:thumbsupemoji: so that funny "thing"
(venv) (live)alriceps3@alriceps3linux:~$ ./cf Illegal instruction
(venv) (live)alriceps3@alriceps3linux:~$ ./cf Illegal instruction
i changed the args since the other person got it wrong so no. i compiled for ppc7
GOOS=linux GOARCH=ppc64 GO111MODULE=on CGO_ENABLED=0 make cloudflared
GOOS=linux GOARCH=ppc64 GO111MODULE=on CGO_ENABLED=0 make cloudflared
ps3 is ppc64 ^^ 1, im using a ps3 for the funny 2, i would rather uh...yeah.. then use qemu-user ill just..use qemu later....
(live)alriceps3@alriceps3linux:~$ qemu-x86_64 ./cfamd setup_rt_frame: not implemented
(live)alriceps3@alriceps3linux:~$ qemu-x86_64 ./cfamd setup_rt_frame: not implemented
well nvm..got it working, but cloudflared dashboard says its still not connected i found a easier way without cloudflared running on the other machine and i honestly feel stupid for not trying it before

Did you find this page helpful?