mirror of
https://github.com/YunoHost-Apps/wireguard_ynh.git
synced 2024-09-03 20:35:58 +02:00
Update DISCLAIMERs after auto Post Up and Down scripts
This commit is contained in:
parent
1929f4bba0
commit
d1946f851b
2 changed files with 4 additions and 24 deletions
|
@ -5,6 +5,8 @@
|
|||
* 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
|
||||
|
@ -18,15 +20,3 @@ 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
|
||||
```
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
* 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*
|
||||
|
@ -18,15 +20,3 @@ 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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue