Off hand, I cannot think of a way to isolate a network interface except with namespaces. If that is true, the simplest way would be with a container, especially an LXD container which is is functionally like a full OS with it's own kernel.
@Bruce Elrick A bit of a heavier solution than I was looking for, but in the absence of a better solution, I'll probably go this route. Thanks for the help.
Is there a tool that I can use in a #bash script to sanitize a string for inclusion into a URL parameter (e.g.: "foo bar" becomes "foo+bar" or "foo%20bar")?
I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that special characters are processed prope...
Jonathan Lamothe
Content warning: nerdy sysadmin stuff
Bruce Elrick
•Bruce Elrick
•snap install lxd
lxd init --auto
lxc launch ubuntu:jammy mycontainer
lxc shell mycontainer
curl -fsSL https://tailscale.com/install.sh | sh
tailscale up
...
Bruce Elrick
•Bruce Elrick
•Also, it occurs to me that likely the snap install lxd hides granting some privileges to the user who has sudo privs (via an lxd group).
In principle there might be a much slimmer container that could do the same, but I am too lazy to figure it out.
Jonathan Lamothe
Jonathan Lamothe
Bruce Elrick likes this.
Bruce Elrick
•Jonathan Lamothe
Bruce Elrick
•Bruce Elrick
•Rainer "diaspβ.org" Sokoll β
•Jonathan Lamothe likes this.