Author: spierzchala

  • Traffic Shaping with tc

    I have discovered a little secret of Linux today: tc. The Linux Advanced Routing & Traffic Control project (here) allows you to shape traffic in any way that you want. In most cases, it is used in a situation where a multi-homed Linux box is used as firewall/router.
    I have activated it on my Web server, limiting uplink/downlink speeds to 256kbps. I am using this in combination with the rate-limiting feature in iptables to control the morons. Limiting bandwidth to 256kbps leaves me with enough overhead to get in and control the machine, even when the morons think that they are flooding me with traffic.
    I really suggest that you look into this, especially if you are in a bandwidth-limited environment.


    Technorati: , , , ,

  • iTunes: It’s Really Broken

    The continuing sad tale of Apple’s attempt to integrate podcasts into iTunes continues — Geek News Central has more.
    I think that my desire for a Powerbook is decreasing the more I hear about Apple’s general stupidity regarding Web 2.0. It will take a long time for Apple to get their credibility back.


    Technorati: , ,

  • Today’s iptables FUN!

    Ok, after this morning’s DDoS, I started rummaging around for ways to limit the amount of hurt that my server would handle. And I found the limit function in iptables.

    /sbin/iptables -A INPUT -p tcp -d 10.125.1.250 \
          --dport 80 -m limit --limit 6/m --limit-burst 10 -i eth0 -j ACCEPT
    /sbin/iptables -A OUTPUT -p tcp -s 10.125.1.250 \
          --sport 80 -m limit --limit 6/m --limit-burst 10 -o eth0 -j ACCEPT

    This should help get some of the requests under control.
    Also, I discovered this interesting application called tc. Going to see how I can integrate this with some iptables rules.


    Technorati:

  • DDoS this morning

    This morning, my server was the victim of a sustained DDoS lasting approximately 45 minutes. The entire flow of traffic came from the usual group of trackback and comment spam morons.
    Now, the good news: b2evolution came through the event with flying colours. The antispam feature built into the product prevented ANY attempts by these morons at inserting comments and trackbacks from being successful.
    I have added one more layer filtering to handle these morons. Since they use such a limited number of keywords in their REFERER fields, I just wrote a mod_rewrite rule to send them off to my infamous TCP Port 9080.

    RewriteCond %{HTTP_REFERER} .*(pharmacy|poker|casino|blackjack|cialis|viagra| \
         porn|nude|girls|drugs|sex|animal|holdem| \
         stud|hydrocodone|vicodin|slut|anal|xanax|video| \
         oxycontin|russia|-online|online-).*
    RewriteRule ^.*$ http://www.newestindustry.org:9080/ [R,L,NS]

    This should deal with 90% of the morons. If I missed any keywords, drop me a comment.


    Technorati: , , , ,

  • MCI and Telephone Slamming

    I recently switched all of my phone services back to Verizon. Today, I got a phone call from my former provider, MCI.
    I have never experienced telephone slamming before, but “Tiffany Johnson” from MCI exposed me to the seedy side of the telephone market. I know why MCI is slamming departing customers: they need to get their customer count up before the acquisition by Verizon is completed.
    I have frozen my telephone provider. And MCI goes on my blacklist.


    Technorati: , ,

  • Getting what it deserves

    After 229 years, the United States is fixated on:

    1. Paris Hilton
    2. Britney Spears
    3. George Bush
    4. The Supreme Court
    5. The Ten Commandments

    Is this where the United States does a Pat O’Brien, and admits it drank and snorted too much the night before?


    Technorati: , , , , ,

  • New Firefox Evangelist

    "Firefox?" The Rabbi stops and thinks for a minute, rubbing his beard. "Ah yes! The one that blocks all the schmutz."

    Read more here. Via David Parmet.


    Technorati:

  • XML-RPC Vulnerability and b2evolution

    I think that I am protected from the PHP XML-RPC vulnerability discovered by Secunia. However, the team at b2evolution have made only a cursory attempt to explain what is happening.
    I have updated the xmlrpc.php file on my serv to the latest CVS version and also updated the PHP XML-RPC library in PEAR.
    Looking forward to a clearer posting on why b2evolution is NOT vulnerable to this type of attack.


    Technorati: , , ,

  • STEEL CAGE MATCH! Dunkin v. Tim!

    I guess that Tim (Dead Hockey Player) Horton’s Doughnuts is making an incursion into the US market. This out to be interesting. Last time something like this happened, Washington was burned.
    Actually, I know that other Canadian retailers (most notably Canadian Tire) have tried to move south, only to be beaten back at the border. My suggestion to THD is to emphasize the higher quality food, and downplay the founder’s tragic demise.
    More on Tim Horton.
    Via Mutually Inclusive PR

  • July 4th

    Happy Proclamation of the Bourgeois Revolutionary Manifesto Day
    Go blow something up! 🙂