- Dec 17, 2015
-
-
Michal 'vorner' Vaner authored
So we generate logout before the new login.
-
- Dec 16, 2015
-
-
Michal 'vorner' Vaner authored
Recover from broken DB connection even if it happens in the __connection.cursor()
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
- Dec 15, 2015
-
-
Michal 'vorner' Vaner authored
-
- Dec 10, 2015
-
-
Michal 'vorner' Vaner authored
Newer uci mandates flags are before commands. Older one doesn't mind either way.
-
- Dec 09, 2015
-
-
Michal 'vorner' Vaner authored
In case ipset terminates with error, wait with closing the output until EOF comes. Closing it right away may cause losing error messages.
-
- Dec 07, 2015
-
-
Michal 'vorner' Vaner authored
-
- Dec 04, 2015
-
-
Michal 'vorner' Vaner authored
-
- Dec 03, 2015
-
-
Michal 'vorner' Vaner authored
When the set size needs to be updated, warn about it, as the firewall definitions need to be updated.
-
Michal 'vorner' Vaner authored
The firewall rules use names ending with _X, the plain ones are the temporary sets.
-
- Dec 02, 2015
-
-
Michal 'vorner' Vaner authored
These are filled with bare IP addresses for now. We need them for the same purpose we had net:ip ones, but there needs to be interoperability with firewall scripts and these use hash:net.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
And try to make the chance of reaching the ipset max name length limit (31 chars) smaller. We actually hit the limit in practice.
-
Michal 'vorner' Vaner authored
-
- Dec 01, 2015
-
-
Michal 'vorner' Vaner authored
Make the timeout for reload of the sets longer. In case there's some serious problem (like kmod-ipset not loaded), it wouldn't clutter logs this way, but if it is recoverable, it'd recover after relatively short time anyway.
-
- Nov 30, 2015
-
-
Michal 'vorner' Vaner authored
Don't set rights on the router_loggedpacket.archived, since the column is no longer there.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
They are related, so put them together. Its just nicer this way, no real change.
-
Štěpán Henek authored
-
- Nov 27, 2015
-
-
Michal 'vorner' Vaner authored
Don't mention the client ID before the ID is known. No functional change, just logging cleanup.
-
- Nov 25, 2015
-
-
Michal 'vorner' Vaner authored
Update the state field of sets when updates come. While not updating it was mostly harmless, this optimises out some downloading of data and some passing of data to kernel. And it was the original intention.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
When the set size is being changed, it is not needed to remove the set from kernel and create it again. And it wouldn't even work in case the ipset is already linked into the firewall. Simply reloading the content by swapping with a newly created set is OK.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Grant the script permissions to update the sets' data in database.
-
Michal 'vorner' Vaner authored
Generate the firewall sets' content. Handle growing of sizes. Keeping of still active but blocked IPs is still planned.
-
Michal 'vorner' Vaner authored
Take some functionality that'll be reused in other scripts and put it to separate library. The purpose is more code sharing than some general-purpose library.
-
Michal 'vorner' Vaner authored
Interminnent merge, to bring an improvement of the fwup plugin master for easy deploy (as this plugin is not out in the wild yet, there's nothing that would break by this merge).
-
Michal 'vorner' Vaner authored
-
- Nov 24, 2015
-
-
Michal 'vorner' Vaner authored
Configure the hash sizes of the sets in addition to maximum number of elements. Added to the DB, the master, docs and the plugin. Also, fixed a copy-pasted log message on the way.
-
Michal 'vorner' Vaner authored
Insert the right name into the known_plugins table when debug mode is requested.
-
- Nov 23, 2015
-
-
Michal 'vorner' Vaner authored
Check against duplicate addresses (added twice in a row or removed twice in a row).
-
- Nov 11, 2015
-
-
Michal 'vorner' Vaner authored
Fix after 60bef82d.
-
Michal 'vorner' Vaner authored
The count of activities per day may overflow the smallint because of still deployed bug in fake log submission buffering. Increase the data type size accordingly.
-
- Nov 10, 2015
-
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
Don't let the client wait too long when it reconnects because of a broken connection.
-
Michal 'vorner' Vaner authored
Don't allocate additional memory in the trie if we are over the limit.
-
Michal 'vorner' Vaner authored
After reconnecting, either ignore the config update (if the config is the same we have) or wipe out the old config first to free the memory.
-