Allow WireGuard UDP port 51820 in Security Group

This commit is contained in:
vickytechkey 2026-08-06 11:06:03 +05:30
parent b9bd82859d
commit 7c27cb5abb

View file

@ -34,6 +34,9 @@ export class AwsCdkStack extends cdk.Stack {
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(80), 'Allow HTTP');
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(443), 'Allow HTTPS');
// WireGuard VPN
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.udp(51820), 'Allow WireGuard VPN');
// 3. Define the EC2 Instance (t3.medium recommended for running ClamAV/Rspamd)
const instance = new ec2.Instance(this, 'MailServerInstance', {
vpc,