Jump to content

A quick fix when under DDOS attack


Recommended Posts

A quick fix when under DDOS attack

 

A friend of mine asked me what he should do when experiencing a DDOS attack.

 

Well the excerpt itself would be long as on how to handle a DDOS attack, as each type of Denial of Service needs different handles… as experienced is a sys-admin, as throughout he/she would be able to handle the attack.

 

However, for all here is a simple straight forward methodology..

 

1) Find the IPs from which the SYN flood is coming from

 

and

 

2) Block those IPs

 

easy he?

 

So how do you do that on a linux machine?

 

Again, this is just a small excerpt

 

a simple command such as

view sourceprint?

1.netstat -n -p|grep SYN_REC | wc -l

 

would list all the active SYN_REC connections on the server… depending on the server’s size, 30 to 40 SYN_REC could be a sign of a DDOS attack.

 

Again, do not be fixed on numbers, different variant play when deciding to ring the DDOS emergency bell

view sourceprint?

1.netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F

 

will therefore list all the IPs that are maintaining the SYN_REC connections.

 

and why not, also add a uniq -c filter etc… and get fancier?

 

anyway.. once you decide an IP source is flooding your port, simply block it with an

view sourceprint?

1.iptables -I INPUT -s IP -j

cheers

 

i hope i help you cause i want to stop ddos attacks that kids doing them to have fun -.-

Link to comment
Share on other sites

yes is easy

 

Yeah, ban all the inet cafes from your server! Go on!

 

I've met many admins who think that limiting 20 conns/IP will save the world, but they don't know how stupid that sounds.

And don't forget that some ISPs use LAN strategies where they literally bind a city to an IP (they bind each customer to a static LAN IP). Ofc, it's not common in Greece, where ISPs act like yeah, we provide dynamic IPs, so we wont investigate any spam/dos/worm activities done by our customers and provide fake internet activity details to the law enforcement agencies.

Link to comment
Share on other sites

User is banned, u wont take answer from him

 

Although thread remains unlocked since it can help ppl, but it will stay outdated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • What unique features ? 
    • Welcome to SmurfsZone   Buy League of Legends accounts across all servers and jump straight into Ranked Games with amazing quality and support.   Why Choose SmurfsZone? 24/7 Instant Delivery: Get your full access LoL smurf account immediately. 100% Hand-Leveled: High-quality accounts leveled by hand. Versatile MMR Options: High MMR, Standard MMR, Fresh MMR (ARAMs), and Ranked accounts available. Valorant Accounts: Expand your gaming experience. Our Commitment to You: Unopened Loot: Customize your champion pool. Lifetime Warranty: Valid if you change the email, username, and password upon purchase. Password Changeable: Ensure your account's security. Full Recovery Information: Complete access to account recovery details. Unverified and Changeable Email: Easy to personalize and secure your account. Completely Unranked: Fresh start with no ranked history in any season. Responsive Customer Support: Our dedicated team is available to assist you 24/7.   Experience the best place to buy League of Legends accounts with exceptional quality and dedicated support. We're here for YOU!
    • Thanks! I'll take a second look and let you know if my implementation of the clearCircle() helps with the stuttering once I find time for some extensive testing.
    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
  • Topics

×
×
  • Create New...