TIP: Click on subject to list as thread! ANSI
echo: linux-ubuntu
to: ALL
from: RICK CHRISTIAN
date: 2017-03-31 05:14:00
subject: Host/Port forward to REMO

   Hello Rick!

09 Mar 17 21:15, I wrote to all:
 RC> I've got a situation where I need to setup something that does the
 RC> following:

 RC> Host: 1.2.3.4 Port 1234

 RC> Remote Host 5.6.7.8 Port 5678

 RC> I am NOT an iptables guru.... I probably could do this with some Cisco
 RC> IOS stuff if I had it at the location, but this is not a colo right
 RC> now...

For any one who is following and looking for a simillar solution to this....

redir TCP port redirector

sudo apt-get install redir

This seems to be a slight different version as the syntax is a little different
 than that referenced on many places...

Any way...

redir --lport 80 --cport 8000 &

This allows me to quickie redirect something to server which provides its own
internal "web server" of a sort and users don't need to add the :8000


redir --name fwdit --lport 2222 --cport 2221 --caddr host.super.invalid &

Lets me forward things from my server to another to connect up.... for just
that server...

This is much better than working with iptables... Why??? One slip up and you
can chase issues for days or more.. or loose connection and on a remote host...
 thats not good!

This version doesn't seen to have the daemon mode that the GitHub one
references... so use & to send it to background and remember anything below
1024 will need root to redirect...

You could probavly use screen and others, or inetd to run at start up etc...

But here is the solution I chose for others if you were following along...


Rick


... Ding Dong the Witch is DEAD! I Made America Great Again! President Trump!
--- GoldED+/LNX 1.1.5-b20161221
* Origin: Vina's Talos Moon Base Alpha (1:135/377)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.