1. Wulf

    Wulf Community Admin

    Please provide your full logs.
     
  2. Not very many errors. I did happen to find this one tho.

    In the logs it will also say
    Code:
    5:12 AM [Info] [CountryBlock] Getting country for ***.***.**.** failed! (0)
    No idea if this is related to your plugin, I would assume yes.
    Code:
    1:41 AM [Debug]   at System.Linq.Enumerable.Single[ILivePlayer] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.SingleOrDefault[ILivePlayer] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Game.ReignOfKings.Libraries.Covalence.ReignOfKingsPlayerManager.FindOnlinePlayer (System.String partialName) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CountryBlock+<IsCountryBlocked>c__AnonStorey0.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0 
    These two are the only errors I could find.
     
  3. Wulf

    Wulf Community Admin

    Please provide the full log, not just the debug lines. I'd need the IP as well to check if the IP resolves to a country or not too.
     
  4. Since there is IP's in this, is there any way I can PM you?
     
  5. Wulf

    Wulf Community Admin

    Sure, sent you the PM.
     
  6. Yeah after 2 attempts they are getting in on the server that I'm Admining on as well.

    Thanks for the plugin but is there a way to change "This server doesn't allow players from {country}" to something else that's a bit more friendly like "Kicked: No EAC connection" as I think that there is a possibility that we were DDOSed last night.
     
    Last edited by a moderator: Jan 6, 2016
  7. Yes. Go into the saves/oxide/lang folder and edit the CountryBlock.json
     
  8. I'm just the No.2 Admin but the Owner/Admin tried but it reverted back for some reason. Thanks for replying
     
  9. Try shutting it off, make the update then turn it back on.

    /oxide.unload CountryBlock
    make update
    /oxide.load CountryBlock

    That should do the trick. Note the plugin name is case sensitive.
     
  10. I don't have the CountryBlock.json as he configures it all but I just realised that he may need to change the file to "Read only" after editing it(if he can). I'll send him a message Thanks again
     
  11. Wulf

    Wulf Community Admin

    That shouldn't be needed, just customize it while the plugin is unloaded and that it is valid JSON.
     
  12. can i make it ban instead of kick?
     
  13. Wulf

    Wulf Community Admin

    It's on my TODO list.
     
  14. The plugin is starting to fail to find the country:

    2:33 AM [Info] [CountryBlock] Getting country for 43.230.88.151 failed! (0)

    Use http://ipinfo.io/43.230.88.151/country and it returns the country code.

    Hope this helps, because the hackers are starting to get back in.
     
  15. Wulf

    Wulf Community Admin

    If it's failing, it's the sites that are failing, not the plugin. Either the sites aren't responding, or some limit was hit. I'll see what I can do though.
     
  16. One of the sources was failing with "Server Not Found", so I took it out and I think it's working again. Will see the next time they try to log on.
     
  17. The Chinese have found a way around. They log in, but their Steam ID never gets checked according to Oxide logs. Other countries it's no problem.
     
  18. Wulf

    Wulf Community Admin

    It checks their IP, not Steam ID. If the API check fails, they still get in.
     
  19. It still is letting them in. :) The IP checks out for the country either CN, HK or SG, when I manually check on all the source websites, but it still lets them in. All other countries have been blocked. I only mentioned the Oxide log, because it's like they are masking themselves. Their IP is in the logs, but it's like they don't register. It's got me stumped too!
    [DOUBLEPOST=1455456406][/DOUBLEPOST]I am going to try and set it to whitelist true and list only the Countries allowed to connect and see if that changes it. I understand it's harder to protect against hackers than it is for them to hack, I am just trying to give you some info on what is happening. Maybe a debug setting that logs what information it can see for each user logging in that we can toggle on and off? I suck at actual coding. I am much better at finding what is broken. :)

    More information: Looking through my logs I have found that some make an initial connection and log in (do bad things), but get rejected if they log out and try to log back in.
     
    Last edited by a moderator: Feb 14, 2016
  20. Whats The Command For Japan JN ?