All releases with the relative changes are documented in this file.
LogLevelenum to represent all the available logging strategies (Off,Console,Db,All).- New option
--log-levelfor user-defined firewall rules, which allows to specify the logging strategy to use for traffic matching a given rule; if this option is not set, the default firewall logging strategy will be used.
Firewall::logmethod (that was accepting a boolean parameter) has been renamed toFirewall::log_leveland now accepts aLogLevelparameter, useful to set the default firewall logging strategy.- Renamed
Firewall::update_rulestoFirewall::set_rules. Firewall::newno longer takes a file path as argument, and returns a firewall without any defined rules; firewall rules can now be set exclusively viaFirewall::set_rules.
- Only spawn logger thread if a valid firewall was instantiated.
- Added
bundledfeature torusqlitedependency to properly work on Windows.
FirewallErrors now also include information about the file line number responsible for the error, enabling an easier debugging activity.
Firewall::data_linkmethod to set theDataLinktype of theFirewall: in addition to Ethernet, now also raw IP is supported.Firewall::logmethod to allow users enable or disable logging (it's still enabled by default).
- Log capabilities for the firewall: packets are logged both in standard output
and in a SQLite database with path
./log.sqlite(#1). Firewall::update_rulesto update the rules of a previously instantiated firewall.- Quick rules: each of the rules can now be preceded by a
+character that will make it have higher priority (quick rule). - Comments: the file defining firewall rules can now contain comment lines
(starting with
#).
- Rules precedence logic changed from "rule with more options wins" to "rule that comes first wins" and now quick rules are supported.
Firewall::resolve_packetnow accepts aFirewallDirectionby value instead of by reference.- Renamed
Firewall::set_policy_intoFirewall::policy_in. - Renamed
Firewall::set_policy_outtoFirewall::policy_out.
nullnet-firewallfirst release