{"id":16164284,"url":"https://github.com/troglobit/uredir","last_synced_at":"2025-03-16T10:30:39.904Z","repository":{"id":41132186,"uuid":"56446159","full_name":"troglobit/uredir","owner":"troglobit","description":"A UDP port redirector for UNIX","archived":false,"fork":false,"pushed_at":"2022-11-12T16:07:46.000Z","size":97,"stargazers_count":104,"open_issues_count":2,"forks_count":19,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-27T07:30:48.080Z","etag":null,"topics":["finit","inetd","redir","udp","udp-port-redirector","udp-redirect"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troglobit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-17T16:18:38.000Z","updated_at":"2025-02-25T13:58:17.000Z","dependencies_parsed_at":"2023-01-21T18:00:45.746Z","dependency_job_id":null,"html_url":"https://github.com/troglobit/uredir","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Furedir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Furedir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Furedir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Furedir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troglobit","download_url":"https://codeload.github.com/troglobit/uredir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809888,"owners_count":20351407,"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":["finit","inetd","redir","udp","udp-port-redirector","udp-redirect"],"created_at":"2024-10-10T02:46:04.237Z","updated_at":"2025-03-16T10:30:39.626Z","avatar_url":"https://github.com/troglobit.png","language":"C","readme":"UDP port redirector\n===================\n[![Badge][]][ISC] [![Travis Status][]][Travis]\n\n`uredir` is a small Linux daemon to redirect UDP connections.  It can be\nused to forward connections on small and embedded systems that do not\nhave (or want to use) iptables.\n\n`uredir` can be used with the built-in inetd service in [Finit][] to\nlisten for, e.g. SNMP connections, on some (safe) interfaces and forward\nto an SNMP daemon on loopback.\n\n- In normal mode it forwards packets to a given destination and\n  remembers the sender's address.  Packets received from the given\n  destination are forwarded to the sender.\n- In inetd mode `uredir` lingers for three (3) seconds after forwarding\n  a reply.  This to prevent inetd from spawning new instances for\n  multiple connections, e.g. an SNMP walk.\n\nFor a TCP port redirector, see [redir][].\n\n\nUsage\n-----\n\n    uredir [-hinsv] [-I NAME] [-l LEVEL] [-t SEC] [SRC:PORT] DST:PORT\n    \n      -h      Show this help text\n      -i      Run in inetd mode, get SRC:PORT from stdin, implies -n\n      -I NAME Identity, tag syslog messages with NAME, default: uredir\n      -l LVL  Set log level: none, err, info, notice (default), debug\n      -n      Run in foreground, do not detach from controlling terminal\n      -s      Use syslog, even if running in foreground, default w/o -n\n      -t SEC  Timeout for connections, default 3 seconds\n      -v      Show program version\n\n     Bug report address: https://github.com/troglobit/uredir/issues\n\n\nExamples\n--------\n\nThis simple UDP proxy example forwards inbound DNS requests on any\ninterface to an external DNS server on 192.168.0.1:\n\n    uredir :53 192.168.0.1:53\n\nTo run `uredir` from a process monitor like [Finit][] or systemd, tell\nit to not background itself and to only use the syslog for log messages:\n\n    uredir -ns :53 127.0.0.1:53\n\nTo run `uredir` in inetd mode, e.g. to redirect SNMP requests, try the\nfollowing.  Runs in foreground, as required for inetd services, and uses\nsyslog for logging:\n\n    snmp  dgram  udp  wait  root  uredir -i 127.0.0.1:16161\n\n\nBuild \u0026 Install\n---------------\n\n`uredir` is tailored for Linux systems and should build against any\n(old) C libray.  However, `uredir` v3.0 and later require an external\nlibrary, [libuEv][].  Installing it should present no surprises since it\ntoo use a standard `configure` script and support `pkg-config`.  The\nlatter is used by the `uredir` build to locate the library and header\nfiles.\n\nHence, the regular `./configure \u0026\u0026 make` is usually sufficient to build\n`uredir`.  But if [libuEv][] is installed in non-standard location you\nmay need to provide the path:\n\n```shell\n    PKG_CONFIG_PATH=/opt/lib/pkgconfig:/home/ian/lib/pkgconfig ./configure\n    make\n```\n\n\nOrigin \u0026 References\n-------------------\n\nThe `uredir` project is open source under the [ISC][] license and\nactively maintained at [GitHub][].  Please use its interface for\nreporting bugs and an pull requests.\n\n`uredir` was heavily inspired by [redir(1)][redir], by Sam Creasey.\n\n[ISC]:           https://en.wikipedia.org/wiki/ISC_license\n[Badge]:         https://img.shields.io/badge/License-ISC-blue.svg\n[Finit]:         https://github.com/troglobit/finit\n[GitHub]:        https://github.com/troglobit/uredir\n[redir]:         https://github.com/troglobit/redir/\n[libuEv]:        https://github.com/troglobit/libuev/\n[Travis]:        https://travis-ci.org/troglobit/uredir\n[Travis Status]: https://travis-ci.org/troglobit/uredir.png?branch=master\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Furedir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroglobit%2Furedir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Furedir/lists"}