Klines gone...

These are old archives. They are kept for historic purposes only.
Post Reply
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

Klines gone...

Post 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
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post 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
Never argue with an idiot. They will bring you down to their level, then beat you with experience.
Moogey
Posts: 56
Joined: Thu Sep 08, 2005 9:08 pm

Post by Moogey »

Seriously? Why??? That sucks!
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Moogey
Posts: 56
Joined: Thu Sep 08, 2005 9:08 pm

Post by Moogey »

They should be kept in memory and on the HD as the unrealircd conf file is
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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.)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.... ;)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Uhm, point taken.

And let's not forget the bad old days when klines were cleared on /rehash :)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 ;) .
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

Post 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
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

Post 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
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Use except tkl :)
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

Post 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
KinG
Posts: 8
Joined: Wed Aug 24, 2005 10:07 am
Contact:

Post 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
Post Reply