Disable icmp packets over private resources

This commit is contained in:
Owen
2025-12-16 17:14:00 -05:00
committed by Owen Schwartz
parent 6072ee93fa
commit 3d5ae9dd5c
10 changed files with 98 additions and 16 deletions

View File

@@ -47,7 +47,8 @@ const createSiteResourceSchema = z
roleIds: z.array(z.int()),
clientIds: z.array(z.int()),
tcpPortRangeString: portRangeStringSchema,
udpPortRangeString: portRangeStringSchema
udpPortRangeString: portRangeStringSchema,
disableIcmp: z.boolean().optional()
})
.strict()
.refine(
@@ -158,7 +159,8 @@ export async function createSiteResource(
roleIds,
clientIds,
tcpPortRangeString,
udpPortRangeString
udpPortRangeString,
disableIcmp
} = parsedBody.data;
// Verify the site exists and belongs to the org
@@ -245,7 +247,8 @@ export async function createSiteResource(
alias,
aliasAddress,
tcpPortRangeString,
udpPortRangeString
udpPortRangeString,
disableIcmp
})
.returning();