Results 1 to 3 of 3

Thread: Bandwidth Limit with Iptables

  1. #1
    Junior Member
    Join Date
    Dec 2008
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Bandwidth Limit with Iptables

    Dear Sir

    I have 1024/512 bandwidth

    so I want to litmit bandwidth with port.
    want to use 512/256 with port 80
    want to use 256/128 with port 443
    want to use 256/128 with other ports

    can I setup with iptables ?
    Pls instruction to me

    thanks

  2. #2
    Senior Member
    Join Date
    Jul 2006
    Location
    India, Delhi
    Posts
    208
    Thanks
    3
    Thanked 1 Time in 1 Post
    Rep Power
    8

    Default

    For this task

    Put ur webserver behind squid proxy and create delay pools for them

    and from Iptables use this so nobody will try to cheat and use a proxy server other than ours. Public proxies usually run on 3128 and 8080 port

    Quote Originally Posted by kasimani View Post
    /sbin/iptables -A FORWARD -s ! 192.168.1.1 -d ! 192.168.1.1 --dport 3128 -p TCP -j DROP

    /sbin/iptables -A FORWARD -s ! 192.168.1.1 -d ! 192.168.1.1 --dport 8080 -p TCP -j DROP
    must also make sure that nobody will try to cheat and connect to the internet directly
    Quote Originally Posted by kasimani View Post
    /sbin/iptables -A FORWARD -s ! 192.168.1.1 -d ! 192.168.1.1 --dport 80 -p TCP -j DROP

    /sbin/iptables -A FORWARD -s ! 192.168.1.1 -d ! 192.168.1.1 --dport 443 -p TCP -j DROP
    Put all this in /etc/rc.d/rc.local

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,498
    Thanks
    17
    Thanked 789 Times in 507 Posts
    Rep Power
    10

    Default

    You can use various things to control bandwidth. Iptables itself can be used to throttle bandwidth. Checkout the following:

    1. Traffic Control HOWTO
    2. A Practical Guide to Linux Traffic Control
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Bandwidth limit based on MAC address
    By kasimani in forum Proxy Servers
    Replies: 0
    Last Post: 2nd May 2009, 12:22 PM
  2. Sendmail Outgoing Attachment Size limit.
    By nishith in forum Mail Servers
    Replies: 0
    Last Post: 15th December 2008, 10:04 AM
  3. Someone stole my bandwidth
    By laluvirtual in forum Networking, Firewalls and Security
    Replies: 1
    Last Post: 31st May 2008, 05:16 PM
  4. postfix rate limit
    By blackhat_hk in forum Mail Servers
    Replies: 3
    Last Post: 3rd May 2008, 07:57 PM
  5. Bandwidth monitoring
    By ssent12 in forum Computer Networking and Internet/broadband
    Replies: 2
    Last Post: 25th July 2007, 06:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •