{"id":42307754,"url":"https://github.com/redhat-nfvpe/koko","last_synced_at":"2026-02-21T15:20:18.435Z","repository":{"id":58953812,"uuid":"83762298","full_name":"redhat-nfvpe/koko","owner":"redhat-nfvpe","description":"Connect containers as point-to-point connection, using veth/vxlan/vlan/macvlan","archived":false,"fork":false,"pushed_at":"2025-08-14T14:48:57.000Z","size":19106,"stargazers_count":115,"open_issues_count":11,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-02-06T21:44:35.330Z","etag":null,"topics":["docker","ip-netns","macvlan","namespace","veth","vlan","vxlan"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-nfvpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-03T05:47:31.000Z","updated_at":"2025-12-07T21:01:07.000Z","dependencies_parsed_at":"2024-06-18T18:44:27.548Z","dependency_job_id":null,"html_url":"https://github.com/redhat-nfvpe/koko","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-nfvpe/koko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-nfvpe%2Fkoko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-nfvpe%2Fkoko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-nfvpe%2Fkoko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-nfvpe%2Fkoko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-nfvpe","download_url":"https://codeload.github.com/redhat-nfvpe/koko/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-nfvpe%2Fkoko/sbom","scorecard":{"id":767743,"data":{"date":"2025-08-11","repo":{"name":"github.com/redhat-nfvpe/koko","commit":"ec78eb8730bff4d8d91be8a87b0f777c9e5f0771"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go-build-test.yml:1","Warn: no topLevel permission defined: .github/workflows/go-release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-build-test.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/redhat-nfvpe/koko/go-build-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-build-test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/redhat-nfvpe/koko/go-build-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/redhat-nfvpe/koko/go-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/redhat-nfvpe/koko/go-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go-release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/redhat-nfvpe/koko/go-release.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.83 not signed: https://api.github.com/repos/redhat-nfvpe/koko/releases/41500359","Warn: release artifact v0.82 not signed: https://api.github.com/repos/redhat-nfvpe/koko/releases/23473382","Warn: release artifact v0.81 not signed: https://api.github.com/repos/redhat-nfvpe/koko/releases/13869114","Warn: release artifact v0.8 not signed: https://api.github.com/repos/redhat-nfvpe/koko/releases/13780872","Warn: release artifact v0.7 not signed: https://api.github.com/repos/redhat-nfvpe/koko/releases/12303315","Warn: release artifact v0.83 does not have provenance: https://api.github.com/repos/redhat-nfvpe/koko/releases/41500359","Warn: release artifact v0.82 does not have provenance: https://api.github.com/repos/redhat-nfvpe/koko/releases/23473382","Warn: release artifact v0.81 does not have provenance: https://api.github.com/repos/redhat-nfvpe/koko/releases/13869114","Warn: release artifact v0.8 does not have provenance: https://api.github.com/repos/redhat-nfvpe/koko/releases/13780872","Warn: release artifact v0.7 does not have provenance: https://api.github.com/repos/redhat-nfvpe/koko/releases/12303315"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3829 / GHSA-4vq8-7jfc-9cvp","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T01:19:31.884Z","repository_id":58953812,"created_at":"2025-08-23T01:19:31.884Z","updated_at":"2025-08-23T01:19:31.884Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29684396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T14:31:22.911Z","status":"ssl_error","status_checked_at":"2026-02-21T14:31:22.570Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","ip-netns","macvlan","namespace","veth","vlan","vxlan"],"created_at":"2026-01-27T11:12:46.284Z","updated_at":"2026-02-21T15:20:18.411Z","avatar_url":"https://github.com/redhat-nfvpe.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# koko: Container connector (for chaining)\n\n[![Build Status](https://travis-ci.org/redhat-nfvpe/koko.svg?branch=master)](https://travis-ci.org/redhat-nfvpe/koko) [![Go Report Card](https://goreportcard.com/badge/github.com/redhat-nfvpe/koko)](https://goreportcard.com/report/github.com/redhat-nfvpe/koko) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n![Logo1](https://raw.githubusercontent.com/wiki/redhat-nfvpe/koko/images/logo_candidate/koko_logo1.png)\n\n# What is 'koko'?\n\n`koko` is a simple tool which connects between Docker containers/linux netns processes with veth devices/vxlan\nof linux kernel. Using `koko`, you can simply make point-to-point connection for containers without linux bridges.\n\n![Koko's abstruct design](https://raw.githubusercontent.com/wiki/redhat-nfvpe/koko/images/koko.png)\n\n# Support Container Type and Interfaces\n\n`koko` supports following container:\n\n- Docker\n- Linux netns namespace (i.e. 'ip netns' or see 'man ip-netns' for its detail)\n\n`koko` supports following linux interface to connect above:\n\n- veth: Virtual Ethernet Interface\n- vxlan: Virtual eXtensible Local Area Network\n\n# Get Releases\nSee [releases page](https://github.com/redhat-nfvpe/koko/releases).\n\n# Build Requirements\n- golang 1.7 or later\n\n# Build\n\n`koko` is written in go, so following commands makes `koko` single binary. Build and put it in your container host.\n\n    go get github.com/redhat-nfvpe/koko\n\n# Syntax\n\n`koko` takes two arguments: two endpoints of container and `koko` connects both.\n`koko` supports veth for two containers in one host and vxlan for two containers in separate host.\n\n## Connecting containers in container host using veth\n\n    ./koko {-c \u003clinkname\u003e |\n            -d \u003ccontainer\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...] |\n            -n \u003cnetns name\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...]|\n            -p \u003cpid\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...]|\n            -c \u003clinkname\u003e }\n           {-d \u003ccontainer\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...] |\n            -n \u003cnetns name\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...]|\n            -p \u003cpid\u003e,\u003clinkname\u003e[,\u003cIP addr\u003e/\u003cprefixlen\u003e,...]|\n            -c \u003clinkname\u003e }\n\n## Connecting containers using vxlan (interconnecting container hosts)\n\nConnecting containers which are in separate hosts with vxlan. Following command makes vxlan interface \nand put this interface into given container with/without IP address.\n\n    ./koko {-c \u003clinkname\u003e |\n            -d \u003ccontainer\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] |\n            -n \u003cnetns name\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...]|\n            -p \u003cpid\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] }\n            -x \u003cparent interface\u003e,\u003cremote endpoint IP addr\u003e,\u003cvxlan id\u003e\n    \u003cIP/mirror\u003e = {\u003cIP addr\u003e/\u003cprefixlen\u003e |\n                    mirror:{ingress|egress|both},\u003cmirror IF\u003e}\n\n## Connecting containers using VLAN \n\nConnecting containers which are in separate hosts with vlan. Following command makes vlan interface \nand put this interface into given container with/without IP address.\n\n    ./koko {-c \u003clinkname\u003e |\n            -d \u003ccontainer\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] |\n            -n \u003cnetns name\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...]|\n            -p \u003cpid\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] }\n            -V \u003cparent interface\u003e,\u003cvlan id\u003e\n    \u003cIP/mirror\u003e = {\u003cIP addr\u003e/\u003cprefixlen\u003e |\n                    mirror:{ingress|egress|both},\u003cmirror IF\u003e}\n\n## Connecting containers using macvlan\n\nConnecting containers which are in separate hosts with macvlan. Following command makes macvlan interface \nand put this interface into given container with/without IP address.\n\n    ./koko {-c \u003clinkname\u003e |\n            -d \u003ccontainer\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] |\n            -n \u003cnetns name\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...]|\n            -p \u003cpid\u003e,\u003clinkname\u003e[,\u003cIP/mirror\u003e,...] }\n            -M \u003cparent interface\u003e,\u003cmacvlan mode, {default|private|vepa|bridge|passthru}\u003e\n    \u003cIP/mirror\u003e = {\u003cIP addr\u003e/\u003cprefixlen\u003e |\n                    mirror:{ingress|egress|both},\u003cmirror IF\u003e}\n\n## Delete link in containers\n\n`koko -D` and `koko -N` deletes veth interface or vxlan interface. In case of veth, peering interface is also\nremoved in this command.\n\n    ./koko {-D \u003ccontainer\u003e,\u003clinkname\u003e | -N \u003cnetns name\u003e,\u003clinkname\u003e }\n\n## Note (for egress mirroring)\nIn case of 'egress' (and 'both'), the target interface (i.e. \u003cmirror IF\u003e) needs to be configured to have a queue because veth does not have tx queue in default (see https://github.com/moby/moby/issues/33162 for the details).\n`ip link set \u003cmirror IF\u003e qlen \u003cqueue length\u003e` sets queue length to corresponding veth device.\n\n## Command option summary\n\n- `-c` is to create veth and put it in current namespace\n- `-C` is to delete veth in current namespace\n- `-d` is to create interface and put it in docker container namespace\n- `-D` is to delete interface of docker container namespace\n- `-e` is to create interface and put it in cri-o container namespace\n- `-E` is to delete interface of cri-o container namespace\n- `-n` is to create interface and put it in linux netns namespace\n- `-N` is to delete interface of linux netns namespace\n- `-p` is to create interface and put it in pid's netns namespace\n- `-P` is to delete interface of pid's netns namespace\n- `-X` is to create vxlan interface\n- `-V` is to create vlan interface\n- `-M` is to create macvlan interface\n- `-h` is to show help\n- `-v` is to show version\n\n## Printing help\n\n    ./koko -h\n\n# Usage\nPlease see [Examples](https://github.com/redhat-nfvpe/koko/wiki/Examples) in Wiki.\n\n## Example\n\n    # connect between docker containers with IPv4 address\n    sudo ./koko -d centos1,link1,192.168.1.1/24 -d centos2,link2,192.168.1.2/24\n    # connect between docker containers with IPv6 address\n    sudo ./koko -d centos1,link1,2001:DB8::1/64 -d centos2,link2,2001:DB8::2/64\n    # connect between docker containers with IPv4/IPv6 address\n    sudo ./koko -d centos1,link1,192.168.1.1/24,2001:DB8::1/64 -d centos2,link2,192.168.1.2/24,2001:DB8::2/64\n    # connect between netns namespaces\n    sudo ./koko -n testns1,link1,192.168.1.1/24 -n testns2,link2,192.168.1.2/24\n    # connect between docker container and netns namespace\n    sudo ./koko -d centos1,link1,192.168.1.1/24 -n testns2,link2,192.168.1.2/24\n    # create vxlan interface and put it into docker container\n    sudo ./koko -d centos1,link1,192.168.1.1/24 -x eth1,10.1.1.1,1\n\n# Todo\n- Document\n\n# Authors\n- Tomofumi Hayashi (s1061123)\n- Doug Smith (dougbtv)\n\n# Contributers\n- Antonio Ojea (aojea)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-nfvpe%2Fkoko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-nfvpe%2Fkoko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-nfvpe%2Fkoko/lists"}