<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><a href="https://www.freedesktop.org/software/systemd/man/systemd.network.html#KeepConfiguration=">https://www.freedesktop.org/software/systemd/man/systemd.network.html#KeepConfiguration=</a><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">systemd-devel <systemd-devel-bounces@lists.freedesktop.org><br>
<b>Date: </b>Thursday, 12 March 2020 at 7:56 PM<br>
<b>To: </b>Systemd <systemd-devel@lists.freedesktop.org><br>
<b>Subject: </b>[systemd-devel] Networkd - how to augment an already configured interface<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Hi,<br>
<br>
for a rather complex tunneling setup on a system that uses<br>
systemd-networkd and OpenVPN, I am trying to use networkd to augment the<br>
Interface that has been configured by OpenVPN.<br>
<br>
In OpenVPN, a daemon is started with a service unit, which connects to a<br>
remote side and creates a tunX interface and configures it according to<br>
what the other side says. The other side can push basic configuration<br>
like IP address and routes that go into the main routing table, but I<br>
need a RoutingPolicyRule and addiitonal Routes pushed into the<br>
configuration.<br>
<br>
I tried writing the following tunX.network unit:<br>
<br>
[Match]<br>
Name=tun1<br>
<br>
[Network]<br>
Description=tun1 tunnel to old torres<br>
DHCP=no<br>
IPForward=yes<br>
IPv6AcceptRA=no<br>
<br>
[Route]<br>
Destination=0::/0<br>
Gateway=2a01:238:4071:3202::1<br>
Table=202<br>
<br>
[RoutingPolicyRule]<br>
Priority=32100<br>
From=2a01:238:4071:3280::/59<br>
Table=202<br>
<br>
[RoutingPolicyRule]<br>
Priority=32101<br>
From=2a01:238:4071:32b0::/62<br>
Table=202<br>
<br>
but it looks like networkd wants full control over the network interface<br>
and flushes the IP addresses from the working interface, leaving it in a<br>
non-functional state.<br>
<br>
Is there any way to<br>
<br>
(a) tell networkd to just add the configuration from the unit to the<br>
already interface without cleaning up first, or<br>
(b) to have part of systemd just execute a single .network unit,<br>
probably as a sidekick unit that I can use to add configuration to my<br>
OpenVPN configuration?<br>
<br>
Or am I better off by just taking things away from systemd-networkd<br>
completely and use an "up" script from the OpenVPN configuration?<br>
<br>
Hoping for your opinions and a good discussion,<br>
cheers, Marc<br>
<br>
<br>
-- <br>
-----------------------------------------------------------------------------<br>
Marc Haber | "I don't trust Computers. They | Mailadresse im Header<br>
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402<br>
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421<br>
_______________________________________________<br>
systemd-devel mailing list<br>
systemd-devel@lists.freedesktop.org<br>
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fsystemd-devel&data=02%7C01%7Cssahani%40vmware.com%7C3f5cc148c7b8455fd72b08d7c691549a%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637196199807183281&sdata=xXQl2HlQoQyYFfd0m8OLwXMLrKTA2T3DULh1edTWDss%3D&reserved=0">https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fsystemd-devel&data=02%7C01%7Cssahani%40vmware.com%7C3f5cc148c7b8455fd72b08d7c691549a%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637196199807183281&sdata=xXQl2HlQoQyYFfd0m8OLwXMLrKTA2T3DULh1edTWDss%3D&reserved=0</a><o:p></o:p></p>
</div>
</div>
</body>
</html>