1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Auto-update README

This commit is contained in:
Yunohost-Bot 2021-12-26 11:17:30 +00:00 committed by Yunohost-Bot
parent 721484eda1
commit 39a0bed1a0
2 changed files with 4 additions and 24 deletions

View file

@ -35,6 +35,8 @@ WireGuard® is fast and modern VPN that utilizes state-of-the-art cryptography.
* Use YunoHost permissions panel to allow users to access the web UI.
* Only one network interface, *wg0*, can be managed with this app at the moment.
After installation, you need to `Apply Config` once in the UI before the VPN service can be started.
### Make your server share its Internet connection
#### Enable port forwarding
@ -48,18 +50,6 @@ net.ipv6.conf.all.forwarding = 1
sudo sysctl -p
```
Add the following commands in `WireGuard Server` menu, like in [this picture](https://user-images.githubusercontent.com/8769166/124400150-cf354980-dd20-11eb-87c6-9478938d9c82.png). Replace `eth0` with the interface connected to the Internet:
#### Post Up Script
```
iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
```
#### Post Down Script
```
iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
```
## Documentation and resources

View file

@ -31,6 +31,8 @@ WireGuard® is fast and modern VPN that utilizes state-of-the-art cryptography.
* Utiliser le panneau de permissions de YunoHost pour autoriser des utilisateurs à accéder à WireGuard UI.
* Une seule interface réseau, *wg0*, peut actuellement être gérée par cette app.
Après installation, vous devrez cliquer sur `Apply Config` une fois dans l'UI avant que le service VPN puisse être démarré.
### Partagez votre connexion Internet via WireGuard
#### Activez le *port forwarding*
@ -44,18 +46,6 @@ net.ipv6.conf.all.forwarding = 1
sudo sysctl -p
```
Ajoutez les commandes suivantes dans le menu `WireGuard Server`, tel que dans [cette image](https://user-images.githubusercontent.com/8769166/124400150-cf354980-dd20-11eb-87c6-9478938d9c82.png). Remplacez `eth0` avec l'interface connectée à Internet :
#### Post Up Script
```
iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
```
#### Post Down Script
```
iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
```
## Documentations et ressources