Allow WireGuard UDP port 51820 in Security Group
This commit is contained in:
parent
b9bd82859d
commit
7c27cb5abb
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue