#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    162
    Rep Power
    12

    Limit bandwidth by IP or host?


    Is it possible to limit bandwith to a specified bytes/second for a specific IP address and/or host name?

    If so, how would I go about doing this?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    It depends on your OS.

    With FreeBSD eg. you can setup a queue for a specific IP and limit bandwidth on that using ipfw.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    162
    Rep Power
    12
    I'm on RH9... I'll look into ipfw.

    Thanks
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    "ipchains" for kernel 2.2.x or "iptables" for kernel 2.4.x then...

    Not sure if any and which of these would support that thou...

    hth,
    M.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    162
    Rep Power
    12
    I've used iptables to ban the IP already, but I want to enable it again with a limited bandwidth.

    I've just realised that I didn't mention this was restricting bandwidth on an Apache server =P... I'm trying a 3rd-party module called mod_bandwidth but if anyone knows a better solution, let me know.

IMN logo majestic logo threadwatch logo seochat tools logo