[PLUG] software router

Aaron Burt aaron at bavariati.org
Thu Sep 9 16:13:01 UTC 2004


On Thu, Sep 09, 2004 at 03:39:47PM -0700, Josh Orchard wrote:
> Hello all,
> 
> I'm trying to make a software based router(with NAT?) that I can
> forward all traffic on one port to another machine on another port and
> back.  This would be like an invisible proxy.  I would like to be able
> to use Java as I need to support 6 different OS's.

I believe what you're talking about is called "port-forwarding".
Normally, that's a function of the routing/firewalling code on the box,
but if it's gotta be the same on all platforms, I'm sure you can write a
simple Java app that binds to a port like any other server and just
forwards the data.

Note that there will likely be restrictions on what port a Java app is
allowed to bind to.

Me, I'd just set it up with IPTables, but that's Linux-only.




More information about the PLUG mailing list