mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4122] firefox: How to specify proxy servers with --x11=xpra? #2544
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#2544
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 @muziker on GitHub (Mar 21, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4122
With xpra running, how do i specify proxy servers for firefox to use? It seems like the environment variables aren't available to xpra, so firefox is unable to connect to proxy servers.
@rusty-snake commented on GitHub (Mar 21, 2021):
Firefox' proxy settings can be found at about:preferences -> General -> Network Settings -> Settings -> Configure Proxy Access to the Internet. You can also set environment variables in firejail profiles with
env KEY=VALUE.@muziker commented on GitHub (Mar 22, 2021):
But, for example, if i use --net=eth2 with --ip=192.168.0.3/24 , should there be additional tweaks to the routing table to get networking to work? I had assumed any hosts on the same segment would be addressable, but the host address on the same machine 192.168.0.2 is non reachable. I've sysctl enabled ip forwarding, arp proxy and the host has no firewall rules.
@muziker commented on GitHub (Mar 22, 2021):
Should the ip masquerading be enabled for this host to use xpra and getting firefox to use a proxy server?
@matu3ba commented on GitHub (Mar 22, 2021):
Depends on what is in your
netfilter-default /etc/iptables.iptables.rules. See firejail.config for more information or tweak--netoptions. It feels very wrong to use a network filter that maps back to localhost.Why are you using the netfilter option, when you access localhost?
@ckorder commented on GitHub (Mar 23, 2021):
@rusty-snake would it be possible to implement something like proxychains4 support, currently the usage with proxychains is sadly not working.
@muziker commented on GitHub (Mar 23, 2021):
Once the --net is specified, the program is run not in the system network namespace. So to access a tcp socket endpoint on the host, should there be further configuration of iptables or routes? It seems like the --net= is implemented as a macvlan. Unfortunately from the host, it doesn't seem possible to view any of the new interfaces. So commands like ip netns don't show any of the interfaces, making it difficult to tweak them to bridge the interfaces.
@muziker commented on GitHub (Mar 23, 2021):
lsns -n -t net | awk '{print$4}' | while read a ; do B=
nsenter -t "$a" -n ip a; echo "$a $B" ; doneA quick way to enumerate interfaces in each net namespace. ln -sT /proc//ns/net /var/run/netns/ to allow ip netns to exec in that namespace context. But unfortunately the bridge utils and iproute2 bridge commands don't seem to work
@rusty-snake commented on GitHub (Mar 23, 2021):
TBH I've no knowledge of the networking features but you can give
--neta bridge interface@muziker commented on GitHub (Mar 24, 2021):
I found the --netns=, and i did this
ip netns add fire, but invoking with --net=eth0 and --netns=fire didn't cause firefox to appear. In any case, i'm wondering why the --net=eth0 creating a macvlan doesn't generate a corresponding namespace that ip netns can handle.