Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Docs Request: How to firewall flynn using ufw/iptables? #3266

Closed
onnimonni opened this issue Aug 11, 2016 · 6 comments
Closed

Docs Request: How to firewall flynn using ufw/iptables? #3266

onnimonni opened this issue Aug 11, 2016 · 6 comments

Comments

@onnimonni
Copy link
Contributor

Hey!

Could you provide basic settings for ufw or other firewall in installation documentation?
Current documentation is quite vague: https://flynn.io/docs/production#firewalling because flynn contains so many internal virtual interfaces.

I just thought ufw could be could fit because the preferred distro is ubuntu.

I tried multiple different combinations but everytime postgres connections between hosts just got blocked.

This is related to my bootstrap firewall frustration: #3259.

@philiplb
Copy link
Contributor

https://philiplb.de/flynn/2016/04/19/flynn-ufw/

@onnimonni
Copy link
Contributor Author

Excelsior! I try again with those.

@onnimonni
Copy link
Contributor Author

My problems were solved by using this one:

DEFAULT_FORWARD_POLICY="ACCEPT"

in /etc/default/ufw. Thanks @philiplb :)!

@Darkless012
Copy link

Darkless012 commented Mar 5, 2018

For the sake of completion, here is replacing DEFAULT_FORWARD_POLICY from command line (without the editor):
sed -i 's/DEFAULT_FORWARD_POLICY="DROP"/DEFAULT_FORWARD_POLICY="ACCEPT"/g' /etc/default/ufw

or just use:
ufw default allow routed

@phpfs
Copy link

phpfs commented Jul 10, 2018

Hi -
this is a must for standard flynn.io documentation in my opinion!
Also, as flynn.io wants to be as easy as possible, flynn-host should recommend to automatically set up networking with ufw :)

Thank you for making flynn.io possible!

@phpfs
Copy link

phpfs commented Jul 10, 2018

or just use:
ufw default allow routed

@Darkless012 - Isn't it this?
ufw default allow forward

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

No branches or pull requests

4 participants