UdpToTcp(8)

NAME
UdpToTcp - a minimal implementation of an UDP to TCP forwarder.

SYNOPSIS
java -cp . UdpToTcp.class options

DESCRIPTION
UdpToTcp is a program that can be used to forward packets sent to an UDP port to a TCP connection and vice versa. This is needed if you want to tunnel UDP traffic over a TCP connection. It was written to support UDP-only SNMP clients accessing a mini-snmpd server that can only be reached over an SSH tunnel.

-udp-port:nnn
    The UDP port where the program listens (default is 161)

-port:nnn
    The TCP port where the program connects to (default is 161)

-host:nnn
    The hostname where the program connects to (default is localhost)

UdpToTcp can be told to exit by entering Ctrl-C

EXAMPLES
java -cp . UdpToTcp -udp-port:9020 -host:remote.somewhere.net

This command starts the program and tells it to forward UDP traffic received on the local port 9020 to the remote host. Thus, you now can point an SNMP client only supporting UDP to localhost:9020 and it will query SNMP data from remote.somewhere.net (this assumes that the SNMP daemon on the remote host answers requests over TCP too).

AUTHOR
This manual page was written by Robert Ernst <robert.ernst@aon.at>.