config_edit_country_blocking
This is an old revision of the document!
Edit Country Blocking
Mystic offers local country blocking that works with IPV4 and IPV6.
It uses a local database that exists in the DATA directory. This database is named iplocation.bin and is a free download from the Internet.
Read and note well all the comments in iplocation.txt
You will want to edit iplocation.txt to set up the country blocking the enable the feature on a server(s) of your choice.
File: c:\mystic\data\iplocation.txt ; MASTER COUNTRY LOOKUP/BLOCK LIST░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ; ; To block a country, change the first letter from "A" to "B" to block all ; connections from that country. ; ; Be very careful not to mangle the layout of this file. Each line must ; have either an A or B on the line, followed by 2 letter ISO 3166-1 country ; code followed by the country name. They must all be separated by two spaces ; ; IP Database must be named "iplocation.bin" in the DATA directory and is a ; free "IP2Location LITE IP-COUNTRY Database" in the "IPV6 BIN" format, which ; can be downloaded from: ; ; lite.ip2location.com/database/ip-country ; ; Download the proper ZIP and store the ".bin" file contained in the archive ; in your DATA directorty as "iplocation.bin". An example of the proper ; database filename to download is "IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP" A AD Andorra A AE United Arab Emirates Press ESCAPE for Menu Line 1 of 268
To enable the country blocking feature, you must also configure it on a per-server basis in the Configure Servers menu. In the example below a TELNET server has had Country Blocking enabled.
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Server TELNET ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ █ Active │ Yes █ █ ID │ TELNET █ █ Adapter Type │ IPV4+IPV6 █ █ IPV4 Adapter │ 0.0.0.0 █ █ IPV6 Adapter │ :: █ █ Port │ 23 █ █ Max Allowed │ 5 █ █ Auto IP Ban │ 4 in 120 secs █ █ Country Block │ Yes █ █ Send Blocked │ No █ █ Dupe IP Limit │ 1 █ █ █ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
config_edit_country_blocking.1515314053.txt.gz · Last modified: 2018/01/07 02:34 by avon