Solved Plugin codes needed?

XTreme killer

Active member
RIS Admin
Content Writer

My base plugin that i am going to use is the above one.

I am making a plugin such that whenever someone ddos a server, any client in server can type !ddos and then the plugin automatically detects the attacker's ip through dosp_status in server console and ban him automatically.

I am lacking a code that will execute dosp_status and copy the output into a character

I have tried command ServerCommandEx but was unable to do so.
 
Last edited by a moderator:

Vertigo

⍥????
Staff member
Administrator
Use this to simply block any single IP DoS attack :
Code:
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --set --name DEFAULT --rsource
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --update --seconds 20 --hitcount 20 --name DEFAULT --rsource -j DROP
Execute these commands on putty one by one. Not game server console.
Replace 27015 in above commands with your port of the server.
Once you do this, no need of that plugin you are looking for.[/code]
 

XTreme killer

Active member
RIS Admin
Content Writer
Use this to simply block any single IP DoS attack :
Code:
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --set --name DEFAULT --rsource
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --update --seconds 20 --hitcount 20 --name DEFAULT --rsource -j DROP
Execute these commands on putty one by one. Not game server console.
Replace 27015 in above commands with your port of the server.
Once you do this, no need of that plugin you are looking for.[/code]
Can i type this both cammands in server.cfg
 

Vertigo

⍥????
Staff member
Administrator
As I said these are not gameserver commands.
So you cannot use them in cfg files.

So you need to execute them on putty.
 

XTreme killer

Active member
RIS Admin
Content Writer
Use this to simply block any single IP DoS attack :
Code:
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --set --name DEFAULT --rsource
iptables -A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --update --seconds 20 --hitcount 20 --name DEFAULT --rsource -j DROP
Execute these commands on putty one by one. Not game server console.
Replace 27015 in above commands with your port of the server.
Once you do this, no need of that plugin you are looking for.[/code]
Can I use this along with your codes?
Code:
iptables -A INPUT -p udp -m state --state ESTABLISH --name DEFAULT -j ACCEPT
so as to keep connected clients responses accepted.
 
Last edited:

Vertigo

⍥????
Staff member
Administrator
This rule is already there by default. No need to add again.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock