Please provide your full logs.
CountryBlock [Replaced]
Discussion in 'Plugin Support' started by Wulf, Dec 7, 2015.
-
Wulf Community Admin
-
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)
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
-
Wulf Community Admin
-
Since there is IP's in this, is there any way I can PM you?
-
Wulf Community Admin
-
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 -
-
-
/oxide.unload CountryBlock
make update
/oxide.load CountryBlock
That should do the trick. Note the plugin name is case sensitive. -
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
-
Wulf Community Admin
-
can i make it ban instead of kick?
-
Wulf Community Admin
-
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. -
Wulf Community Admin
-
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.
-
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.
-
Wulf Community Admin
-
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 -
Whats The Command For Japan JN ?