Raised This Month: $51 Target: $400
 12% 

Hosting own CS:GO servers - DDoS Protection help


Post New Thread Reply   
 
Thread Tools Display Modes
OSWO
Senior Member
Join Date: Jul 2015
Location: United Kingdom, London
Old 03-16-2017 , 14:32   Re: Hosting own CS:GO servers - DDoS Protection help
Reply With Quote #11

Yes, that's for iptables, if you're using ubuntu with ufw, then i have no clue what the setup is.
__________________
SourceTimer | WeaponSkins++ | BasePlugins++ https://github.com/OSCAR-WOS
OSWO is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 03-16-2017 , 15:38   Re: Hosting own CS:GO servers - DDoS Protection help
Reply With Quote #12

Quote:
Originally Posted by OSWO View Post
Yes, that's for iptables, if you're using ubuntu with ufw, then i have no clue what the setup is.
I'm using IpTables with Ubuntu. So it should work?
Nexicon is offline
balonfx
AlliedModders Donor
Join Date: Dec 2013
Location: New Haven, CT
Old 03-16-2017 , 16:47   Re: Hosting own CS:GO servers - DDoS Protection help
Reply With Quote #13

Quote:
Originally Posted by Nexicon View Post
I'm using IpTables with Ubuntu. So it should work?
Yes create a file like /etc/iptables.firewall.rules and ensure you run iptables-restore < /etc/itpables.firewall.rules from there.

Also on startup create something such as: /etc/network/if-pre-up.d/iptables
Code:
#!/bin/sh
/sbin/iptables-restore < /etc/iptables.firewall.rules
This'll ensure on system startup you will restore these rules into your system. (Or whenever networking restarts)
__________________
balonfx is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 03-16-2017 , 17:47   Re: Hosting own CS:GO servers - DDoS Protection help
Reply With Quote #14

Quote:
Originally Posted by balonfx View Post
Yes create a file like /etc/iptables.firewall.rules and ensure you run iptables-restore < /etc/itpables.firewall.rules from there.

Also on startup create something such as: /etc/network/if-pre-up.d/iptables
Code:
#!/bin/sh
/sbin/iptables-restore < /etc/iptables.firewall.rules
This'll ensure on system startup you will restore these rules into your system. (Or whenever networking restarts)
Thanks for the help! I created a file with nano /etc/iptables.firewall.rules

And just type this inside the file and than
Code:
-A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --set --name DEFAULT --rsource
-A INPUT -p udp -m udp --dport 27015 -m state --state NEW -m recent --update --seconds 60 --hitcount 10 --name DEFAULT --rsource -j DROP
Code:
= #!/bin/sh
/sbin/iptables-restore < /etc/iptables.firewall.rules
Btw, i can't find iptables in /etc/network/if-pre-up.d/iptables or anywhere but i know its installed so i might need to look for it.
And yes, i'm new to Linux but i'm learning

Last edited by Nexicon; 03-16-2017 at 17:57.
Nexicon is offline
Nexicon
Senior Member
Join Date: Feb 2017
Old 03-19-2017 , 21:39   Re: Hosting own CS:GO servers - DDoS Protection help
Reply With Quote #15

Quote:
Originally Posted by balonfx View Post
Yes create a file like /etc/iptables.firewall.rules and ensure you run iptables-restore < /etc/itpables.firewall.rules from there.

Also on startup create something such as: /etc/network/if-pre-up.d/iptables
Code:
#!/bin/sh
/sbin/iptables-restore < /etc/iptables.firewall.rules
This'll ensure on system startup you will restore these rules into your system. (Or whenever networking restarts)
Thanks!

My server is not going down anymore when it get VSE DDoS Attack but it wont stay online on steam browser. Any idea what to do?
Nexicon is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode