ℹ️ Overview This section guides you through customizing VPN tunnel options and enabling logging to monitor VPN activity.
🏗️ Architecture Overview
┌─────────────────────────────────────────────────────────────┐
│ VPN Tunnel Monitoring │
│ │
│ ┌──────────────────┐ ┌─────────────────────────────┐ │
│ │ AWS Console │ │ CloudWatch Logs │ │
│ │ │ │ │ │
│ │ • Modify Tunnel │───▶│ • Tunnel Activity Logs │ │
│ │ • Configure DPD │ │ • Connection Events │ │
│ │ • Set Encryption │ │ • Authentication Logs │ │
│ │ • Enable Logging │ │ • Performance Metrics │ │
│ └──────────────────┘ └─────────────────────────────┘ │
│ │
│ ┌──────────────────────────────────────────────────────┐ │
│ │ VPN Tunnel Options │ │
│ │ │ │
│ │ • DPD Timeout: 30s (customizable) │ │
│ │ • IKE Version: IKEv1/IKEv2 │ │
│ │ • Encryption: AES128/256, AES-GCM │ │
│ │ • Integrity: SHA1/SHA2-256/384/512 │ │
│ │ • DH Groups: 2, 14-24 │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Access the VPC console


Click Confirm UP Tunnel Modification and keep default settings.
💡 Note: You can customize parameters like DPD timeout, IKE versions, encryption algorithms

For Tunnel Activity Log, enable logging:
🔍 Logging Benefits: Helps with troubleshooting, auditing, and monitoring VPN tunnel activity





💡 Recommended Security Settings:
🚀 Performance Tuning:
📊 CloudWatch Integration:
# Create CloudWatch alarm for tunnel state
aws cloudwatch put-metric-alarm \
--alarm-name "VPN-Tunnel-Down" \
--alarm-description "Alert when VPN tunnel goes down" \
--metric-name TunnelState \
--namespace AWS/VPN \
--statistic Maximum \
--period 300 \
--threshold 0 \
--comparison-operator LessThanThreshold \
--evaluation-periods 2
⚠️ Potential Issues:
✅ Post-Modification Checklist:
💰 Cost Considerations:
🔒 Security Best Practices:
💡 Customizable Tunnel Options:
🔍 CloudWatch Logs Use Cases:
⚠️ Important Info: Ensure both tunnels are fully operational to maintain secure connection and high availability between AWS and your on-premises environment.
✅ Completed: VPN tunnels are configured with logging and monitoring!