netblue30 / firejail

Linux namespaces and seccomp-bpf sandbox
https://firejail.wordpress.com
GNU General Public License v2.0
5.59k stars 556 forks source link

VPN connection for Firefox and Thunderbird in Firejail #3266

Closed davew-fj closed 4 years ago

davew-fj commented 4 years ago

I'm new here. Network connections are confusing to me. My system is Antix 17 (Debian Stretch based Linux, 32 bit, no systemd).

I have just added VPN service (AirVPN with Eddie-ui, and Windscribe cli program). Both VPNs work well with browser and email programs outside of firejail. But when firejailed, browser and email have no internet connection (browser and email programs run in separate firejail sandboxes). Network is managed by ceni and wicd.

Please steer me to the information that I need. Thanks!

davew-fj commented 4 years ago

Both of the previously mentioned VPNs are based on openvpn. Since writing the above post, I have found that this has been a long-standing area of discussion. Is the following thread the most up to date? RTNETLINK error using "--net" option #2046

The discussion, in that thread, from Intika was very helpful... but a little beyond my level. I was hoping for an "easier" route. But I'll begin to explore those.

rusty-snake commented 4 years ago

https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#rtnetlink-error

matu3ba commented 4 years ago

@davew-fj Does it work?

davew-fj commented 4 years ago

Thanks for asking. No, it's not working. Awhile back, this thread was attached to "RTNETLINK error using "--net" option #2046" So, I thought that is where any further comments should be posted. A few days ago, I did make a post there, about whether macvlan or macvtap can be used to interface to the vpn. (As of today, it's at the end of that thread. There was no answer.) So far, I can use either of those to get to eth0 for direct internet connection out of firejail... but not to tun0 for vpn. My attempts to use the other methods suggested in the # 2046 thread have been unfruitful... between limitations of my system... and mostly my own ignorance.

rusty-snake commented 4 years ago

Any progress?

davew-fj commented 4 years ago

No progress. Thanks for asking. After going around in circles for a few weeks, I have given up on connecting to a VPN with firejailed firefox. If I have nothing better to do, at some future date, I may make another attempt, with a different kernel version (current version 4.9.212). Meanwhile, perhaps someone will come up with a simple ready-made solution. Thank you.

kris7t commented 4 years ago

@davew-fj In general, I found it best to treat firejail containers as if they were virtual machines: create a bridged network and run DNS (and maybe even DHCP) for them. I also use AirVPN, and my firejail contaners can access the internet through it fine (no leaks detected via ipleak.net).

Mandatory disclaimer: VPNs do very little in the way of anonimity, security, or even privacy. They are only useful for stopping ISPs meddling with non-encrypted connection. For actual anonimity, you should use Tor. In that case, you should forego containers and run Tails or WHONIX in a virutual machine (on a trusted, open-source host) or on physical hardware in order to minimize fingerprinting.

rusty-snake commented 4 years ago

I'm closing here due to inactivity, please fell free to reopen if you have more questions.