home | projects | about

Fwd
Copyright (c) 2008 Scott Ludwig
http://www.scottlu.com

Download fwd-1.0.tar.gz

Fwd is a tool for port forwarding between peers, through any firewalls or NATs separating the peers. Fwd achieves this without the need for firewall configuration. The only requirement is that each peer is running an instance of fwd.

To set up a forwarding session, fwd negotiates a peer to peer tunnel between the local and remote peers using a technique called Interactive Connectivity Establishment (ICE). Forwarded data is sent through this tunnel.

Fwd uses Google's libjingle library and xmpp, stun, and relay services. Fwd is cross platform and runs on Mac, Linux, and Windows. See README in the download for building instructions.
 
Example:
* fwd -u user@gmail.com -p mypassword -L 2222:debianbox:22 -L 3389:xpbox:3389 -L 8000:webbox:80
This establishes the following forwardings:
* the ssh server on debianbox, through localhost:2222 * Windows Terminal Services on xpbox, through localhost:3389 * the web server on webbox, through localhost:8000
Usage:
fwd [-v] <-u username> <-p password> [-L port:[remotehost:]host:hostport]
Forwards a local port to host:hostport, through firewalls. The remotehost must run another instance of this program in server mode, logged in with the same username and password.
 
-v Very verbose mode.
-u username Google Talk username.
-p password Password for this account.
-L port:[remotehost:]host:hostport
Opens a local port on the default address, and forwards all data to host:hostport, through remotehost. This argument can be specified in two ways - with or without remotehost: -L port:host:hostport This will connect to the first discovered remotehost running an instance of this program. -L port:remotehost:host:hostport This will connect to a specific remotehost running an an instance of this program.

Note that multiple -L arguments can be specified. If no -L arguments are specified, the program will start in server mode.

Forwards are only allowed between client and server instances of this program using the same username. The username must be any Google Talk account. Get a new or an extra Google Talk account from this page:

https://www.google.com/accounts/NewAccount?service=talk

License:

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

 1. Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
 3. The name of the author may not be used to endorse or promote products 
    derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
last modified May 14, 2008, at 03:02 PM