TechDufus / FluxNodeInstall

Install a RunOnFlux Node with 100% Ansible.
MIT License
8 stars 4 forks source link

Add Basic UFW Firewall #44

Closed JKTUNING closed 1 year ago

JKTUNING commented 1 year ago

In reference to #35 -- Adds UFW Role -- Setup basic firewall ports - only flux related port is 16125 -- Purge task to remove and disable ufw and ports

Allow FluxOS to open all other ports as needed. It does this when FluxOS launches and also adds/removes app ports and test ports when needed.

Tested on Mowat's node without working collateral, but so far it seems to be working as expected.

JKTUNING commented 1 year ago

I snuck in adding development and testnet variables to the node details, instead of global fluxOS variables. I didn't remove it from global FluxOS vars yet, but with this implementation we could down the road as it will no longer rely on it.

This way it will check to see if they are defined and if not it will just use the default of false.