Skip to content

Commit

Permalink
GITBOOK-31: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
twofaktor authored and gitbook-bot committed Dec 21, 2024
1 parent 4194c2a commit c68c093
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions bonus/system/wireguard-vpn.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ sudo nano /opt/freemyip/freemyip.sh
</code></pre>

{% hint style="info" %}
Replace **`"<YOUR_SECRET_TOKEN>"`** and **`"<yourdomain>"`** to the before created. Save and exit
Replace **`"<YOUR_SECRET_TOKEN>"`** and **`"<yourdomain>"`** to the before created. Save and exit
{% endhint %}

Example of content:
Expand All @@ -163,7 +163,7 @@ echo url="https://freemyip.com/update?token=c6f3c463d065aca81ebde774&domain=myfr
sudo chmod 700 /opt/freemyip/freemyip.sh
```

* Edit the crontab&#x20;
* Edit the crontab

```sh
sudo crontab -e
Expand Down Expand Up @@ -300,9 +300,9 @@ Take note and backup this public key in your preferred password manager (Bitward
sudo nano /etc/wireguard/wg0.conf
```

* Write the following content and replace only **`<Your_Server_Private_Key>`** with the data previously obtained. **`<Your_Client_Public_Key>`** will be replaced later when we get the public key from our client, keep alert to replace it later in [part 2 of the server configuration](wireguard-vpn.md#server-configuration-part-2)
* Write the following content

<pre><code># RaMiX: Wireguard configuration
<pre><code># RaMiX: WireGuard VPN server configuration
# /etc/wireguard/wg0.conf

## Server configuration (RaMiX node)
Expand All @@ -313,7 +313,7 @@ ListenPort = 51820
</code></pre>

{% hint style="info" %}
Replace **`"<Your_Server_Private_Key>"`**
Replace only **`<Your_Server_Private_Key>`** with the data previously obtained
{% endhint %}

* Enable autoboot on startup **(optional, but recommended)**
Expand Down Expand Up @@ -390,7 +390,10 @@ sudo nano /etc/wireguard/wg0.conf

* Write the following contents to the `wg0.conf` file

<pre><code>## Client configuration
<pre><code># RaMiX: WireGuard VPN client configuration
# /etc/wireguard/wg0.conf

## Client configuration
[Interface]
PrivateKey = <a data-footnote-ref href="#user-content-fn-8">&#x3C;Your_Client_Private_Key></a>
Address = 10.0.0.2/32
Expand Down Expand Up @@ -436,7 +439,7 @@ sudo nano /etc/wireguard/wg0.conf

* Replace the existing **`<Your_Client_Public_Key>`** parameter with your one

<pre><code># RaMiX: Wireguard configuration
<pre><code># RaMiX: Wireguard server configuration
# /etc/wireguard/wg0.conf

## Server configuration (RaMiX node)
Expand Down Expand Up @@ -621,7 +624,7 @@ Link to [Google Play Store](https://play.google.com/store/apps/details?id=com.wi
5. Press on the **switch at the right** to activate the Wireguard tunnel. Press **OK** to accept the connection request

{% hint style="info" %}
-> You could create a Wireguard VPN client connection manually from scratch filling in the form with the content of the "`wg0.conf`" configured on the [client configuration](wireguard-vpn.md#client-configuration-part-1) section.&#x20;
-> You could create a Wireguard VPN client connection manually from scratch filling in the form with the content of the "`wg0.conf`" configured on the [client configuration](wireguard-vpn.md#client-configuration-part-1) section.

-> Select **"CREATE FROM SCRATCH"** instead of "SCAN FROM QR CODE" on the second step, fill out the form, and hit on the diskette icon on the top right to save and follow the same steps from **4**
{% endhint %}
Expand Down

0 comments on commit c68c093

Please sign in to comment.