m_geoip_whois help to install

These are old archives. They are kept for historic purposes only.

Moderators: Gottem, Supporters

Post Reply
Suratka
Posts: 64
Joined: Thu Nov 14, 2019 12:32 am
Contact:

m_geoip_whois help to install

Post 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
PeGaSuS
Posts: 60
Joined: Tue Jun 27, 2017 4:42 pm

Re: m_geoip_whois help to install

Post 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
What goes around comes around!
Suratka
Posts: 64
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: m_geoip_whois help to install

Post 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.
k4be
Posts: 38
Joined: Sun Jan 09, 2005 12:19 pm
Location: Poland

Re: m_geoip_whois help to install

Post 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
Suratka
Posts: 64
Joined: Thu Nov 14, 2019 12:32 am
Contact:

Re: m_geoip_whois help to install

Post 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 .... ??
Post Reply