Page 1 of 1

m_geoip_whois help to install

Posted: Fri Dec 20, 2019 9:58 pm
by Suratka
anyone more explain to me how to install this module?
I downloaded the three files plus the csv file and placed them in the "conf" folder
then I added in my unrealircd.conf the following script:

Code: Select all

geoip-whois {
	ipv4-blocks-file "GeoLite2-Country-Blocks-IPv4.csv";
	ipv6-blocks-file "GeoLite2-Country-Blocks-IPv6.csv";
	countries-file "GeoLite2-Country-Locations-en.csv";
	display-name; // Poland
	display-code; // PL
//	display-continent; // Europe
	info-string "connected from "; // remember the trailing space!
};
ma quando do /rehash ricevo il seguente errore:

Code: Select all

7 ¤ 22:49:23 7 ¤  9 ¤°¤ 15[4SNotice15]14:11 irc.pernacchia.me : *** suratka is rehashing server config file
/home/server/unrealircd/conf/unrealircd.conf Rehashing
7 ¤ 22:49:23 7 ¤  9 ¤°¤ 15[4SNotice15]14:11 irc.pernacchia.me : *** Loading IRCd configuration..
7 ¤ 22:49:23 7 ¤  9 ¤°¤ 15[4SNotice15]14:11 irc.pernacchia.me : *** error: /home/server/unrealircd/conf/unrealircd.conf:57: unknown directive geoip-whois
7 ¤ 22:49:23 7 ¤  9 ¤°¤ 15[4SNotice15]14:11 irc.pernacchia.me : *** error: 1 errors encountered
7 ¤ 22:49:23 7 ¤  9 ¤°¤ 15[4SNotice15]14:11 irc.pernacchia.me : *** error: IRCd configuration failed to pass testing

Re: m_geoip_whois help to install

Posted: Sat Dec 21, 2019 12:50 am
by PeGaSuS
You should read https://www.unrealircd.org/docs/FAQ#How ... modules.3F carefully.

You have all the answers to your questions there.

Cheers

Re: m_geoip_whois help to install

Posted: Sat Dec 21, 2019 3:57 pm
by Suratka
if it had been so simple I wouldn't have done the post, don't you think?

geoip should not be compiled, the procedure should be to put the three files in the "conf" folder
and then script those lines into the unrealircd. I perfectly executed the wording and it gives me an error. so either there is something wrong with the script or the files should not be put there.
and sorry if I'm ignorant, I just repeat what I read.

Re: m_geoip_whois help to install

Posted: Sat Dec 21, 2019 4:03 pm
by k4be
Apparently you forgot to add the "loadmodule" directive. It should be done for all modules, so is not mentioned in the module-specific description.
https://www.unrealircd.org/docs/FAQ#How ... modules.3F

Re: m_geoip_whois help to install

Posted: Thu Dec 26, 2019 12:06 pm
by Suratka
ok; therefore, considering that this "module" is made up of 4 CSV files, "GeoLite2 Country.CSV, GeoLite2-Country-Blocks-IPv4.csv, GeoLite2-Country-Blocks-IPv6.csv and GeoLite2-Country-Locations-en.csv, placed in the "conf" folder and not in "third", after which I open my unrealircd.conf and edit these lines:

Code: Select all

loadmodule "conf/m_geoip_whois";


geoip-whois {
	ipv4-blocks-file "GeoLite2-Country-Blocks-IPv4.csv";
	ipv6-blocks-file "GeoLite2-Country-Blocks-IPv6.csv";
	countries-file   "GeoLite2-Country-Locations-en.csv";
	display-name; // Poland
	display-code; // PL
	display-continent; // EU
	info-string "connected from "; // remember the trailing space!
};
Config example:


how could I script the module in the conf ??
"loadmodule .... ??