You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ A SaaH-HaaS[-Spoke] topology may be useful when you can't forward the WireGuard
32
32
Move everything in `examples/` out to the parent directory. The files to edit are:
33
33
34
34
-`dhcp/*dhcp*`: DHCP config, if you want to use the node as a DHCP server but not using Pi-hole
35
-
-`netplan/{closed,open}.yml`: network config when internet is reachable or not, respectively
35
+
-`netplan.yml`: network config
36
36
-`env.sh`: environment variables for the scripts
37
37
-`compose.yml`: environment variables for the services and bare WireGuard
38
38
-`hooks/{pre,post}-{up,down}.sh`: scripts that run from the active user's home directory before and after everything is started or stopped
@@ -58,10 +58,10 @@ To customize iptables, modify the relevant lines in `start.sh` and `stop.sh`.
58
58
Set a node up in two or three steps:
59
59
60
60
1. Move this directory to the target in any way you like. If you install the `deb` package provided in [Releases](https://github.com/ipitio/closure/releases), it will be created as `/opt/closure`.
61
-
2. Edit the files above, run `init.sh` if you didn't install the package, and reboot.
61
+
2. Edit the files above. If you didn't install the package, change the path in `rc.local`and move it to `/etc`. Now reboot.
62
62
3. On a Hub or HaaS, add a Spoke or SaaH peer by running `add.sh` (as described below). Then, for a SaaH, add an `SERVER_ALLOWEDIPS_PEER_[SaaH]=` environment variable -- using the peer's name sans the brackets -- for the wireguard service with the difference of `0.0.0.0/1,128.0.0.0/1,::/1,8000::/1` and the peer's IP, and run `sudo bash restart.sh`. This [AllowedIPs Calculator](https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator) is pretty nifty. Follow a similar process for a Spoke, if needed.
63
63
64
-
Set a Hub or HaaS up first, so you can generate the necessary peer configuration for a Spoke or SaaH, then drop it in the Spoke's or SaaH's `wireguard/config/wg_confs` directory after completing Step 1 for it.
64
+
Set a Hub or HaaS up first, so you can generate the necessary peer configuration for a Spoke or SaaH, then drop it in the Spoke's or SaaH's `wireguard/config/wg_confs` directory before their reboot.
65
65
66
66
> [!NOTE]
67
67
> Any arguments passed to `kickstart.sh` are passed to `init.sh` and `start.sh`, and `init.sh` can add or edit wifi networks -- useful on a Raspberry Pi Zero (2) W! See the top of `init.sh` for the arguments it takes.
0 commit comments