- Joined
- Dec 3, 2009
- Messages
- 489
- Reaction score
- 31
DDOS attacks are nothing new when creating a server. I won't explain the tiny details or definitions since this is not for beginners. Before asking, do google first.
IP Filtering (White/Black Listing) is a way to block or limit the entry of ip into your server.
So how to do Allowing/Blocking of IP's?
1. Open Powershell with Administrator's Power.
2. Execute this:
-- Before we proceed with the third step, there are 2 methods. Blocking and Allowing.--
Download this script first:
3. For BLOCKING IPs, I'll give you an example of IP list which gives updated IP list of suspicious IPs:
4. To block, go back to powershell, check your directory and make sure you are in the same folder which the script and ip list exist.
5. Execute this:
-- You can also make your own IP list, and change the "firehol_level1.netset" to your .txt file. --
6. Now for ALLOWING IP on specific ports, we'll use the script: Import-Firewall-Allowlist.ps1
7. For example, you only want a specific country to enter your game. Go to:
8. We'll use Philippines for this, the file name of ph ip filter(default) is: ph.zone.txt
9. Before executing the script, open "Import-Firewall-Allowlist.ps1" with notepad or better notepad++, and search for this string: #add comma if too many or dash for port range //Miremo
10. You'll see; $ports = "3389". List all your ran ports and other ports you want to allow.
11. To proceed, execute this on powershell:
-- Again, you can make your own list, and only allow specific ip/player to enter your game/server --
12. After you finish filtering, make sure to input this on powershell:
NOTE: Always make sure to turn on your firewall, check the rules and disable everything except for your important sh*ts (RDP,MSSQL,Field,Login,Agent,Cache).
IP Filtering (White/Black Listing) is a way to block or limit the entry of ip into your server.
So how to do Allowing/Blocking of IP's?
1. Open Powershell with Administrator's Power.
2. Execute this:
PHP:
PowerShell.exe -ExecutionPolicy Bypass
Download this script first:
You must be registered to see links
3. For BLOCKING IPs, I'll give you an example of IP list which gives updated IP list of suspicious IPs:
You must be registered to see links
4. To block, go back to powershell, check your directory and make sure you are in the same folder which the script and ip list exist.
5. Execute this:
PHP:
.\Import-Firewall-Blocklist.ps1 -inputfile firehol_level1.netset
6. Now for ALLOWING IP on specific ports, we'll use the script: Import-Firewall-Allowlist.ps1
7. For example, you only want a specific country to enter your game. Go to:
You must be registered to see links
and choose your sh*t.8. We'll use Philippines for this, the file name of ph ip filter(default) is: ph.zone.txt
9. Before executing the script, open "Import-Firewall-Allowlist.ps1" with notepad or better notepad++, and search for this string: #add comma if too many or dash for port range //Miremo
10. You'll see; $ports = "3389". List all your ran ports and other ports you want to allow.
11. To proceed, execute this on powershell:
PHP:
.\Import-Firewall-Allowlist.ps1 -inputfile ph.zone.txt
12. After you finish filtering, make sure to input this on powershell:
PHP:
PowerShell.exe -ExecutionPolicy Restricted
NOTE: Always make sure to turn on your firewall, check the rules and disable everything except for your important sh*ts (RDP,MSSQL,Field,Login,Agent,Cache).