Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion. Digital Ocean Documentation - FW Setup #1215

Closed
manicnuked opened this issue Nov 24, 2018 · 6 comments
Closed

Suggestion. Digital Ocean Documentation - FW Setup #1215

manicnuked opened this issue Nov 24, 2018 · 6 comments

Comments

@manicnuked
Copy link

manicnuked commented Nov 24, 2018

Digital Ocean offer a free firewall and I thought having the config would be useful to have in your setup doc.

These are the only rules I have setup and all works. If I need to SSH I will temporarity enable when in use.

Inbound Rules
Custom | TCP | 500 | All IPv4 All IPv6
Custom | TCP | 4500 | All IPv4 All IPv6
Custom | UDP | 500 | All IPv4 All IPv6
Custom | UDP | 4500 | All IPv4 All IPv6

Outbound Rules
ICMP | ICMP |   | All IPv4 All IPv6
All TCP | TCP | All ports | All IPv4 All IPv6
All UDP | UDP | All ports | All IPv4 All IPv6

@davidemyers
Copy link
Contributor

Your rules break WireGuard. Also, you don't need 500/TCP or 4500/TCP. You don't actually need IPv6 access to any service but SSH since Algo clients only connect to servers over IPv4.

Here are my DigitalOcean rules, with SSH restricted to certain source addresses.

Questions about the DigitalOcean firewall do come up from time to time, so perhaps it is worth documenting. Maybe I'll submit a PR.

@manicnuked
Copy link
Author

manicnuked commented Nov 25, 2018

Hey David - Thanks for sharing and I have updated. Re your last point I think it would be useful to have the minamum fw config documented.

@jwebbstevens
Copy link

@davidemyers Yes documentation about best practice on setup would be awesome. +1 from me. Are the rules you posted in the screenshot rules set for Inbound AND Outbound? I'm relatively non-technical on port range and protocol rules (i have to skill up on this area a lot).

@davidemyers
Copy link
Contributor

@jwebbstevens The rules I posted are for Inbound. The defaults can be used for Outbound.

@jwebbstevens
Copy link

Amazing. Thanks.

@jackivanov
Copy link
Collaborator

It's already documented in FAQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants