{"id":13772621,"url":"https://github.com/FiloSottile/otherport","last_synced_at":"2025-05-11T05:33:08.210Z","repository":{"id":65984858,"uuid":"47337802","full_name":"FiloSottile/otherport","owner":"FiloSottile","description":"LD_PRELOAD hack to redirect connections to other ports","archived":false,"fork":false,"pushed_at":"2015-12-03T16:58:50.000Z","size":4,"stargazers_count":43,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T00:38:54.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FiloSottile.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}},"created_at":"2015-12-03T14:37:58.000Z","updated_at":"2025-02-10T02:27:19.000Z","dependencies_parsed_at":"2023-02-19T18:15:56.059Z","dependency_job_id":null,"html_url":"https://github.com/FiloSottile/otherport","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/FiloSottile%2Fotherport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fotherport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fotherport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FiloSottile%2Fotherport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FiloSottile","download_url":"https://codeload.github.com/FiloSottile/otherport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523693,"owners_count":21921815,"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-08-03T17:01:06.326Z","updated_at":"2025-05-11T05:33:07.976Z","avatar_url":"https://github.com/FiloSottile.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# otherport\n\nLD_PRELOAD hack to redirect connections to other ports. When started with *otherport*, binaries will believe they are connecting to OLD_PORT, while actually connecting to NEW_PORT.\n\nCurrently it rewrites only `sendto` and `recvfrom`.\n\n## Usage\n\n```\n$ make\n$ OLD_PORT=53 NEW_PORT=10053 LD_PRELOAD=$PWD/otherport.so ...\n```\n\n**Note**: all packets received on NEW_PORT will be rewritten to look like they were received from OLD_PORT, so NEW_PORT becomes effectively unusable.\n\n## Example\n\nFor example, it lets you test DNS resolvers against servers running on high ports instead of port 53.\n\n```\n$ OLD_PORT=53 NEW_PORT=10053 LD_PRELOAD=$PWD/otherport.so unbound-host google.com\n```\n\nIn this case, `unbound-host` will transparently connect to all DNS servers on the port 10053, allowing root-less tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFiloSottile%2Fotherport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFiloSottile%2Fotherport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFiloSottile%2Fotherport/lists"}