By keneshhagard
I am using StrongSwan to setup a site-to-site VPN between two DigitalOcean VPCs. For testing purposes I have UFW disabled and when I add a DO firewall with TCP/UDP/ICMP open to all addresses inbound / outbound - ICMP fails to get through the tunnel. Removing the DO firewall ICMP gets through.
UFW works fine in both directions. Any ideas why the DO firewall doesn’t work?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi,
Firstly, I must admit that I used to use DO firewall just during initial droplet configuration, to protect it until its own firewall is installed and configured. Though I do not use DO firewall on a daily basis as it is not flexible and difficult for troubleshooting (the logs are not available), I may say that the below settings made my DO firewall transparent in my implementations when I was using it.
Inbound rules.
| Type | Protocol | Port Range | Sources |
|---|---|---|---|
| ICMP | ICMP | All IPv4, All IPv6 | |
| All TCP | TCP | All ports | All IPv4, All IPv6 |
| SSH | TCP | 22 | All IPv4, All IPv6 |
| All UDP | UDP | All ports | All IPv4, All IPv6 |
Outbound rules.
| Type | Protocol | Port Range | Destinations |
|---|---|---|---|
| ICMP | ICMP | All IPv4, All IPv6 | |
| All TCP | TCP | All ports | All IPv4, All IPv6 |
| All UDP | UDP | All ports | All IPv4, All IPv6 |
Can you share some more info about you configuration ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.