{"id":18011074,"url":"https://github.com/regit/lagfactory","last_synced_at":"2025-03-26T14:32:22.695Z","repository":{"id":141524504,"uuid":"2093649","full_name":"regit/lagfactory","owner":"regit","description":"Bash script that uses Netem to simulate delay and packet loss to a given target","archived":false,"fork":false,"pushed_at":"2013-09-19T17:54:32.000Z","size":116,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T23:34:01.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-07-23T16:20:14.000Z","updated_at":"2024-06-23T01:44:17.000Z","dependencies_parsed_at":"2023-03-13T10:32:53.467Z","dependency_job_id":null,"html_url":"https://github.com/regit/lagfactory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Flagfactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Flagfactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Flagfactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regit%2Flagfactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regit","download_url":"https://codeload.github.com/regit/lagfactory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245670949,"owners_count":20653457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T02:16:22.329Z","updated_at":"2025-03-26T14:32:22.406Z","avatar_url":"https://github.com/regit.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nLagFactory script\n=================\n\nGoal\n====\n\nThis bash script uses `Netem \u003chttp://www.linux-foundation.org/en/Net:Netem\u003e`_ to simulate delay and packet loss to a given target.\n\nUsing it\n========\n\n\nYou need first to edit parameters at the start of the script to specify the network interfaces and target ::\n\n\t IFACE=\"eth0 eth2\" # Input and output interface to simulate lag in INPUT and OUTPUT\n\t TARGET=\"192.168.1.0/24\" # Host or network to apply lag on\n\n\nThen, you will simply need to run as root something like ::\n\n\t lagfactory.sh start 4000 2\n\t  DELAY : 4000 ms\n\t  LOSS : 2%\n \nThis will simulate a delay of 4 sec (plus or minus 2 sec) for all packets going to ''192.168.1.0/24'' via ''eth0'' and coming back from ''192.168.1.0/24'' via ''eth2''. There is also a 2 percent packet loss on these packets.\n\n\nTo ease administrator work, SSH trafic is not affected by this modification of network property.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregit%2Flagfactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregit%2Flagfactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregit%2Flagfactory/lists"}