<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wireguard on csegura</title><link>http://blog.romheat.net/tags/wireguard/</link><description>Recent content in Wireguard on csegura</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 01 Oct 2022 05:17:17 +0100</lastBuildDate><atom:link href="http://blog.romheat.net/tags/wireguard/index.xml" rel="self" type="application/rss+xml"/><item><title>Wireguard Setup (work notes)</title><link>http://blog.romheat.net/posts/2022/22_10_01_wireguard/</link><pubDate>Sat, 01 Oct 2022 05:17:17 +0100</pubDate><guid>http://blog.romheat.net/posts/2022/22_10_01_wireguard/</guid><description>&lt;p>Generate a valid and working WireGuard configuration file /etc/wireguard/wg0.conf. Our setup guide offers details.&lt;/p>
&lt;p>Note: You may have to replace the Endpoint hostname with the WireGuard server IP address in the WireGuard configuration file. DNS may or may not be applied when systemd brings the wg0 interface up.
Add the WireGuard service to systemd:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo systemctl enable wg-quick@wg0.service
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>sudo systemctl daemon-reload
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Start the new service immediately:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo systemctl start wg-quick@wg0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Reboot your computer system to verify the automatic connection on startup works as expected.&lt;/p></description></item></channel></rss>