mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2145] Question : browser configured with proxy #1453
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1453
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deb75 on GitHub (Oct 8, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2145
Hello,
I configured
firefoxto useprivoxy, which is listening on127.0.0.1:8118Trouble is that when I use
firejailthis way :the browser can no longer connect itself to the proxy, because of option
--net=wlp1s0.I figured out two ways to overcome this issue :
so as to create a transparent privoxy
I wonder nevertheless if there would be a more direct solution with
firejail, like enable some connexions on the lo outside the network namespace ? Which way do you think is the best ?@netblue30 commented on GitHub (Oct 8, 2018):
The problem is each namespace comes with its own independent loopback interface, so you would have to start a privoxy instance in each sandbox. Can you run multiple instances on privoxy on the same filesystem?
@deb75 commented on GitHub (Oct 8, 2018):
It should be doable, one needs to configure each privoxy instance with at least a different pid file.
Nevertheless, I am trying to configure a transparent privoxy with
iptables, it seems to me easier to perform and maintain.Regards
@crass commented on GitHub (Oct 8, 2018):
Here's two solutions for running a single
privoxyprocess:privoxylisten on that interface and your jails send requests there. Privoxy need not be in a jail, but it could be. See this tutorial for how to setup the bridge interface. The whole tutorial is long, but you'll just need the bridge setup part. The rest is definitely worth the read if you want to jail with respect to X (if you don't your exploited browser will be able to keylog you and record your desktop).privoxylisten on your outbound interface and point your browser there. Only thing is that it probably won't play nice if your ip changes (ie you're mobile).@deb75 commented on GitHub (Oct 11, 2018):
@crass : thanks for the solutions, I chose the first one which is quite easy to perform.
Then I just have to pass
--net=br0to firejail and it works great.