SA-MP Forums Archive
Whitelist Server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Discussion (https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: Whitelist Server (/showthread.php?tid=438914)



Whitelist Server - Joe Staff - 22.05.2013

I have been working on a gamemode for only a little while, but I was thinking of making it whitelist only. Meaning only players that are on the whitelist can join (opposite of a blacklist).

Are there any ways to exclude IPs from a ban range or maybe another way to initiate a whitelist?

I know I can just kick any player who doesn't join with an approved name or IP, but I don't want players who have been previously removed from the whitelist to know that the server is still functional (to reduce DDoS attempts).

If players have a non-static IP, then there can be an option on the forum for the player to update their current IP.


This thread is to speak of methods of achieving aforementioned whitelist feature.


Re: Whitelist Server - playbox12 - 23.05.2013

So you want them not to be able to actually see the server at all. Well, the only way I see that being possible is performing checks on the server itself. If you'd have your dedicated or even VPS, you can easily install software to help you with the standard, very powerfull Linux firewall. I personally have used CSF before (http://configserver.com/cp/csf.html) which combined with a free control panel like Webmin (http://webmin.com/) is very easy to use and configure.

It allows you to specify IP's or ranges that are banned but also to always allow or ignore a specific IP.


Re: Whitelist Server - Joe Staff - 23.05.2013

Hmm, I hadn't considered third party sources. I'll have to look into that.


Re: Whitelist Server - Slice - 24.05.2013

You could just use iptables and do something like:
Code:
#Whitelist
-A INPUT -p all --dport 7777 -s 1.2.3.4 -j ACCEPT
-A INPUT -p all --dport 7777 -s 5.6.7.8 -j ACCEPT

# When you do DROP the server will appear completely dead
-A INPUT -p all --dport 7777 -j DROP



Re: Whitelist Server - OpticKiller - 24.05.2013

Infact i wanted to do this so badly but am not sure how to make it.


Re: Whitelist Server - Joe Staff - 24.05.2013

Quote:
Originally Posted by Slice
View Post
You could just use iptables and do something like:
Code:
#Whitelist
-A INPUT -p all --dport 7777 -s 1.2.3.4 -j ACCEPT
-A INPUT -p all --dport 7777 -s 5.6.7.8 -j ACCEPT

# When you do DROP the server will appear completely dead
-A INPUT -p all --dport 7777 -j DROP
That's a good solution, I suppose the whitelisting will be manual anyway for peer review of applications.


Re: Whitelist Server - Joe Staff - 24.05.2013

Forum application, mostly.


Re: Whitelist Server - Jochemd - 24.05.2013

Why would you actually want this?


Re: Whitelist Server - Joe Staff - 24.05.2013

Quote:
Originally Posted by Jochemd
View Post
Why would you actually want this?
Exclusivity, reduce hackers, trolls, and rule breakers, and allows for control of traffic.


Re: Whitelist Server - seanny - 24.05.2013

Quote:
Originally Posted by Joe Staff
View Post
Exclusivity, reduce hackers, trolls, and rule breakers, and allows for control of traffic.
At the cost of less players. (But in a good way)


Re: Whitelist Server - Joe Staff - 24.05.2013

Quote:
Originally Posted by seanny
Посмотреть сообщение
At the cost of less players. (But in a good way)
I've ran a server before that had a minimal amount of people. Names were known and events were logged. That is a much better gaming experience than a clusterf*ck of people with too much money and people who don't know what the rules are so they just go around killing people.


Re: Whitelist Server - Darius - 24.05.2013

Southclaw? D:


Re: Whitelist Server - Cell_ - 26.05.2013

Quote:
Originally Posted by Joe Staff
Посмотреть сообщение
Exclusivity, reduce hackers, trolls, and rule breakers, and allows for control of traffic.
Have you ever tried making a better anti-cheat (for the hackers part)?


Re: Whitelist Server - Joe Staff - 26.05.2013

Quote:
Originally Posted by Cell_
Посмотреть сообщение
Have you ever tried making a better anti-cheat (for the hackers part)?
I have and it works fine, but hackers aren't my problem. I just want a more quality server that meets my own criteria.