The point of the firewall module of tl-setup is to: - Add service definitions to the firewall. - Persistently enable services. It should not: - Enable/disable the entire firewall. We currently have enable() methods in each firewall backend which allows tl-setup to enable the firewall. This is IMO wrong, and we should never touch the running state of firewall other than to have it reload the new firewall rules. Also, the enable() methods are never used save for in the file-local main().
Removed enable() implementations from backends and frontend in commit 28369.
Code review looks good, but waiting for reports of successful installations on SuSE, Ubuntu and RHEL before closing.
Adding testers for Ubuntu, SuSE, RHEL and Fedora. Please remove yourself from the tester list when you've made sure that the firewall part of tl-setup works as indented.
Verified functionality on RHEL6 using build 4312.
Verified functionality on Fedora 20 (32-bit) using build 4318.
Works on SLED11 using build 4346. iptables diff: +LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:904 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP ' +ACCEPT tcp -- anywhere anywhere tcp dpt:904 +LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:cslistener flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP ' +ACCEPT tcp -- anywhere anywhere tcp dpt:cslistener +LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:300 flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP ' +ACCEPT tcp -- anywhere anywhere tcp dpt:300 +LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 tcp dpt:surf flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-TCP ' +ACCEPT tcp -- anywhere anywhere tcp dpt:surf
Works on Ubuntu 14.04 (which had ufw disabled by default, so it needed to be activated first).
No reports of breakage from any platforms during testing, considering it done.