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
@@ -60,14 +60,33 @@ You can try to ping: ```ping 10.10.10.0```
60
60
Use this mode if you want all network traffic to be routed through the VPN tunnel for maximum privacy and encryption.
61
61

62
62
63
-
You can run ```curl ifconfig.me``` command and response should be vpn server's public IP. For our case it should be ```1.2.3.4```
63
+
You can run ```curl ifconfig.me``` command from ```chrome-vm``` and response should be vpn server's public IP. For our case it should be ```1.2.3.4```
64
+
65
+
<Asidetype="caution">
66
+
- This configuration will not work from the `business-vm` due to its firewall configuration.
67
+
</Aside>
64
68
65
69
### 3. VPN as server
66
70
Configure WireGuard as a server to accept connections from multiple clients.
67
71
68
72

69
73
70
-
You can try to ping: ```ping 10.10.10.0```
74
+
You can try to ping from test client: ```ping 10.10.10.4```
75
+
76
+
<Aside>
77
+
- You have to enable ```serverPorts``` in nix file.
78
+
```nix
79
+
ghaf.reference.services.wireguard-gui = {
80
+
enable = true;
81
+
serverPorts = [ 51820 ];
82
+
};
83
+
```
84
+
</Aside>
85
+
<Asidetype="caution">
86
+
- In the default Ghaf image, business-vm uses port ```51821``` and chrome-vm uses port ```51822``` for WireGuard server mode.
87
+
When configuring server mode, set ```ListenPort``` to 51821 in business-vm and 51822 in chrome-vm.
88
+
</Aside>
89
+
71
90
72
91
<Aside>
73
92
- You can use an IP calculator to help generate correct `AllowedIPs` values: [WireGuard AllowedIPs Calculator](https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/)
0 commit comments