Forráskód Böngészése

- Updated the list of dnsbl_servers. (bugreport:6862)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16887 54d463be-8e91-2dee-dedb-b68131a5f0ec
brianluau 12 éve
szülő
commit
db6a927d54
2 módosított fájl, 13 hozzáadás és 3 törlés
  1. 12 2
      conf/login_athena.conf
  2. 1 1
      src/login/login.c

+ 12 - 2
conf/login_athena.conf

@@ -113,10 +113,20 @@ ipban_cleanup_interval: 60
 //ip_sync_interval: 10
 
 // DNS Blacklist Blocking
-// If enabled, each incoming connection will be tested against the blacklists
+// If enabled, each incoming connection will be tested against the blacklists 
 // on the specified dnsbl_servers (comma-separated list)
 use_dnsbl: no
-dnsbl_servers: dnsbl.deltaanime.net
+dnsbl_servers: bl.blocklist.de, socks.dnsbl.sorbs.net
+// Here are some free DNS Blacklist Services: http://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
+//==============================================================================
+//     dnsbl_servers                    Description
+// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+// bl.blocklist.de                 IP-Addresses who attack other servers/honeypots over SSH, FTP, IMAP, etc.
+// ircbl.ahbl.org                  AHBL (open proxies, compromised machines, comment spammers)
+// safe.dnsbl.sorbs.net            All zones in dnsbl.sorbs.net except "recent" and "escalations"
+// sbl-xbl.spamhaus.org            Spamhaus blacklist (spammers, open proxies)
+// socks.dnsbl.sorbs.net           Open SOCKS proxy servers
+// tor.ahbl.org                    Current tor relay and exit nodes
 
 // Which account engine to use.
 // 'auto' selects the first engine available (txt, sql, then others)

+ 1 - 1
src/login/login.c

@@ -999,7 +999,7 @@ int mmo_auth(struct login_session_data* sd, bool isServer)
 
 		for( dnsbl_serv = strtok(login_config.dnsbl_servs,","); !matched && dnsbl_serv != NULL; dnsbl_serv = strtok(NULL,",") )
 		{
-			sprintf(ip_dnsbl, "%s.%s", r_ip, dnsbl_serv);
+			sprintf(ip_dnsbl, "%s.%s", r_ip, trim(dnsbl_serv));
 			if( host2ip(ip_dnsbl) )
 				matched = true;
 		}