bannedips.cfg

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.

Moderator: POL Developer

Post Reply
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

bannedips.cfg

Post by Pierce » Sat Aug 09, 2008 4:31 am

I never worked with this in all the years. So i have a small question, if
i understood the explanation right.

Just two examples:

Example A

Code: Select all

BannedIP
{
    IPMatch 218.235.0.0/255.255.0.0
}
Example B

Code: Select all

BannedIP
{
    IPMatch 218.235.0.0/255.255.255.0
}

If i put example A into the bannedips.cfg, Pol would block the ip range
from 218.235.0.0 to 218.235.255.255

If i put example B into the bannedips.cfg, Pol would block the ip range
from 218.235.0.0 to 218.235.0.255

Is this correct?

User avatar
CWO
POL Expert
Posts: 1155
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post by CWO » Sat Aug 09, 2008 7:05 am

This one came from Folko, a former dev of our shard and well known dev here...

Code: Select all

//Hints from Folko:
//   Each IP or Mask needs an own entry.
//   Masks have to be like this:
//   "IPMatch 192.168.0.0/255.255.255.0"
//   That would ban 192.168.0.*
//   "IPMatch 192.168.0.0/255.255.0.0"
//   That would ban 192.168.*.*.
//   "IPMatch 192.0.0.0/255.0.0.0"
//   That would ban 192.*.*.*, but mask 255.0.0.0 shouldn't be used because it would ban too much.
//   Note that 1.2.3.4/255.255.255.0 would also work, it would ban 1.2.3.*
//   It is pointless to ban users which show in POL but not ingame; the bans are only enforced
//   after authentication.

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce » Sat Aug 09, 2008 11:54 am

Thx for the long version of yes, CWO :D

runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post by runtest » Sat Aug 09, 2008 2:31 pm

CWO Rocks

Post Reply