rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.62k stars 1.07k forks source link

Run flatpak apps under proxychain? #301

Open ghsehdrhdrh opened 4 years ago

ghsehdrhdrh commented 4 years ago

So I don't know how I should run flatpak apps under proxychains. I am currently trying to run it with FreeTube. But the command to run FreeTube from flatpak is the following:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/run.sh --file-forwarding io.freetubeapp.FreeTube @@u %u @@

And I tried putting proxychains4 in there but it never worked lol.

rofl0r commented 4 years ago

you can try to hack the proxychains call inside the run.sh. i guess you'd need to pack proxychains into the flatpack though.

Zyx-A commented 4 years ago

The proxy cannot be implemented using the following methods:

/usr/local/bin/proxychains4 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop
/usr/local/bin/proxychains4 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=netease-cloud-music --file-forwarding com.netease.CloudMusic

PS: The software's own proxy setting is "Use system proxy"

No log printing

My OS Env: Software: proxychains-ng_v4.14 OS: CentOS 7.6

lmirguet commented 3 years ago

I am encountering the same problem... On Fedora 33... Tyring to use the Signal Desktop app with Flatpak and Proxychains.

rofl0r commented 3 years ago

as i understand it, a flatpack is basically a whole OS packed into some sort of container. the only way to make it work is to put proxychains inside that OS and start it up together with the app.