{"id":19489960,"url":"https://github.com/dvasanth/portforwarding-over-libp2p-rust","last_synced_at":"2026-05-16T03:34:40.209Z","repository":{"id":192369141,"uuid":"686596038","full_name":"dvasanth/portforwarding-over-libp2p-rust","owner":"dvasanth","description":"Port forwarding over libp2p in rust","archived":false,"fork":false,"pushed_at":"2023-09-03T10:40:11.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T08:42:45.454Z","etag":null,"topics":["gossip-protocol","libp2p","libp2p-pubsub"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dvasanth.png","metadata":{"files":{"readme":"README.md","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,"governance":null}},"created_at":"2023-09-03T10:27:02.000Z","updated_at":"2024-08-07T07:00:32.000Z","dependencies_parsed_at":"2023-09-04T13:28:31.168Z","dependency_job_id":"96b041d8-aece-4262-ad3e-69d297d8df44","html_url":"https://github.com/dvasanth/portforwarding-over-libp2p-rust","commit_stats":null,"previous_names":["dvasanth/portforwarding-over-libp2p-rust"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvasanth%2Fportforwarding-over-libp2p-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvasanth%2Fportforwarding-over-libp2p-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvasanth%2Fportforwarding-over-libp2p-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvasanth%2Fportforwarding-over-libp2p-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvasanth","download_url":"https://codeload.github.com/dvasanth/portforwarding-over-libp2p-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240732044,"owners_count":19848622,"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":["gossip-protocol","libp2p","libp2p-pubsub"],"created_at":"2024-11-10T21:10:34.594Z","updated_at":"2026-05-16T03:34:40.172Z","avatar_url":"https://github.com/dvasanth.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Portforward  over libp2p (supports HTTP/HTTPS tunneling)\n\nThis example is extension over the original libp2p http-proxy sample to support HTTP/HTTPS tunneling over internet:\n\n![p2pproxy](https://user-images.githubusercontent.com/9625669/198875277-c957ac53-d8f4-4fa7-919c-e0659e6fc9ca.png)\n\n\nThis program tunnels HTTP/HTTPS traffic over libp2p between two machines. First machine is the sharer to which the HTTP/HTTPS traffic is sent from\nsecond machine. First is called as local \u0026 second one as the remote here. Local machine will acts as proxy server to the remote machine.\nUsing this program, you can access your home HTTP servers from a remote machine. You can also access internet using your hosted VPS server.\n\n## Build\n\nFrom the  directory run the following:\n\n```\n\u003e cargo build\n```\n\n## Usage\n\nFirst run the program as follows to the machine where you need to run the proxy server (first machine). \n\n```sh\ncargo run -- --forwarder\n```\n\nThen run the program in second machine which will need to use the proxy server in above program. Wait for the machine to show up \"Found other peer, proxy active\" message before browsing internet over this channel.\n\n```\n\u003ecargo run -- --topic \u003ctopic-id-from-first-machine\u003e\n```\n\nNow you can see the proxy setting of your browser to 127.0.0.1:8080. All the requests will be sent to first machine \u0026 it will send back the response.\n\n## Security\nUsing a randomly generated UUID as a topic name so that it is not easily accesible to others.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvasanth%2Fportforwarding-over-libp2p-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvasanth%2Fportforwarding-over-libp2p-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvasanth%2Fportforwarding-over-libp2p-rust/lists"}