[GH-ISSUE #2135] [Feature] Manage Proxies #1447

Closed
opened 2026-05-05 08:06:36 -06:00 by gitea-mirror · 9 comments
Owner

Originally created by @asdfghjz on GitHub (Oct 4, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2135

It would be awesome if we could set different proxy settings for different apps :)

Originally created by @asdfghjz on GitHub (Oct 4, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2135 It would be awesome if we could set different proxy settings for different apps :)
gitea-mirror 2026-05-05 08:06:36 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Oct 4, 2018):

This could be as simple as setting environment variables, assuming all programs respect them...

<!-- gh-comment-id:426847939 --> @chiraag-nataraj commented on GitHub (Oct 4, 2018): This _could_ be as simple as setting environment variables, assuming all programs respect them...
Author
Owner

@netblue30 commented on GitHub (Oct 8, 2018):

Yes, look for environment variables. Probably every program uses a different env var for the proxy.

<!-- gh-comment-id:427827270 --> @netblue30 commented on GitHub (Oct 8, 2018): Yes, look for environment variables. Probably every program uses a different env var for the proxy.
Author
Owner

@chiraag-nataraj commented on GitHub (Oct 8, 2018):

Many will respect HTTP{,S}_PROXY. Some require it to be lower-case (http{,s}_proxy).

<!-- gh-comment-id:427827720 --> @chiraag-nataraj commented on GitHub (Oct 8, 2018): Many will respect `HTTP{,S}_PROXY`. Some require it to be lower-case (`http{,s}_proxy`).
Author
Owner

@asdfghjz commented on GitHub (Oct 26, 2018):

@chiraag-nataraj @netblue30 Thanks for your response, how would I do that?

The main idea, is to force applications to use a Proxy. Something similar to TorSocks but for any Proxy.

(except without the need to, use "torsocks" before every command line and with a GUI.)

<!-- gh-comment-id:433255767 --> @asdfghjz commented on GitHub (Oct 26, 2018): @chiraag-nataraj @netblue30 Thanks for your response, how would I do that? The main idea, is to force applications to use a Proxy. Something similar to [TorSocks](https://github.com/dgoulet/torsocks) but for any Proxy. (except without the need to, use "torsocks" before every command line and with a GUI.)
Author
Owner

@SkewedZeppelin commented on GitHub (Oct 26, 2018):

Add something like the following to a profile

env HTTP_PROXY=http://127.0.0.1:3128

I shold note, torsocks is a ld.preload shim that actually intercepts calls and enforces they route over the proxy, providing a layer of safety. So depending on what application you are using you might not want to use this env method.

<!-- gh-comment-id:433354403 --> @SkewedZeppelin commented on GitHub (Oct 26, 2018): Add something like the following to a profile ``` env HTTP_PROXY=http://127.0.0.1:3128 ``` I shold note, torsocks is a ld.preload shim that actually intercepts calls and enforces they route over the proxy, providing a layer of safety. So depending on what application you are using you might not want to use this env method.
Author
Owner

@asdfghjz commented on GitHub (Oct 26, 2018):

@SkewedZeppelin How do you add that to a profile? Can I use FireTools or the Config app? Or is there a terminal command?

<!-- gh-comment-id:433472296 --> @asdfghjz commented on GitHub (Oct 26, 2018): @SkewedZeppelin How do you add that to a profile? Can I use FireTools or the Config app? Or is there a terminal command?
Author
Owner

@smitsohu commented on GitHub (Oct 30, 2018):

How do you add that to a profile? Can I use FireTools or the Config app? Or is there a terminal command?

sudo sh -c "echo env HTTP_PROXY=http://127.0.0.1:3128 >> /etc/firejail/programname.profile"

<!-- gh-comment-id:434280154 --> @smitsohu commented on GitHub (Oct 30, 2018): > How do you add that to a profile? Can I use FireTools or the Config app? Or is there a terminal command? `sudo sh -c "echo env HTTP_PROXY=http://127.0.0.1:3128 >> /etc/firejail/programname.profile"`
Author
Owner

@rusty-snake commented on GitHub (May 14, 2019):

Or echo "env HTTP_PROXY=http://127.0.0.1:3128" >> $HOME/.config/firejail/PROGRAMM.local

<!-- gh-comment-id:492354137 --> @rusty-snake commented on GitHub (May 14, 2019): Or `echo "env HTTP_PROXY=http://127.0.0.1:3128" >> $HOME/.config/firejail/PROGRAMM.local`
Author
Owner

@chiraag-nataraj commented on GitHub (May 20, 2019):

Either way, I think the question has been answered sufficiently thoroughly. I'll go ahead and close, but @asdfghjz, please feel free to re-open if you have additional questions!

<!-- gh-comment-id:494185758 --> @chiraag-nataraj commented on GitHub (May 20, 2019): Either way, I think the question has been answered sufficiently thoroughly. I'll go ahead and close, but @asdfghjz, please feel free to re-open if you have additional questions!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1447
No description provided.