English How to Don't Let Some Countries From Seeing Server

20 replies
Goto Page
To the start Previous 1 2 Next To the start
Up
mr_s
User
Offline Off
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?
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
26.08.14 02:39:55 pm
Up
MikuAuahDark
User
Offline Off
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.
file cs2d LuaJIT for Dedicated Server (13) JIT POWER! | Know your Lua errors! | Part of LÖVE development team since 11.3
26.08.14 03:00:24 pm
Up
mr_s
User
Offline Off
cant simply drop their connection when trying to connect? , not usgn, I say from vps at all
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
26.08.14 03:07:35 pm
Up
Infinite Rain
Reviewer
Offline Off
You might want to check this out: file cs2d 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
26.08.14 03:11:14 pm
Up
mr_s
User
Offline Off
not banning, if they are banned they still can ddos, so how to drop the connection from specific countries?
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
26.08.14 03:15:41 pm
Up
Infinite Rain
Reviewer
Offline Off
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
26.08.14 03:17:05 pm
Up
mr_s
User
Offline Off
just tell, ok?
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
26.08.14 03:19:47 pm
Up
Infinite Rain
Reviewer
Offline Off
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
26.08.14 03:31:26 pm
Up
SaZ Dice
User
Offline Off
if you dont think, let the others reply
26.08.14 03:47:17 pm
Up
Infinite Rain
Reviewer
Offline Off
@user SaZ Dice:
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
26.08.14 03:48:18 pm
Up
SaZ Dice
User
Offline Off
idk, i think this is useless to say: "i dont know how to make it"
26.08.14 03:49:51 pm
Up
Infinite Rain
Reviewer
Offline Off
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
26.08.14 04:15:16 pm
Up
VADemon
User
Offline Off
Your logic regarding the DDoS counter measure:
"Oh, my hand hurts! Let's cut it off"

Do not ban whole countries or even subnets.
26.08.14 06:32:27 pm
Up
Raisun
User
Offline Off
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.
IMG:http://i.imgur.com/pi9LAVr.png
26.08.14 06:52:11 pm
Up
SaZ Dice
User
Offline Off
if he ban x.x.x.x then he can't join
27.08.14 08:13:37 am
Up
mr_s
User
Offline Off
oh cmon, so how to ban x.x.x.x
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
27.08.14 11:04:07 am
Up
Kinger_money
User
Offline Off
Code:
1
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
27.08.14 11:28:30 am
Up
VADemon
User
Offline Off
user mr_s, if you want to ban x.x.x.x then user Kinger_money gave you the wrong code
Code:
1
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
27.08.14 12:11:31 pm
Up
SaZ Dice
User
Offline Off
@user Kinger_money: is DAMNIL , so he gives wrong code, thx for code @user VADemon:
27.08.14 12:21:08 pm
Up
Kinger_money
User
Offline Off
ahaha , lol , i Danil
Danil my best friend haha
To the start Previous 1 2 Next To the start