Better sh hl
This commit is contained in:
@ -63,7 +63,7 @@ So only VPN-connected devices can communicate with each other on the VPN, not wi
|
||||
|
||||
Folder structure:
|
||||
|
||||
```console
|
||||
```sh
|
||||
root
|
||||
└── docker
|
||||
└── wg-easy
|
||||
@ -142,7 +142,7 @@ Deploy the stack.
|
||||
|
||||
To allow communication between VPN clients, enable:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
sudo sysctl net.ipv4.ip_forward=1
|
||||
sudo sysctl net.ipv4.conf.all.src_valid_mark=1
|
||||
```
|
||||
@ -172,7 +172,7 @@ To configure clients, download the config files from the server:
|
||||
|
||||
Folder structure:
|
||||
|
||||
```console
|
||||
```sh
|
||||
root
|
||||
└── docker
|
||||
└── wireguard
|
||||
@ -187,7 +187,7 @@ Create the folder `/docker/wireguard/config/wg_confs`:
|
||||
✨ __Tip:__ Use [File Browser](/serveex/files/file-browser) to browse and edit files without terminal
|
||||
::
|
||||
|
||||
```shell
|
||||
```sh
|
||||
sudo mkdir -p /docker/wireguard/config/wg_confs
|
||||
```
|
||||
|
||||
@ -196,14 +196,14 @@ Copy the `wg0.conf` file downloaded earlier:
|
||||
::alert{type="success"}
|
||||
✨ __Tip:__ Easiest way is to transfer the file via SFTP to `/home/youruser`, then move it:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
sudo cp ~/wg0.conf /docker/wireguard/config/wg_confs
|
||||
```
|
||||
::
|
||||
|
||||
Create `compose.yaml` in `/docker/wireguard`:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
sudo vi /docker/wireguard/compose.yaml
|
||||
```
|
||||
|
||||
@ -230,7 +230,7 @@ Press `Esc` then type `:x` to save and exit.
|
||||
|
||||
Start the container:
|
||||
|
||||
```shell
|
||||
```sh
|
||||
cd /docker/wireguard
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
Reference in New Issue
Block a user