By razor01100
I’m working in a assignment, beginner in networking and need your help regarding Iptables/FIREWALL.
My droplet has a floating IP x2.x2.x2.x2 , and same droplet is sending emails by itself using my public IP x1.x1.x1.x1 .
I don’t want to show my droplets public IP in mail header neither in SPF, as it is one of the requirements.
I tried this solution . I’m not able to achieve the same, and as I can understand DigitalOcean is blocking outbound connection using floating IP for SMTP.
I was not successful applying this,
So even it shows the IP of the droplet but it will only work for email service.
Applying this, is a bit confusing since what I believe Digital ocean cloud firewall is not capable of controlling the Floating IP and I’m not that good in networking.
Can any one please help me, how can I achieve that ? do you have another suggestion ?
Regards,
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!
Personally I would recommend against running your own mail services whenever possible. There are free and low cost hosted options available which remove the burden of administering these services.
Should you choose to set up method 2 above you will want to configure a firewall on the server itself rather than on your floating IP since you’ll be sending directly. This guide includes details on setting up FirewallD on CentOS. You can use this to set up a local firewall and open SMTP ports.
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.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.