*** can't find 4.4.4.4.uk.: Non-existent domain That's why I'm looking vor an other solution.Ĭode: Select all C:\Users\palinka>nslookup 4.4.4.4.us.Ĭ:\Users\palinka>nslookup 4.4.4.4.us.Ĭ:\Users\palinka>nslookup 4.4.4.4.uk. Problem with that is that it can be that I make a mistake while entering a range cut a number on start or end while copy & past and then the half of the world are blocked I have clean up the 1st one yesterday so the shown result is started yesterday evening and just run in over night. Here you can see what is blocked via AutoBan (red) and what I have enter manually as a whole range due massive hack attempts out of this range. I don't really understand how it works I'm still a long way from being able to hold a candle to you. Right?Īnd if I include this script here and enter zz. in HMS, what do I have to enter under "Expected Result, Rejection Message, Score"? the script here from Palinka does something different than the thing in the referring links. REM - Test Whitelist (0 = Not Listed, 1 = Whitelisted)ĭim IsWhitelisted : IsWhitelisted = Whitelisted(oClient.IPAddress) If (IsWLMailSpike OR IsWLHostKarma OR IsWLNSZones OR IsWLSPFBL OR IsWLSpamDonkey OR IsWLIPSWhitelisted) Then Whitelisted = 1 IsWLIPSWhitelisted = Lookup(strRegEx, strLookup) IsWLSpamDonkey = Lookup(strRegEx, strLookup) StrRegEx = "^127\.0\.0\.(2|3|4|5)$" '2=excellent rep, 3=indispensable public service, 4=corp email (no marketing), 5=safe bulk mail IsWLNSZones = Lookup(strRegEx, strLookup) IsWLHostKarma = Lookup(strRegEx, strLookup) IsWLMailSpike = Lookup(strRegEx, strLookup) With CreateObject("DNSLibrary.DNSResolver") Do no simply overwrite the existing file.Code: Select all Function Whitelisted(strIP) : Whitelisted = 0ĭim IsWLMailSpike, IsWLHostKarma, IsWLNSZones, IsWLSPFBL, IsWLSpamDonkey, IsWLIPSWhitelisted When you update the database file, be sure to remove the old file first, copy the new file, and restart LSWS. Overwriting a memory-mapped file will cause the mapped file to crash. MaxMind database update ¶īe careful when trying to overwrite the existing MaxMind database during upgrade. You can keep the database up to date from time to time manually by doing a direct download, or you can use the GeoIP Update tool, so your system automatically keeps the file up to date whenever MaxMind publishes an update. If the database is not kept up to date, it will result in incorrect information. It looks like the record on that old database is incorrrect. Testing from an IP in NG/Nigeria/- x.x.x.x, it should be blocked but it is not.įurther analysis shows the IP belongs to North Carolina, US in the downloaded MaxMind database. IP Not Blocked Due to Out-of-date Database ¶Īssuming we have the following at /etc/apache2/conf.d/userdata/nf: You'll notice the first IP returns subdivision information and second IP doesn't. "Lookup": lsws]# mmdbinspect -db /usr/local/lsws/GeoLite2_City.mmdb "Database": "/usr/local/lsws/GeoLite2_City.mmdb", What is lsws]# mmdbinspect -db /usr/local/lsws/GeoLite2_City.mmdb.LiteSpeed Memcached LiteSpeed Memcached.LSCache Developers Guide LSCache Developers Guide.LSCache Without a Plugin LSCache Without a Plugin.Map MaxMind GeoIP2 Variables to IP2Location.IP Not Blocked Due to Out-of-date Database.IP Does Not Return Certain SubDivision Information.Be more specific than "GeoIP not working".GeoIPDBFile directive is for Apache, not LSWS.Example 2: Redirecting a client based on country.Example 1: Block wp-login.php from certain countries.GeoLocation Support GeoLocation Support Table of contents.WHM LiteSpeed Plugin WHM LiteSpeed Plugin.External Applications External Applications.LiteSpeed Web Server LiteSpeed Web Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |