- Jan 28, 2016
-
-
Michal 'vorner' Vaner authored
Don't rollback the database when we don't use transactions (they are useless here, with single select being done to refresh again and again). Also, don't recycle the cursor, clean it up (it is reportedly better for the DB).
-
- Jan 25, 2016
-
-
Michal 'vorner' Vaner authored
So the main thread can still answer queries and not get blocked.
-
Michal 'vorner' Vaner authored
Refresh the data from DB every 15 minutes. If it fails, try again next time.
-
Michal 'vorner' Vaner authored
So we don't access the DB all the time.
-
- Jan 20, 2016
-
-
Michal 'vorner' Vaner authored
Allow changing the size of an IPset. The infrastructure should be able to handle it now.
-
Michal 'vorner' Vaner authored
-
- Jan 18, 2016
-
-
Michal 'vorner' Vaner authored
Ensure the inet→text conversion in build_fwup_sets.pl doesn't produce /32 at the end, as ucollect master doesn't handle that.
-
- Jan 15, 2016
-
-
Michal 'vorner' Vaner authored
Don't try to create the IPset if it already exists. It may be of wrong size (which will be fixed on the refill). Also, recreate IPsets if they are missing on refill (may be caused by a queue breakage during setup) and handle leftover temporary sets.
-
Michal 'vorner' Vaner authored
-
Michal 'vorner' Vaner authored
-
- Jan 06, 2016
-
-
Michal 'vorner' Vaner authored
Use sanity instead of assert in the fake plugin
-
- Jan 04, 2016
-
-
Michal 'vorner' Vaner authored
Use a class variable where appropriate instead of overriding it in each object.
-
- Dec 18, 2015
-
-
Michal 'vorner' Vaner authored
Keep the attackers that drop out of the fake logs still blocked if they get caught on the firewall. Do so by scanning the firewall logs for addresses we would like to delete from the filter.
-
- Dec 17, 2015
-
-
Michal 'vorner' Vaner authored
Sanity reports an error to logs, which may help us debug some of the problems and crashes. Also, fix result check at getsockname.
-
Michal 'vorner' Vaner authored
-
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.
-