Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default Prevent UDP flood DOS (outgoing!)

    What would be considered the normal Packet Per Second rate for traffic originating from a cpanel server to a specific single destination IP (end user)

    Recently had a script uploaded via a CMS exploit that was DOS'ing people with a UDP flood.

    I've since removed the script and also disabled the offending CMS so that the user can upload a clean copy and also ensure it's patched. but I'd like to try and take some measures to prevent such a thing occurring the future

    I'd also like to take some additional measures that minimise the impact should anyone else manage to do something similar, one of the things I was thinking of doing was limiting the UDP packetflow per destination

    I was thinking anything over X PPS gets dropped at the firewall before it even egresses my network but i'm not entirely sure what a resonable number for X should be.

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    57

    Default

    You can try to limit the outbound flow rate of UDP packets:

    /sbin/iptables -A OUTPUT -p udp -m state --state NEW -j ACCEPT
    /sbin/iptables -A OUTPUT -p udp -m limit --limit 100/s -j ACCEPT
    /sbin/iptables -A OUTPUT -p udp -j DROP

    (setting limits outbound UDP to 100 packets per second. This setting can interfere with applications which use UDP outbound traffic (if any))

    1000 per second would be a fairly high setting - more than enough for legit use, 100 is probably fine too. You can always adjust it if needed.

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default

    Quote Originally Posted by ne0shell View Post
    You can try to limit the outbound flow rate of UDP packets:

    /sbin/iptables -A OUTPUT -p udp -m state --state NEW -j ACCEPT
    /sbin/iptables -A OUTPUT -p udp -m limit --limit 100/s -j ACCEPT
    /sbin/iptables -A OUTPUT -p udp -j DROP

    (setting limits outbound UDP to 100 packets per second. This setting can interfere with applications which use UDP outbound traffic (if any))

    1000 per second would be a fairly high setting - more than enough for legit use, 100 is probably fine too. You can always adjust it if needed.
    Currently testing 100Packets per second per destination with a temporary burst of 500PPS allowed.

    Although I do have the capability to firewall on the Cpanel box I actually do the majority of the filtering prior to egress from my (albeit virtual) network.

    Hoping to get a 2nd physical box shortly in which case i'll probably actually buy a proper router but for a single server with relatively low traffic a Vitalized router works fine.

    Using a vitalized instance of RouterOS which handles my routed subnet and also does the filtering between the physical NIC and the VM's running on the server

  4. #4
    Member
    Join Date
    Jul 2009
    Posts
    72

    Default

    I recommend the csf firewall and cXs exploit scanner from configserver.com.
    Last edited by radeonpower; 06-09-2010 at 04:15 AM.

  5. #5
    Member
    Join Date
    Nov 2003
    Posts
    119

    Default

    Quote Originally Posted by radeonpower View Post
    I recommend the csf firewall and cXs exploit scanner from configserver.com.
    I have the firewall, as I tend to use the LFD component from it, although I prefer to set the bulk of my firewall rules on routerOS firewall as It's easier to manage.

  6. #6
    Member
    Join Date
    Nov 2007
    Posts
    865

    Arrow Re: Prevent UDP flood DOS (outgoing!)

    i have updated outbound traffic limit to 50 but still getting flood attack

    how to find this

    an apache script exploit, most commonly log.php, which is actually a
    remote udp flood script.

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Prevent UDP flood DOS (outgoing!)

    This might come in handy for you: ConfigServer eXploit Scanner (cxs)
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

Similar Threads & Tags
Similar threads

  1. Massive outgoing UDP traffic port 53
    By whplus in forum Security
    Replies: 1
    Last Post: 11-05-2010, 05:33 AM
  2. prevent flood email from localhost
    By wp11b in forum E-mail Discussions
    Replies: 0
    Last Post: 02-07-2010, 08:32 PM
  3. Flood UDP on port 53
    By danyb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-12-2009, 09:46 AM
  4. Cant Stop Udp.pl Flood Script!
    By bsasninja in forum Security
    Replies: 10
    Last Post: 09-08-2006, 11:19 AM
  5. How to stop / prevent DoS attacks
    By akhthar in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-01-2005, 10:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube