Label terminal commands and directory trees in code blocks
This commit is contained in:
@@ -61,7 +61,7 @@ __Warning:__ This guide uses version `14` of [wg-easy](https://wg-easy.github.io
|
||||
|
||||
Folder structure:
|
||||
|
||||
```sh
|
||||
```text [Directory tree]
|
||||
root
|
||||
└── docker
|
||||
└── wg-easy
|
||||
@@ -146,7 +146,7 @@ Deploy the stack.
|
||||
|
||||
To allow communication between VPN clients, enable:
|
||||
|
||||
```sh
|
||||
```bash [Terminal]
|
||||
sudo sysctl net.ipv4.ip_forward=1
|
||||
sudo sysctl net.ipv4.conf.all.src_valid_mark=1
|
||||
```
|
||||
@@ -173,7 +173,7 @@ Assumes the client is a Linux server with Docker installed
|
||||
|
||||
Folder structure:
|
||||
|
||||
```sh
|
||||
```text [Directory tree]
|
||||
root
|
||||
└── docker
|
||||
└── wireguard
|
||||
@@ -188,7 +188,7 @@ Create the folder `/docker/wireguard/config/wg_confs`:
|
||||
✨ __Tip:__ Use [File Browser](/serveex/files/file-browser) to browse and edit files without terminal
|
||||
::
|
||||
|
||||
```sh
|
||||
```bash [Terminal]
|
||||
sudo mkdir -p /docker/wireguard/config/wg_confs
|
||||
```
|
||||
|
||||
@@ -197,14 +197,14 @@ Copy the `wg0.conf` file downloaded earlier:
|
||||
::tip{icon=""}
|
||||
✨ __Tip:__ Easiest way is to transfer the file via SFTP to `/home/youruser`, then move it:
|
||||
|
||||
```sh
|
||||
```bash [Terminal]
|
||||
sudo cp ~/wg0.conf /docker/wireguard/config/wg_confs
|
||||
```
|
||||
::
|
||||
|
||||
Create `compose.yaml` in `/docker/wireguard`:
|
||||
|
||||
```sh
|
||||
```bash [Terminal]
|
||||
sudo nano /docker/wireguard/compose.yaml
|
||||
```
|
||||
|
||||
@@ -234,7 +234,7 @@ Press :kbd{value="Ctrl+O"}, then :kbd{value="Enter"} to save, and :kbd{value="Ct
|
||||
|
||||
Start the container:
|
||||
|
||||
```sh
|
||||
```bash [Terminal]
|
||||
cd /docker/wireguard
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user