Fix client access scope

This commit is contained in:
2026-09-20 17:26:11 +01:00
parent aa0a292943
commit 27676c5a3f
4 changed files with 28 additions and 149 deletions
@@ -172,10 +172,13 @@ export default async function setupWireguardHost({
sh += `cd ${HOST_CONFIG_DIR}\n`;
const HOST_SUBNET = `${HOST_WG_IP.split(".").slice(0, 3).join(".")}.0/24`;
const iptables_scripts = buildHostIptablesScripts({
host_id: Number(HOST_ID),
interface_name: INTERFACE_NAME,
target_interface: TARGET_INTERFACE || "eth0",
host_subnet: HOST_SUBNET,
clients: clients.map((client) => ({
id: client.id,
wg_ip_address: client.wg_ip_address,