How to Don't Let Some Countries From Seeing Server
20 replies26.08.14 02:07:46 pm
hello usgn, I want ask you how to make different ip ranges from seeing my server?
I know it is iptables rule, but I don't know how to make it
, so, how?
I know it is iptables rule, but I don't know how to make it

AFAIK the USGN master server list all server that online. You may just prevent a country from connecting with range-ip block but they always able to see your server because USGN doesn't block any countries from seeing serverlist.


You might want to check this out:
Banning countries v1.0 (22)


A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
not banning, if they are banned they still can ddos, so how to drop the connection from specific countries?
I don't think that will help. If they know what are they doing, they can simply change the IP to another location.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
I don't think it's possible, however I'm not 100% sure.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
@
SaZ Dice:
How am I stopping them from replying?

How am I stopping them from replying?
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
I'm saying that I'm not sure. And if it is indeed possible, it will not stop attacks. Just saying it's useless.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
Your logic regarding the DDoS counter measure:
"Oh, my hand hurts! Let's cut it off"
Do not ban whole countries or even subnets.
"Oh, my hand hurts! Let's cut it off"
Do not ban whole countries or even subnets.
Just ban whole x.x.x.x and you'll be fine. Have fun playing with bots. Nobody will annoy you.
It's both useless and impossible to "drop the connection from specific countries". But hey, if you have B-52 and few EMP bombs... I have an idea.
It's both useless and impossible to "drop the connection from specific countries". But hey, if you have B-52 and few EMP bombs... I have an idea.
Code:
1
2
3
4
5
6
2
3
4
5
6
addhook("join","join_hook")
function join_hook(id)
if (player(id,"ip")==x.x.x.x) then
parse("")
end
end
function join_hook(id)
if (player(id,"ip")==x.x.x.x) then
parse("")
end
end


Code:
1
2
3
4
5
6
2
3
4
5
6
addhook("join","join_hook")
function join_hook(id)
if (player(id,"ip")~="0.0.0.0" and not player(id,"ip"):find("192.168.")) then
parse("kick ".. id .." \"Your IP is banned\"")
end
end
function join_hook(id)
if (player(id,"ip")~="0.0.0.0" and not player(id,"ip"):find("192.168.")) then
parse("kick ".. id .." \"Your IP is banned\"")
end
end