jck

geoip lan

11 posts in this topic

i want to modify GeoIPCountryWhois.csv for my college's lan

for ex 10.4.7.1-10.4.7.255 is ch1

10.4.10.1-10.4.10.255 is ch4 etc...

can you tell me how to do this

Share this post


Link to post
Share on other sites

i want to modify GeoIPCountryWhois.csv for my college's lan

for ex 10.4.7.1-10.4.7.255 is ch1

10.4.10.1-10.4.10.255 is ch4 etc...

can you tell me how to do this

You would have to insert the two lines needed, with the calculations for the IP's given.

Calulation is quite simple:

for 10.4.7.1 : (10*256*256*256)+(4*256*256)+(7*256)+(1*1) = 168036351

for 10.4.7.255 : (10*256*256*256)+(4*256*256)+(7*256)+(255*1) = 168036605

Do the same for the other IP's.

Now, open the csv file with something like Edit Pro or such. (Notepad will do, but will take some time loading extremely large files)

Insert the info you have created in the following sequence:

"from_ip",to_ip","from_ip_calculation","to+ip_calculation","desired_abbreviation","fulle_name"

Example:

"10.407.1","10.4.7.255","168036351","168036605","Int","Internal net: ch1"

Just check what is already in the file and you will understand the above.

Hope this helps you out. :)

Share this post


Link to post
Share on other sites

if i put only "10.4.7.1","10.4.7.255","168036351","168036605","C1","ch1" in geoipcountrywhois.csv ans restart dc and open filelist of a 10.4.7.* it still shows a ?

Share this post


Link to post
Share on other sites

if i put only "10.4.7.1","10.4.7.255","168036351","168036605","C1","ch1" in geoipcountrywhois.csv ans restart dc and open filelist of a 10.4.7.* it still shows a ?

Did you place these lines at the correct location in the file?

I believe it will not work if they are anywhere else.

(And ehm.... sorry about the typo's, but you have obviously seen and corrected them) :)

Share this post


Link to post
Share on other sites

ok there was only i logical place to put it in between 9.20.... and 11.0....

i put in

10.4.7.1 10.4.7.255 168036097 168036351 CA Canada

between them and restarted dc...

but the 10.4.7.* ip's(and all others) are still shown as A,(ip)

Share this post


Link to post
Share on other sites

thanks...

i edited it with notepad and its fine now

excell didnt add quotes and there was a box at the end of every line in notepad...

where are the flags stored?

Share this post


Link to post
Share on other sites

where are the flags stored?

They are in the exe, so they can't be edited, unless you recompile...

Share this post


Link to post
Share on other sites