UREDIR(1)
π UREDIR β the UDP port redirector, bestie edition π
okay so this is uredir(1), a lil general commands manual page, and it is literally the most unhinged-useful tiny tool. it redirects UDP traffic. that's it. that's the whole vibe. π¦
β¨ NAME β¨
uredir β UDP port redirector. no cap, that's the whole job description. π
πΈ SYNOPSIS πΈ
uredir [-hinsv] [-I ID] [-l LVL] [-t SEC] [[SRC]:PORT] [DST]:PORT
π DESCRIPTION π
so uredir is a small tool to redirect UDP traffic. it can be used as a poor man's filtering tool β like, e.g. for small multihomed embedded systems that don't have a built-in firewall. it's giving resourceful. it's giving making it work with what you've got. π
uredir forwards packets to a specified destination, and it remembers the sender's address while doing it. any packets received from the destination get forwarded right back to the sender. it's a whole two-way situationship, but like, a functional one. π
when uredir is launched from inetd(8) it does not immediately exit when the first reply has been forwarded. instead it lingers for three (3) seconds in case more requests are received β e.g. in the case of an SNMP walk. this helps conserve precious system resources, which is especially useful on embedded systems. the way it just... waits politely? iconic. π
if you want a TCP port redirector instead, try redir(1) β which now has the same maintainer as uredir(1). family reunion, fr fr. π«Ά
π OPTIONS π
-hβ print a summary of the options and exit. the classic "help me bestie" move.-iβ run in inetd mode, read data fromstdin. implies-n, and always runs in foreground. no detaching, no hiding. main character behavior only.-I IDβ identity! tag syslog messages with the ID name. default: the process name.-l LVLβ set the log level. your choices are:none,err,info,notice(default),debug.-nβ run in foreground, do not detach from the controlling terminal. clingy in the best way.-sβ use syslog, even if running in foreground. this is the default when you don't pass-n.-t SECβ set the timeout to SEC seconds for connections. default is3.-vβ show program version. quick lil flex. β¨[SRC]:PORTβ source, or outer/public, IP and UDP port to bind to. the SRC can be left out, and then it defaults to0.0.0.0. must not be set when running in inet mode,-i.[DST]:PORTβ destination, or inner/private, IP and UDP port to redirect to. this is where the packets are going, bestie.
π EXAMPLE π
this simple UDP proxy example forwards inbound DNS requests on any interface to an external DNS server on 192.168.0.1:
uredir :53 192.168.0.1:53
see how the SRC got left out? that's the 0.0.0.0 default doing its thing. π
to run uredir in inetd mode β e.g. to redirect SNMP requests β and timeout after 5 sec, try the following. it runs in foreground, as required for inetd services, and uses syslog for logging:
snmp dgram udp wait root uredir -it 5 127.0.0.1:16161
heads up bestie: syntax may vary between different inetd implementations and UNIX distributions. π
π₯ SEE ALSO π₯
π BUGS π
use the project's GitHub page to file bug reports, feature requests or patches β preferably as pull requests β¨https://github.com/troglobit/uredirβ©
like, they really do want the pull requests. don't be shy. π§
π AUTHORS π
uredir used to be based on udp_redirect by Ivan Tikhonov, but is today based on youdp by Tobias Waldekranz. current maintainer is Joachim Nilsson. glow-up complete. β¨
and that's the whole page, bestie! this one came from the Debian crowd and it's dated 17 April, 2016 β so it's an elder but it still ate. mwah, bye! πππ¦
π¦ where this page comes from
- epel 9: uredir 3.3-3.el9 Β· ISC
- fedora 43: uredir 3.3-11.fc43 Β· ISC
- fedora 44: uredir 3.3-12.fc44 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms