From 2542d9f4cdf99b281c263d84795ac5422d9d4854 Mon Sep 17 00:00:00 2001 From: dadevel Date: Sun, 2 Oct 2022 18:24:02 +0200 Subject: [PATCH] readme: add example to start firefox in netns Thanks to @dontdieych. Closes #7. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c4bee2c..7312728 100644 --- a/README.md +++ b/README.md @@ -187,3 +187,11 @@ curl http://127.0.0.1:1234/hello.txt ### WireGuard with DynDNS If your WireGuard server endpoint is a DynDNS domain you can use the [wg-resolve](./extras/wg-resolve/) script to periodically check the connectivity and re-resolve the endpoint if necessary. + +### Firefox in Network Namespace + +Start a dedicated Firefox profile with working audio inside the netns created by `wg-netns`. + +~~~ bash +sudo ip netns exec ns-example sudo -u "$USER" "HOME=$HOME" "PULSE_SERVER=/run/user/$(id -u)/pulse/native" "PULSE_COOKIE=$HOME/.config/pulse/cookie" firefox -P vpn +~~~