Giter VIP home page Giter VIP logo

upload-traffic-generator's Introduction

Network Upload Traffic Generator

This project is designed to generate simulated upload traffic for your server, based on your server's download activity. This is particularly useful for Iranian data centers, which require a 10x higher upload rate compared to the download rate to avoid bandwidth limitations. By using this project, you can circumvent this rule, as it creates simulated yet valid traffic using speedtest.net servers located within Iran.

❌ Please note: This project is currently in its beta stage and is intended for testing purposes only! ❌

⭐ If you find this project useful, please consider giving it a star! ⭐

Installation on Ubuntu/Debian

Follow these steps to install the necessary software and packages:

  1. Install software requirements:
apt update && apt install -y curl git nano python3 python3-pip net-tools sudo
  1. Install speedtest-cli:
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest
  1. Install the required Python packages:
pip install psutil pycurl requests

or

pip install psutil pycurl requests --break-system-packages
  1. Download the project:
git clone https://github.com/masterking32/upload-traffic-generator
cd upload-traffic-generator
  1. Identify your network adapter name using the ifconfig command. Then, open main.py with an editor (like nano), find the NETWORK_ADAPTER line, and replace it with your network adapter name. For example: NETWORK_ADAPTER = "eth0".

  2. Run Project:

python3 ./main.py

Running as a Linux Service

If you want to run this project as a service on Ubuntu, which will allow it to automatically start on boot and restart if it crashes, follow these steps:

  1. Create a new service file:
sudo nano /etc/systemd/system/upload-traffic-generator.service
  1. Add the following content to the file, replacing /path/to/your/project with the actual path to your project:
[Unit]
Description=Upload Traffic Generator
Documentation=https://masterking32.com
After=network.target

[Service]
ExecStart=/usr/bin/python3 /path/to/your/project/main.py
Restart=always
User=root
Environment=PATH=/usr/bin:/usr/local/bin
WorkingDirectory=/path/to/your/

[Install]
WantedBy=multi-user.target
  1. Enable the service to start on boot:
sudo systemctl enable upload-traffic-generator
  1. Start the service:
sudo systemctl start upload-traffic-generator

You can check the status of the service with:

sudo systemctl status upload-traffic-generator

Developed By MasterkinG32

upload-traffic-generator's People

Contributors

masterking32 avatar

Stargazers

 avatar  avatar  avatar  avatar  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.