Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

NoLAstNamE's avatar

Block IPs except for Forge on port 22

Hey everyone!

I have a DigitalOcean droplet and I want to block all IPs on port 22 except for Forge's IP and my IP. Is this a good idea? also it's not clear to me what IPs to allow in my DigitalOcean Firewall, is it both Forge's Public and Private IP?

0 likes
6 replies
martinbean's avatar

@benjamin1509 It’s a good idea if you 100% know the IPs you need to white-list, and those IPs are not going to change. Otherwise you risk misconfiguring something and potentially locking yourself out of your own services.

1 like
NoLAstNamE's avatar

@martinbean

Otherwise you risk misconfiguring something and potentially locking yourself out of your own services.

This is what I am scared of.

Please or to participate in this conversation.