block IP range

These are old archives. They are kept for historic purposes only.
Post Reply
Unrealuser
Posts: 6
Joined: Tue Mar 09, 2010 6:55 am

block IP range

Post by Unrealuser » Sun May 16, 2010 1:27 am

Can I block IP range with spamfilter, for example this IP 222.169.230.218. is proxy from china and on my server I never have anyone from china so if I add this filter /spamfilter add u gline 1d Spam !*@222.*:* would it ban users with IP who starts with 222 ???

katsklaw
Official supporter
Posts: 1114
Joined: Sun Apr 18, 2004 5:06 pm

Re: block IP range

Post by katsklaw » Sun May 16, 2010 3:29 am

Just Z:Line the IP range instead, you'll use less resources. Since you don't have users from that block it wont matter.

For more info please see: http://www.unrealircd.com/files/docs/un ... banipblock

Optionally, your services package may offer a SZLINE option, but it's more resource intensive than a hard coded Z:Line (ban ip block)

Z:Lines are better because they can not be removed from IRC, they are persistent across rehash/restart and connections are "zapped" before user registration (not to be confused with nick registration via services.)

Unrealuser
Posts: 6
Joined: Tue Mar 09, 2010 6:55 am

Re: block IP range

Post by Unrealuser » Sun May 16, 2010 8:21 am

I know for that katsklaw but thing is there is about 4 ircd linked and I have access to the shell on one only, and I'd like have it network wide koz some kids started playing in there with proxy ( hacking etc)

Jobe1986
Official supporter
Posts: 1177
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: block IP range

Post by Jobe1986 » Sun May 16, 2010 10:14 am

So use /gzline instead then.

katsklaw
Official supporter
Posts: 1114
Joined: Sun Apr 18, 2004 5:06 pm

Re: block IP range

Post by katsklaw » Sun May 16, 2010 12:20 pm

Unrealuser wrote:I know for that katsklaw but thing is there is about 4 ircd linked and I have access to the shell on one only, and I'd like have it network wide koz some kids started playing in there with proxy ( hacking etc)

This is the exact reason remote includes is such a wonderful tool. Additionally, the services SQLINE solution I gave you will also solve your problem without shell access.

Post Reply