[VPS] Country ban

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
lucatone17
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Aug 20, 2015 6:51 pm

[VPS] Country ban

Post by lucatone17 »

Hello i am new in this.. I want to do a country ban for example of EEUU or Russia, china etc.. all countryies tan doesnt speak spanish i dont know how to use well the NFO firewall to do this.. Can somewone helps me?
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: [VPS] Country ban

Post by kraze »

This is not something I'd recommend you do as doing so could have serious performance impacts. You'll definitely want to stick to banning smaller subnets or malicious traffic only.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
stickz

Re: [VPS] Country ban

Post by stickz »

Depending on the application(s) used, the overhead could be a lot less to just fetch the area(city, country, continent etc.) from a goeip database.

Inspecting every packet is the absolute worse way to implement something like this.
Last edited by stickz on Wed Sep 02, 2015 8:38 pm, edited 1 time in total.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: [VPS] Country ban

Post by soja »

stickz wrote:Depending on the application(s) used, the overhead could be a lot less to just fetch the country from a goeip database.

Inspecting every packet is the absolute worse way to implement something like this.
The only way I see that working is if you issue a drop rule for every IP(that sends you traffic) that matches a specified country, otherwise you just run into the same issue.
Not a NFO employee
stickz

Re: [VPS] Country ban

Post by stickz »

soja wrote:
stickz wrote:Depending on the application(s) used, the overhead could be a lot less to just fetch the country from a goeip database.

Inspecting every packet is the absolute worse way to implement something like this.
The only way I see that working is if you issue a drop rule for every IP(that sends you traffic) that matches a specified country, otherwise you just run into the same issue.
It depends on the application used. The point is doing something further down the line (localized) where every packet doesn't need inspected is proper.

Webservers I would just map the locations and rewrite the url; whereas, gameservers just create a quick plugin to kick the client.
Post Reply