mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Add instructions to enable port forwarding
This commit is contained in:
parent
dbbb1ced45
commit
8a8a05b0fe
2 changed files with 26 additions and 4 deletions
15
README.md
15
README.md
|
@ -25,8 +25,19 @@ This app installs WireGuard, a software to create and manage virtual private net
|
|||
|
||||
WireGuard can be configured via a non-official web UI. Avoid altering the configuration files via the command line interface, though.
|
||||
|
||||
If you want to use the server as an endpoint for your clients' Internet connection, add the following commands in `WireGuard Server` menu.
|
||||
Replace `eth0` with the interface connected to the Internet.
|
||||
### Make your server share its Internet connection
|
||||
|
||||
#### Enable port forwarding
|
||||
|
||||
```bash
|
||||
sudo nano /etc/sysctl.conf
|
||||
# It should have an uncommented line:
|
||||
net.ipv4.ip_forward = 1
|
||||
# Save and quit (CTRL+O, CTRL+X)
|
||||
sudo sysctl -p
|
||||
```
|
||||
|
||||
Add the following commands in `WireGuard Server` menu. Replace `eth0` with the interface connected to the Internet:
|
||||
|
||||
#### Post Up Script
|
||||
```
|
||||
|
|
15
README_fr.md
15
README_fr.md
|
@ -25,8 +25,19 @@ Cette application installe WireGuard, logiciel permettant de créer des réseaux
|
|||
|
||||
WireGuard est configurable via une web UI non-officielle. Évitez de toucher aux fichiers de configuration via la ligne de commande.
|
||||
|
||||
Si vous souhaitez utiliser votre serveur comme point d'accès pour la connexion Internet de vos clients, ajoutez les commandes suivantes dans le menu `WireGuard Server`.
|
||||
Remplacez `eth0` par l'interface connectée à l'Internet.
|
||||
### Partager la connexion Internet de votre serveur
|
||||
|
||||
#### Activer le *port forwarding*
|
||||
|
||||
```bash
|
||||
sudo nano /etc/sysctl.conf
|
||||
# It should have an uncommented line:
|
||||
net.ipv4.ip_forward = 1
|
||||
# Save and quit (CTRL+O, CTRL+X)
|
||||
sudo sysctl -p
|
||||
```
|
||||
|
||||
Ajoutez les commandes suivantes dans le menu `WireGuard Server`. Remplacez `eth0` par l'interface connectée à l'Internet.
|
||||
|
||||
#### Post Up Script
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue