0019731: Add a "no firewall" mode
Migrated from: https://tracker.clearos.com/view.php?id=19731
Reported by: PBaldwin
Even when a ClearOS system is configured in "standalone" or "trusted standalone" mode, there are still some important rules that are run, e.g.:
- Masquerading for VPN connections
- Hooks for the Intrusion Prevention app
- Hooks for the Attack Detector app
- and more
We need to create a mode in which all firewall rules are disabled, including those listed above. Why? Docker injects iptables rules and causes grief for any front-end that uses iptables under the hood (e.g. firewalld, Shorewall, ClearOS firewall, etc.) There are many many articles on the Internet that describe the issue and provide messy workarounds. Fundamentally, any Docker-enabled host should just disable all firewall rules and let Docker do its iptables injections.
Best practice: firewalls, VPNs, IDS, etc. should run on a separate gateway in front of the ClearOS Docker host.