<div dir="ltr"><div><div>Hello, can someone please help me fix this: <a href="https://github.com/systemd/systemd/issues/28694">https://github.com/systemd/systemd/issues/28694</a>? </div><div><br></div><div>The transmission-daemon that is started via systemd in a dedicated network namespace <vpn> is seeing the main namespace resolv.conf instead of the one mounted by netns. If I manually pop into the vpn namespace, the /etc/resolv.conf is correctly identified as the same in /etc/netns/vpn/resolv.conf.</div><br>This used to work before 254. I tried to set PrivateMounts=false also for the transmission drop-in, but it doesn't work. Transmission is still querying the main namespace DNS instead of the specific one for the <vpn> netns.<br><br></div><div>What am I missing? <br></div><div><br></div><div>Cheers</div><div><br></div><div>::::::::::::::::: Archlinux Transmission Unit ::::::::::::::::::</div><div>
<pre class="gmail-notranslate"><code class="gmail-notranslate">[Unit]                                                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
Description=Transmission BitTorrent Daemon                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Wants=network-online.target                                                                                           │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
After=network-online.target                                                                                           │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
[Service]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://explodie.org">explodie.org</a>
User=transmission                                                                                                     │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
Type=notify                                                                                                           │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/transmission-daemon -f --log-level=error                                                           │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecReload=/bin/kill -s HUP $MAINPID                                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
NoNewPrivileges=true                                                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
MemoryDenyWriteExecute=true                                                                                           │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ProtectSystem=true                                                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
PrivateTmp=true                                                                                                       │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
[Install]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
WantedBy=multi-user.target</code></pre>

</div><div>::::::::::::::::: Drop in ::::::::::::::::::::::</div><div>
<pre class="gmail-notranslate"><code class="gmail-notranslate">[Unit]                                                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
After=vpn.service                                                                                                     │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
BindsTo=vpn.service                                                                                                   │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
[Service]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
NetworkNamespacePath=/run/netns/vpn                                                                                   │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Environment="TR_CURL_VERBOSE=1"                                                                                       │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStart=                                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/transmission-daemon -f --log-level=debug  <br><br></code></pre><pre class="gmail-notranslate"><code class="gmail-notranslate">:::::::::::::::: vpn.service ::::::::::::::::::::<br></code>
<code class="gmail-notranslate">[Unit]                                                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Description=Start Wireguard VPN with a random peer                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
Wants=network-online.target nss-lookup.target                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Requires=wireguard.service                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
After=network-online.target nss-lookup.target wireguard.service                                                       │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
PartOf=wireguard.service netns@vpn.service                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
JoinsNamespaceOf=netns@vpn.service                                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://explodie.org">explodie.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
[Service]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Type=oneshot                                                                                                          │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
RemainAfterExit=true                                                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStartPre=-/usr/bin/env ip -n vpn addr flush dev wg0                                                               │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStartPre=-/usr/bin/env ip -n vpn link set down wg0                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStartPre=-/usr/bin/env ip netns exec vpn /usr/local/bin/teardown_wg                                               │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Set wg                                                                                                              │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/env ip netns exec vpn /usr/local/bin/setup_wg                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
# Set interface up                                                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStart=/usr/bin/env ip -n vpn link set up dev wg0                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Set default route                                                                                                   │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/env ip -n vpn route add default dev wg0                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
[Install]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
WantedBy=multi-user.target                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
WantedBy=network-online.target</code>

<br></pre><pre class="gmail-notranslate">::::::::::::::::::: wireguard.service :::::::::::::::::<br>
<code class="gmail-notranslate">[Unit]                                                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Description=Wireguard interface in a dedicated namespace                                                              │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
Requires=netns@vpn.service                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Wants=network-online.target nss-lookup.target                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
After=network-online.target nss-lookup.target netns@vpn.service                                                       │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
PartOf=netns@vpn.service                                                                                              │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
JoinsNamespaceOf=netns@vpn.service                                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://explodie.org">explodie.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
[Service]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Type=oneshot                                                                                                          │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
RemainAfterExit=true                                                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStartPre=-/usr/bin/env ip -n vpn link delete wg0                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Create wg0 interface in normal namespace                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/env ip link add dev wg0 type wireguard                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
# Move wg0 interface to the vpn namespace                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStart=/usr/bin/env ip link set wg0 netns vpn                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Stop process                                                                                                        │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStop=/usr/bin/env ip -n vpn link delete wg0                                                                       │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
[Install]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
WantedBy=multi-user.target                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
WantedBy=network-online.target</code>

<br></pre><pre class="gmail-notranslate">:::::::::::::::::: netns@.service :::::::::::::::::::::<br>
<code class="gmail-notranslate">[Unit]                                                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Description=%I Namespace wrapper                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
After=network-online.target nss-lookup.target                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
Wants=network-online.target nss-lookup.target                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
[Service]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
Type=oneshot                                                                                                          │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://explodie.org">explodie.org</a>
RemainAfterExit=true                                                                                                  │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
PrivateNetwork=true                                                                                                   │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
PrivateMounts=false                                                                                                   │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStartPre=-/usr/bin/env ip netns delete %i                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
# Add vpn dedicated namespace                                                                                         │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStart=/usr/bin/env ip netns add %i                                                                                │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Pause                                                                                                               │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStart=/usr/bin/env echo %i                                                                                        │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
# Set loopback device up                                                                                              │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
ExecStart=/usr/bin/env ip -n %i link set dev lo up                                                                    │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
# Stop process                                                                                                        │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
ExecStop=/usr/bin/env ip netns delete %i                                                                              │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
                                                                                                                      │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
[Install]                                                                                                             │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Closing connection
WantedBy=multi-user.target                                                                                            │Aug 05 21:28:11 gagazet transmission-daemon[226124]: * Could not resolve host: <a href="http://tracker.tleechreload.org">tracker.tleechreload.org</a>
WantedBy=network-online.target </code>

</pre></div><div><div><span class="gmail_signature_prefix"><br></span></div><div><span class="gmail_signature_prefix">-- <br></span></div><div><span class="gmail_signature_prefix"><br></span></div><div>rdb<br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:monospace"><br></span></div></div></div></div></div>