Giter Site home page Giter Site logo

icase / openvz-network-shaper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fastvpseestiou/openvz-network-shaper

0.0 1.0 0.0 166 KB

Network bandwidth shaper for OpenVZ/PCS/Virtuozzo with IPv6 and hash filter features

License: GNU General Public License v2.0

Perl 100.00%

openvz-network-shaper's Introduction

This script can restrict both incoming and outgoing speed for OpenVZ (OpenVZ 2.6.18 and 2.6.32 supported) containters and provide IPv4 and IPv6 support.

Author: Pavel Odintsov / pavel.odintsov [at] gmail.com

Compatilbility:

  • Parallels Virtuozzo
  • Parallels Cloud Server
  • OpenVZ/RHEL5 2.6.18
  • OpenVZ/RHEL6 2.6.32

Features:

  • venet support
  • Rock stable, tested very thoroughly for many years
  • Tc and HTB based
  • Complete IPv4 and IPv6 traffic shaping
  • Very fast hash based filtering rules (only 2 lookups for thousands of filters)
  • Incoming and outgoing traffic shaping (please be very careful with INCOMING shaping feature!)

FAQ

  • What license? GPLv2 (please be careful because we changed license at 10 Nov 2014)
  • Do you have support for multiple IPs per containter? Yes!
  • Do you have support for IPv6? Yes, we have it!
  • Do you have veth support? Unfortunately, not because IP configuration for veth is not standard.
  • How I can manage speed for different CT? You need change only one Perl function.

Installing

  • Install required Perl module: yum install -y perl-Net-CIDR-Lite
  • Put fastvps_openvz_shaper.pl into PATH folder (e.g. /usr/bin)
  • Put fastvps_openvz_shaper_config to /etc/ folder (it's config with some logic)
  • Change Perl subroutine in fastvps_openvz_shaper_config to your speed determining logic (by default all CT shaped to 30mbps)
  • Add fastvps_openvz_shaper.pl to cron for run every 10-60 minutes.

Please be careful! We can't restrict incoming speed from external Internet to customer but we can slow down speed from hardware node to customer.

openvz-network-shaper's People

Contributors

pavel-odintsov avatar vps2fast avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.