Comments (4)
The new netns will have it's own loopback interface, so this don't work.
What you can do, is to create a new named-netns, run fdns in it and use
--netns
.
Thank you very much. I got it working, those were the steps:
sudo ip netns add myspace
sudo ip link add veth01 type veth peer name veth11
sudo ip link set veth11 netns myspace
sudo ifconfig veth01 192.168.42.1 netmask 255.255.255.0 up
sudo ip netns exec myspace ifconfig veth11 192.168.42.2 netmask 255.255.255.0 up
sudo ip netns exec myspace ifconfig lo up
sudo ip netns exec myspace route add default gw 192.168.42.1
sudo iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o wifi0 -j MASQUERADE
sudo iptables -A FORWARD -i wifi0 -o veth01 -j ACCEPT
sudo iptables -A FORWARD -o wifi0 -i veth01 -j ACCEPT
sudo ip netns exec myspace fdns
firejail --profile=/etc/firejail/firefox.profile --netns=myspace --dns=127.1.1.1 /opt/firefox/firefox
Source: https://hintcafe.net/post/78293519027/running-a-process-inside-a-network-namespace
https://web.archive.org/web/20220328075635/https://hintcafe.net/post/78293519027/running-a-process-inside-a-network-namespace
from fdns.
The new netns will have it's own loopback interface, so this don't work.
What you can do, is to create a new named-netns, run fdns in it and use --netns
.
from fdns.
You mean ip netns exec foobar fdns
?
from fdns.
You mean
ip netns exec foobar fdns
?
sudo fdns
firejail --noprofile --net=wifi0 --dns=127.1.1.1 /usr/bin/firefox
from fdns.
Related Issues (20)
- Update service ports for Quad9 DNS services HOT 1
- FDNS available for other platform ? HOT 5
- build from git master broken HOT 2
- Enhancement picking fastest proxy in the list -not only closest HOT 8
- Failed to start Firejail DoH Proxy Server on Raspberry PI (boot) HOT 8
- Fedora: "Failed to enable unit: Unit file fdns.service does not exist." HOT 4
- fdns and network sandbox - how to get them work together ? HOT 4
- fdns resolver processes getting killed by seccomp - syscall 270 (pselect6) HOT 6
- fdns too many in-addr.arpa (PTR), dropped
- linux mint 21
- creative commons redirects to a domain listed in adblocker
- Add support for libssl 3?
- fdns resolver process 0 killed by seccomp - syscall 11 (munmap) HOT 1
- How to report false positives? HOT 1
- warning: 'ERR_load_BIO_strings' is deprecated: Since OpenSSL 3.0
- fdns does not properly whitelist websites with an electron app HOT 4
- Latest coinblocker list update contains invalid entrees HOT 1
- Removal of blocklist HOT 4
- tests cannot be run in buildroot HOT 1
- Re-enable systemd service file installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdns.