Koozali.org: home of the SME Server

Port Forwarding

JakFrost

Port Forwarding
« on: July 15, 2000, 09:04:52 PM »
First off - great product - I have two s/g's running myself - but alass i am still not fully versed in linux so here is my question

I am trying to forward a couple of ports to another linux machine but i don't
understand totally how to do it - I HAVE read the how to on IPCHAINS but it is vague
for a linux newbie and the man was written by the same person.

is there someone out there who could take some time to write a semi detailed description
on how to use ipchains - it would be a great help

I have also tried ipfwadm - but it just refers me to ipchains --help

Alex Henriksen

RE: Port Forwarding
« Reply #1 on: July 16, 2000, 06:59:55 AM »
Hi JakFrost..

I hade the same problem here, but i find a good help in rinetd.rpm.

Forward's all the port's you need from linux to linux and windows..

I use it to forward a port from E-Smith to a Windows, works the 1'st time..

JakFrost

RE: Port Forwarding
« Reply #2 on: July 16, 2000, 08:59:35 AM »
thxs i'll give it a try

JakFrost

RE: Port Forwarding
« Reply #3 on: July 16, 2000, 09:11:49 AM »
sorry - rinetd is for UDP packets - I forgot to mention that - and I would like something compatible with ftp servers also

thxs

b1tch-x

RE: Port Forwarding
« Reply #4 on: July 16, 2000, 09:48:59 AM »
There is a small packet forwarding program called "redir" It can listen on a set port and forward all the packets to the specified IP and port of another machine. It can also do transparent proxing so that the originating computers IP shows up at your internal machine instead of the forwarding machine. It also has is compatible with ftp servers.

http://freshmeat.net/appindex/1999/03/14/921462694.html

There is an RPM version for installation.
usage:
        redir --lport= --cport= [options]
        redir --inetd --cport=

        Options are:-
                --lport=             port to listen on
                --laddr=IP              address of interface to listen on
                --cport=             port to connect to
                --caddr=          remote host to connect to
                --inetd         run from inetd
                --debug         output debugging info
                --timeout=   set timeout to n seconds
                --syslog=       log messages to syslog
                --name=    tag syslog messages with 'str'
                --bind_addr=IP  bind() outgoing IP to given addr
                --ftp           redirect passive ftp connections
                --transproxy    run in linux's transparent proxy mode

        Version 2.0 - $Id$

JakFrost

RE: Port Forwarding
« Reply #5 on: July 17, 2000, 09:19:32 PM »
it works great thxs a million - !!!

b1tch-x

RE: Port Forwarding
« Reply #6 on: July 18, 2000, 08:52:08 AM »
YW

slayer

RE: Port Forwarding
« Reply #7 on: October 14, 2000, 11:36:48 PM »
where can i get this redir?