helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

158
active users

#netns

0 posts0 participants0 posts today
Peter Makholm<p>I tend to over-engineer my setup.</p><p>I am not quite happy with networking in <a href="https://fosstodon.org/tags/WSL2" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WSL2</span></a>, so now I am considering rebuilding my wsl2 setup as a <a href="https://fosstodon.org/tags/HyperV" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HyperV</span></a> virtual machine with an external virtual switch. But I also have at least one customer with a VPN I can't get to work on Linux (Cisco AnyConnect), so I also need an internal virtual switch and then some <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/netns" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>netns</span></a> magic to us the right network.</p>
Peter Makholm<p>Now and then it would be nice to run a few commands with VPN enabled without interfering with other tasks.</p><p>OpenVPN does not support network namespaces directly, but as a proof of concept I have written an `up` script that configures the tun device inside a network namespace.</p><p>This allows me to run commands (including bash) with `ip netns exec vpn cmd`</p><p><a href="https://codeberg.org/pmakholm/openvpn-netns/src/branch/main/vpn-up.sh" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/pmakholm/openvpn-</span><span class="invisible">netns/src/branch/main/vpn-up.sh</span></a></p><p><a href="https://fosstodon.org/tags/openvpn" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>openvpn</span></a> <a href="https://fosstodon.org/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> <a href="https://fosstodon.org/tags/netns" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>netns</span></a></p>