Page 1 of 1
Klines gone...
Posted: Wed Sep 21, 2005 4:46 pm
by KinG
I'm still a beginner....
But after restarting the server (it doesn't happen much) all my klines are gone.
Can someone tell if that's also the case with glines etc.
Thank you much foor any help here...
greetz,
KinG
Posted: Wed Sep 21, 2005 7:41 pm
by Matridom
klines are stored in memory, restarting the server will cause you to loose them all.
Yes it's the same with glines and other server side bans.
however, with glines, since they are network, the server will re-import them from a linked server if it's still live (I use this when i upgrade the two servers to keep my gline list)
shut down one server, upgrade it. Link it to the existing server (glines/spamfilters carry over) shut down the second, then restart it, it will then re-aquire the glines.
Klines are local, so they won't carry over in this manner.
http://www.unrealircd.com/index.php?pag ... es&mod=cat
look at the modules m_tkl_export and m_tkl_import
This will allow you to back up the klines before a restart, then reimport them after the restart
Posted: Wed Sep 21, 2005 10:42 pm
by Moogey
Seriously? Why??? That sucks!
Posted: Wed Sep 21, 2005 11:09 pm
by Stealth
K:Lines are kept in memory because memory is fastest. If they were kept in a file, it would take more HDD space, constantly need to read the file, and be much slower. They are not kept when the server restarts, because there is no reason to. Like Matridom said, use those 2 modules to keep them, or use 2 servers and G:Lines.
Posted: Thu Sep 22, 2005 12:37 am
by Moogey
They should be kept in memory and on the HD as the unrealircd conf file is
Posted: Thu Sep 22, 2005 12:40 am
by w00t
They *can* be (see.. is it ban user { }?), but for most this wouldn't be a good thing, it'd be too slow.
Either use glines, or add them to your conf, or get a module to export them to a file, and re-import them (I think AngryWolf did one, although I'm not sure how well it'll cope since last I heard some of those modules had issues, and I've not used it myself.)
Posted: Thu Sep 22, 2005 12:49 am
by Syzop
It's not like we are any exception with regards to saving *lines.
Either use glines, or add them to your conf, or get a module to export them to a file, and re-import them[..]
Or do like everyone does: use services; /OS AKILL etc.... ;)
Posted: Thu Sep 22, 2005 5:15 am
by w00t
Uhm, point taken.
And let's not forget the bad old days when klines were cleared on /rehash

Posted: Thu Sep 22, 2005 4:54 pm
by aquanight
Yup, this is exactly why exporting *lines to file isn't really needed - there are enough ways to have persistant bans (for kline == ban user{}@conf, zline == ban ip{}@conf, gline == /os akill, gzline == /os szline (or whatever - or akill if it's not available), nickbans == /os sqline or ban nick{}@conf, etc...). Unfortunately conffile bans don't expire so you'd really only use those for permanent bans ;) .
Posted: Thu Sep 22, 2005 5:12 pm
by KinG
Matridom wrote:klines are stored in memory, restarting the server will cause you to loose them all.
Yes it's the same with glines and other server side bans.
however, with glines, since they are network, the server will re-import them from a linked server if it's still live (I use this when i upgrade the two servers to keep my gline list)
shut down one server, upgrade it. Link it to the existing server (glines/spamfilters carry over) shut down the second, then restart it, it will then re-aquire the glines.
Klines are local, so they won't carry over in this manner.
http://www.unrealircd.com/index.php?pag ... es&mod=cat
look at the modules m_tkl_export and m_tkl_import
This will allow you to back up the klines before a restart, then reimport them after the restart
Ok...thanks for the answers.....
I will take a look at the mods...
KinG
Posted: Fri Sep 23, 2005 4:17 pm
by KinG
Ok...thanks..it's working...
One last question....
I've put all network admins, serveradmins servicesadmins in the except ban list (eline).
When adding a gline on my own connection it stil bans me or the toher netadmin and services admins etc.
I'm guessing that the except ban list is only working for the kline?
How can i configure the unrealird.config with a except banlist for glines?
thanks....
KinG
Posted: Fri Sep 23, 2005 4:49 pm
by Stealth
Use except tkl

Posted: Sun Sep 25, 2005 11:19 am
by KinG
ok...
now i'm looking stupid i know....
I've put this line in the list of except ban in my unruealird.conf:
except tkl {
mask *@*h438etc*;
};
after rehashing i'm getting a error that the configuration didn't pass the test.
For except tkl do i have to use a module?
greetz,
KinG
Posted: Sun Sep 25, 2005 11:26 am
by KinG
ok....i'm hitting myself in my head..

I forgot to include the type ....
it's working...

thanks foor all the help...
greetz,
KinG