Tutorial VALVE DDOS PROTECTION (99.9%)

Mega Carder

Guru
BFD MEMBER
LEGEND
ULTIMATE
SELLER
SUPREME
MEMBER
BFD Legacy
Joined
Mar 14, 2025
Messages
1,348
Reaction score
15,594
Deposit
6,350$
Hi everyone

I saw many people who have some serious issues for valve games like CSGO, RUST etc...
If you are providing VALVE GAMES and under attack, please use the iptables rule set below;

If you do not have IPTABLES or IPSET, or you are not sure if you have them or not, please use the command line below;

For CentOS:
Code:
yum install iptables && yum install ipset

For Ubuntu/Debian:
Code:
apt-get install iptables && apt-get install ipset

Here is the iptables rule set for VALVE GAMES(Read the detailed description in the script)
Please put the bash script into a file called r4p3-valve.sh;
There is a command line "-d r4p3" in the bash script, please change it by using your external ip address. For example; "-d 67.67.67.67" or whatever it is.

Bash:
Code:
#!/bin/bash
# Daniel Q. - Nature N Moon - Valve DDOS Protection - R4P3.NET
# Use this command line "chmod 777 r4p3-valve.sh && ./r4p3-valve.sh"
# The IPTABLES script has been created to keep the Valve Servers alive by Natuere N Moon in R4P3.NET
# Your SSH port must be 22
# Your web applications must be 80 or 443
# File Transfer Port: 21
# There is a command line "-d r4p3" in the bash script, please change it by using your external ip address. For example; "-d 34.34.34.34" or whatever it is.

echo "R4P3 VALVE RULE SET HAS BEEN SUCCESSFULLY STARTED"
ipset create valve_allowed hash:ip hashsize 2097152 maxelem 40000000 timeout 259200

iptables -N R4P3_VALVE -t raw
iptables -N VALVE -t raw

iptables -A PREROUTING -t raw -j R4P3_VALVE

iptables -A R4P3_VALVE -d r4p3 -t raw -m set ! --match-set valve_allowed src -j VALVE

iptables -A VALVE -t raw -p tcp -m multiport --dports 21,22,80,443,27015:27030,27036:27037 -j RETURN
iptables -A VALVE -t raw -p udp --sport 53 -m length --length 750:65535 -j DROP
iptables -A VALVE -t raw -p udp ! --sport 53 -m hashlimit --hashlimit-upto 7/sec --hashlimit-burst 10 --hashlimit-mode dstip --hashlimit-name r4p3_valve --hashlimit-htable-max 2000000 -m string --string "TSource" --algo kmp -j SET --add-set valve_allowed src
iptables -A VALVE -t raw -m set ! --match-set valve_allowed src -j DROP

echo "R4P3 VALVE RULE SET HAS BEEN SUCCESSFULLY DONE"

How to start?
Code:
chmod 777 r4p3-valve.sh && ./r4p3-valve.sh
 
大家好

我看到很多人对 Valve 的游戏(如 CSGO、RUST 等)有严重的问题......
如果您正在提供 VALVE GAMES 并且受到攻击,请使用下面的 iptables 规则集;

如果您没有 IPTABLES 或 IPSET,或者您不确定是否有它们,请使用下面的命令行;

对于 CentOS:
代码:
yum install iptables && yum install ipset

对于 Ubuntu/Debian:
代码:
apt-get install iptables && apt-get install ipset

这是VALVE GAMES的iptables规则集(阅读脚本中的详细说明)
请将 bash 脚本放入名为 r4p3-valve.sh 的文件中;
Bash 脚本中有一个命令行“-d r4p3”,请将其更改为您的外部 IP 地址。例如:“-d 67.67.67.67”或其他任何名称。

重击:
[代码]#!/bin/bash
# Daniel Q. - Nature N Moon - Valve DDOS 防护 - R4P3.NET
# 使用此命令行“chmod 777 r4p3-valve.sh && ./r4p3-valve.sh”
# IPTABLES 脚本由 Natuere N Moon 在 R4P3.NET 中创建,用于保持 Valve 服务器正常运行
# 你的 SSH 端口必须是 22
# 你的 Web 应用程序必须是 80 或 443
# 文件传输端口:21
# bash 脚本中有一个命令行“-d r4p3”,请将其更改为您的外部 IP 地址。例如:“-d 34.34.34.34”或其他任何名称。

echo“R4P3阀门规则集已成功启动”
ipset 创建valve_allowed哈希:ip hashsize 2097152 maxelem 40000000 超时259200

iptables -N R4P3_VALVE -t raw
iptables -N VALVE -t raw

iptables -A PREROUTING -t raw -j R4P3_VALVE

iptables -A R4P3_VALVE -d r4p3 -t raw -m set !--match-setvalve_allowed src -j VALVE

iptables -A VALVE -t raw -p tcp -m multiport --dports 21,22,80,443,27015:27030,27036:27037 -j RETURN
iptables -A VALVE -t raw -p udp --sport 53 -m length --length 750:65535 -j DROP
iptables -A VALVE -t raw -p udp !--sport 53 -m hashlimit --hashlimit-upto 7/sec --hashlimit-burst 10 --hashlimit-mode dstip --hashlimit-name r4p3_valve --hashlimit-htable-max 2000000 -m string --string "TSource" --algo kmp -j SET --add-set Valve_allowed SRC
iptables -A VALVE -t raw -m set !--match-setvalve_allowed src -j DROP

echo“R4P3阀门规则设置已成功完成”[/CODE]

如何开始?
代码:
chmod 777 r4p3-valve.sh && ./r4p3-valve.sh
666
 
Top Bottom