1
0
mirror of https://github.com/fruworg/fruworg.github.io.git synced 2025-07-01 23:43:59 +03:00

temporary fix for config code blocks

This commit is contained in:
2024-11-03 13:11:52 +01:00
parent 059c24ef6f
commit d016387976
22 changed files with 41 additions and 41 deletions

@ -17,7 +17,7 @@ wg genkey | tee privatekey | wg pubkey > publickey
## Конфигурация сервера
### Форвардинг пакетов
В файл `/etc/sysctl.conf` необходимо добавить следующие строки:
```config
```python
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1
```
@ -25,7 +25,7 @@ net.ipv6.conf.all.forwarding=1
### Конфигурация WireGuard
В файл `/etc/wireguard/<conn-name>.conf` необходимо дописать следующее:
```config
```python
[Interface]
PrivateKey = <private-key>
Address = 172.0.0.1/24
@ -48,7 +48,7 @@ systemctl enable --now wg-quick@<conn-name>.service
## Конфигурация клиента
### Конфигурация WireGuard
В файл `/etc/wireguard/<conn-name>.conf` необходимо дописать следующее:
```config
```python
[Interface]
Address = 172.0.0.2/32
PrivateKey = <private-key>