GeoIP [Unmaintained]

Discussion in 'Plugin Support' started by Wulf, Oct 3, 2015.

  1. I dunno if it's GeoIP or Notifications that have the issue, but I'm getting the "unknown" on anyone joining...

    I've tried looking up all the "unknown" players IP up on GeoIP (no idea if it's the same GeoIP as used with the plugin) and it show's their country and all
     
  2. Wulf

    Wulf Community Admin

    If their IP isn't in the database, it will show as Unknown. I don't make the database, so there isn't much I can do. I will be updating the database soon though to their latest from this month, so that may or may not help.
     
  3. Is it possible to lookup IP from their website, just to try verify if it's one or the other plugin that might have the problem... not sure if I used the same GeoIP as the one used in this plugin. GeoIP - IP Address Lookup is the one I tested with.
     
  4. Wulf

    Wulf Community Admin

    That would be what the old version of the plugin does, which is slower and limited to the number of requests allowed by each site used, the new one currently only uses the local database.
     
  5. Well, my server is Danish, and some danish guy logged in, showing CH in country, while other danish players are showing DK.
     
  6. Wulf

    Wulf Community Admin

    Not much I can do, the database isn't maintained by me. If there are verified inaccuracies, report them to MaxMind.
     
  7. I have this error:
    Code:
    (16:18:41) | [Oxide] 3:10 PM [Info] Unloaded plugin GeoIP v0.1.3 by Wulf / Luke Spragg
    (16:18:41) | [Oxide] 3:10 PM [Info] Loaded plugin GeoIP v0.1.3 by Wulf / Luke Spragg
    (16:18:41) | [Oxide] 3:10 PM [Error] Web request produced exception (Url: https://api.github.com/repos/lukespragg/geoip-json/contents/geoip-locations-en.json?client_id=&client_secret=) in 'GeoIP v0.1.3' plugin (NotSupportedException: https://api.github.com/repos/lukespragg/geoip-json/contents/geoip-locations-en.json?client_id=&client_secret=)
    (16:18:41) | [Oxide] 3:10 PM [Error] Web request produced exception (Url: https://api.github.com/repos/lukespragg/geoip-json/git/trees/master?client_id=&client_secret=) in 'GeoIP v0.1.3' plugin (NotSupportedException: https://api.github.com/repos/lukespragg/geoip-json/git/trees/master?client_id=&client_secret=)
    Rust version: v1327
    Oxide version: 2.0.1527
     
  8. Your plugin thinks i'm Russian, but i'm not.
    GetCountry("94.232.124.67");
    Returns: Russia
    Info from RIPE DB: Database Query — Welcome to RIPE Network Coordination Centre
    Address: Lithuania
    Also GeoIP-Blocks.json and GeoIP-Locations.json seems to be correct:
    Code:
        {
          "network": "94.232.120.0/21",
          "geoname_id": 597427
        }{
          "geoname_id": 597427,
          "locale_code": "en",
          "continent_code": "EU",
          "continent_name": "Europe",
          "country_iso_code": "LT",
          "country_name": "Republic of Lithuania"
        }
    

    I've made a console command, to test this case:
    Code:
    > getIP 94.232.124.67
    [Oxide] 5:08 PM [Info] [GeoIP] 94.232.232.0/21
    [Oxide] 5:08 PM [Info] [GeoIP] Russia
    First line is:
    octetBlocks.TryGetValue(values[0] + "." + values[1], out block)
    Puts(block.network); --- 94.232.232.0/21
     
    Last edited by a moderator: Oct 25, 2015
  9. Now I have same error of previous post:
    Code:
    [11/7/2015 4:00:25 AM] [Oxide] 3:59 AM [Error] Web request produced exception (Url: https://api.github.com/repos/lukespragg/geoip-json/contents/geoip-locations-en.json?client_id=&client_secret=) in 'GeoIP v0.1.3' plugin (NotSupportedException: https://api.github.com/repos/lukespragg/geoip-json/contents/geoip-locations-en.json?client_id=&client_secret=)
    [11/7/2015 4:00:25 AM] [Oxide] 3:59 AM [Error] Web request produced exception (Url: https://api.github.com/repos/lukespragg/geoip-json/git/trees/master?client_id=&client_secret=) in 'GeoIP v0.1.3' plugin (NotSupportedException: https://api.github.com/repos/lukespragg/geoip-json/git/trees/master?client_id=&client_secret=)
    Debug:
    Code:
    [11/7/2015 4:00:25 AM] [Oxide] 3:59 AM [Debug]   at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in <filename unknown>:0
      at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in <filename unknown>:0
      at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.Start () [0x00000] in <filename unknown>:0
    [11/7/2015 4:00:25 AM] [Oxide] 3:59 AM [Debug]   at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in <filename unknown>:0
      at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in <filename unknown>:0
      at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.Start () [0x00000] in <filename unknown>:0 
    Rust Experimental v1336 and latest version of Oxide.
     
  10. Code:
    Loaded plugin GeoIP v0.1.3 by Wulf / Luke Spragg
    [GeoIP] Checking for locations EN update failed! (0)
    [GeoIP] Error: SecureChannelFailure (The authentication or decryption has failed.)
    [GeoIP] Checking for blocks IPv4 update failed! (0)
    [GeoIP] Error: SecureChannelFailure (The authentication or decryption has failed.)
    
    debug true

    Oxide.Rust 2.0.3969
     
    Last edited by a moderator: Jun 30, 2018
  11. Wulf

    Wulf Community Admin

    This is very outdated. :p
     
  12. Wulf

    Wulf Community Admin

    CountryBlock hasn't used this in... 3 years?
     
  13. yes, sorry, its other plugin