Class Rex::Services::LocalRelay
In: lib/rex/services/local_relay.rb
Parent: Object

This service acts as a local TCP relay whereby clients can connect to a local listener that forwards to an arbitrary remote endpoint. Interaction with the remote endpoint socket requires that it implement the Rex::IO::Stream interface.

Methods

Included Modules

Rex::Service

Classes and Modules

Module Rex::Services::LocalRelay::Stream
Module Rex::Services::LocalRelay::StreamServer
Class Rex::Services::LocalRelay::Relay

Attributes

relay_mutex  [RW] 
relay_thread  [RW] 
relays  [RW] 
rfds  [RW] 

Public Class methods

Returns the hardcore alias for the local relay service.

Initializes the local tcp relay monitor.

Public Instance methods

Returns the alias for this service.

Starts the thread that monitors the local relays.

Starts a local relay on the supplied local port. This listener will call the supplied callback procedures when various events occur.

Starts a local TCP relay.

Stops the thread that monitors the local relays and destroys all local listeners.

Stops a relay with a given name.

Stops relaying on a given local port.

Protected Instance methods

Accepts a client connection on a local relay.

Closes an cleans up a specific relay

Closes a specific relay connection without tearing down the actual relay itself.

Monitors the relays for data and passes it in both directions.

[Validate]