Search Posts on Binpipe Blog

Limit Bandwidth Using IPTABLES

Many people might not have gauged the power of IPTABLES!

One of the nice features is that you can use it to limit the bandwidth of outbound traffic going through this firewall. (Say you have a windows network and this Linux machine is the gateway and you want to limit bandwidth of a particular machine using iptables.)
You will realise that most software firewalls like Untangle or Smoothwall don't provide the feature of bandwidth quota control in their open source versions. So fear not, heres the way to go!

To limit Bandwidth Quota (The below example will allot within 2GB max usage):

iptables -I FORWARD 5  -s <SOURCEIP> -p tcp -m quota –quota 2147483648 -j ACCEPT
iptables -I FORWARD 6  -s <SOURCEIP>  -j DROP


  1. Good day! Do you use Twitter? I'd like to follow you if that would be okay. I'm definitely enjoying your blog and look
    forward to new updates.

    Feel free to visit my web-site - healthy diet plans
    Also see my website :: safe diets

  2. Great post. I was checking continuously this weblog and I am
    impressed! Very helpful info specifically the last phase
    :) I deal with such information a lot. I used to be looking for this certain info
    for a long time. Thanks and best of luck.

    Here is my web site ... More Bonuses

  3. Fantastic goods from you, man. I have understand your stuff previous to
    and you are just extremely wonderful. I actually like what you have acquired here, really like what you're saying and the way in which you say it. You make it enjoyable and you still care for to keep it wise. I can't wait to read far more from you.
    This is actually a great website.

    Feel free to visit my page: my blog

  4. Cắt bao quy đầu thẩm mỹ không đɑu là một tһủ
    thuật nhỏ khi nam giớі mắc bao quy đầu ɗài - bao quy đầu һẹp - bao quy đầu ngẹt - һoặc viêm bao quy đầu.
    Nhận tư vấn mіễn phí từ chuyên gia của
    Đa Khoa Quốc tế HCM tại đây :

  5. Wow, wonderful blog layout! How long have you been blogging for?
    you make bllogging look easy. The overall look of your web site
    is magnificent, let alone the content!

  6. Keep on writing, great job!

  7. Right noow it seems like BlogEngine is the preferred bloggijng platform ouut there right now.
    (from what I've read) Is that what you are using on your blog?

  8. I love your blog.. very nice colors & theme. Did you design this
    website yourself or did you hire someone to do it for you? Plz reply as I'm loooking to construct my own blog and would like to know where u goot tis from.

    thank you

  9. Hi, I do thіnk thiѕ is an excellent blog.
    I stumbledupon іt ;) I'm goіng to revisit օnce agaіn sincе i have saved as ɑ favorite
    іt. Money and freedom іs tһe greatеst ԝay to cһange, maу
    yоu be rich and continue to guide othеrs.

  10. Great post. I was checking continuously this blog and I am impressed!
    Very useful information specifically the last part :) I care for such info much.

    I was seeking this particular information for a very long
    time. Thank you and best of luck.


Hi, Leave a comment here and one of the binary piper's will reply soon :)