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

Created on 11 Aug 2016  ·  6Comments  ·  Source: flynn/flynn

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: https://github.com/flynn/flynn/issues/3259.

Most helpful comment

All 6 comments

Excelsior! I try again with those.

My problems were solved by using this one:

DEFAULT_FORWARD_POLICY="ACCEPT"

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

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

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!

or just use:
ufw default allow routed

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IsNull picture IsNull  ·  5Comments

hadifarnoud picture hadifarnoud  ·  3Comments

philiplb picture philiplb  ·  4Comments

heldopslippers picture heldopslippers  ·  4Comments

tuukkamustonen picture tuukkamustonen  ·  5Comments