MAN.9FRONT.ORG RTFM


     TRAMPOLINE(8)                                       TRAMPOLINE(8)

     NAME
          trampoline - forward incoming calls to another address

     SYNOPSIS
          aux/trampoline [ -9 ] [ -a altaddr ] [ -m netdir ] [ -o opt
          ] [ -t timeout ] addr

     DESCRIPTION
          Trampoline can be used in a service file (see listen(8)) to
          link an incoming call to another address that provides the
          service, typically on another machine.

          Trampoline dials addr and copies data between that connec-
          tion and its own standard input and output.

          The options are:

          -9   The connection carries only 9P messages.  In this case
               trampoline will relay whole messages at a time.

          -a altaddr
               Dial altaddr and relay between the two network connec-
               tions, ignoring standard input and output.

          -m netdir
               Restrict forwarding to particular machines.  Netdir
               must be the incoming call directory.  Trampoline finds
               the caller's MAC address m and checks that ndb(6) con-
               tains an entry with ether=m and the attribute trampok.
               If no such entry is found, the call is rejected.

          -o opt
               Write a protocol-specific control string opt to the
               connections control file.  This can be specified multi-
               ple times.

          -t timeout
               Terminates the connection after timeout milliseconds of
               inactivity.

     FILES
          /sys/log/trampoline  logs rejected calls

     SOURCE
          /sys/src/cmd/aux/trampoline.c

     SEE ALSO
          dial(2), listen(8)