readme: add example to start firefox in netns

Thanks to @dontdieych. Closes #7.
pull/9/head
dadevel 2 years ago
parent 56a9e4fbe6
commit 2542d9f4cd
No known key found for this signature in database
GPG Key ID: 1A8A9735430193D5

@ -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
~~~

Loading…
Cancel
Save