Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:vpn:wireguard:automated [2021/05/23 14:52] – set ID as suffix and added script for creating extra named peers with IDs willowen100 | docs:guide-user:services:vpn:wireguard:automated [2022/06/14 04:03] – Removed erroneous /24 from lines beginning export WG_${LAN}_server_IP= in scripts c) & d) iainbullock | ||
|---|---|---|---|
| Line 54: | Line 54: | ||
| echo -n " | echo -n " | ||
| wg genkey | tee "/ | wg genkey | tee "/ | ||
| + | echo " | ||
| + | |||
| + | echo -n " | ||
| + | uci rename firewall.@zone[0]=" | ||
| + | uci rename firewall.@zone[1]=" | ||
| echo " | echo " | ||
| Line 212: | Line 217: | ||
| echo -n " | echo -n " | ||
| wg genkey | tee "/ | wg genkey | tee "/ | ||
| + | echo " | ||
| + | |||
| + | echo -n " | ||
| + | uci rename firewall.@zone[0]=" | ||
| + | uci rename firewall.@zone[1]=" | ||
| echo " | echo " | ||
| Line 321: | Line 331: | ||
| </ | </ | ||
| - | === c) Add Additional Set Number of Peers with Names and IDs === | + | ==== c) Add Additional Set Number of Peers with Names and IDs ==== |
| This script allows you to add a set number of extra peers with names and unique IDs alongside any pre-existing peers already on the system. | This script allows you to add a set number of extra peers with names and unique IDs alongside any pre-existing peers already on the system. | ||
| Line 340: | Line 350: | ||
| export DDNS=" | export DDNS=" | ||
| export WG_${LAN}_server_port=" | export WG_${LAN}_server_port=" | ||
| - | export WG_${LAN}_server_IP=" | + | export WG_${LAN}_server_IP=" |
| export WG_${LAN}_server_firewall_zone=" | export WG_${LAN}_server_firewall_zone=" | ||
| export quantity=" | export quantity=" | ||
| Line 467: | Line 477: | ||
| export DDNS=" | export DDNS=" | ||
| export WG_${LAN}_server_port=" | export WG_${LAN}_server_port=" | ||
| - | export WG_${LAN}_server_IP=" | + | export WG_${LAN}_server_IP=" |
| export WG_${LAN}_server_firewall_zone=" | export WG_${LAN}_server_firewall_zone=" | ||
| export quantity=" | export quantity=" | ||