<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>systemd on Geek Vinkey</title>
    <link>https://www.mawenqian.com/en/tags/systemd/</link>
    <description>Recent content in systemd on Geek Vinkey</description>
    <image>
      <title>Geek Vinkey</title>
      <url>https://www.mawenqian.com/images/papermod-cover.png</url>
      <link>https://www.mawenqian.com/images/papermod-cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>MA Wenqian · mawenqian.com</copyright>
    <lastBuildDate>Tue, 18 Aug 2026 13:18:43 +0800</lastBuildDate>
    <atom:link href="https://www.mawenqian.com/en/tags/systemd/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>One systemd Unit File, Many Instances: Template Units (with frp as the Example)</title>
      <link>https://www.mawenqian.com/en/systemd-template-unit/</link>
      <pubDate>Tue, 18 Aug 2026 09:30:00 +0800</pubDate>
      <guid>https://www.mawenqian.com/en/systemd-template-unit/</guid>
      <description>&lt;p&gt;I needed one machine to connect to three different frp servers. Most tutorials solve this by copying &lt;code&gt;frpc.service&lt;/code&gt; three times and editing the path in each. Change one parameter and you have to remember to change it in three files — that breaks eventually.&lt;/p&gt;
&lt;p&gt;systemd has a built-in answer: &lt;strong&gt;template units&lt;/strong&gt;. Write &lt;code&gt;frpc@.service&lt;/code&gt; once, then spin up as many instances as you like. This post walks through the full frp setup first, then shows how the same pattern applies to xray, socat, Python scripts, or anything else you need to run several copies of.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Port Forwarding on Windows, Linux and macOS (with a Command Generator)</title>
      <link>https://www.mawenqian.com/en/port-forward/</link>
      <pubDate>Mon, 17 Aug 2026 10:30:00 +0800</pubDate>
      <guid>https://www.mawenqian.com/en/port-forward/</guid>
      <description>&lt;p&gt;Local TCP/UDP port forwarding on all three platforms: Windows has it built in via &lt;code&gt;netsh interface portproxy&lt;/code&gt;, while Linux and macOS use &lt;code&gt;socat&lt;/code&gt; wrapped in a service so it survives reboots. A comparison table and a troubleshooting checklist are at the end.&lt;/p&gt;
&lt;p&gt;The parameters are easy to get wrong, so there is a &lt;strong&gt;command generator&lt;/strong&gt; below — fill in the addresses and ports and copy the result.&lt;/p&gt;
&lt;!-- more --&gt;
&lt;h2 id=&#34;when-you-need-port-forwarding&#34;&gt;When you need port forwarding&lt;/h2&gt;
&lt;p&gt;The cases I run into most often:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
