Thanks everyone for the quick responses.

Gordon, your solution is the only one that has worked for me so far. Simple
and effective way too. Thanks for that.

I don't understand why none of the iptables forwarding commands are working.
Before the command is issued, when a remote user attempts to connect to that
port, you get the Connection Refused message (as you would expect). After
you issue the commands and then make a connection it just sits there and
times out. I'm not sure why that way isnt working, but using xinetd works
for me, and is probably easier to manage. For now, that way is fine by me.

Thanks for everyone's help. Greatly appreciated.

________________________________________________________________
Kevin Green
KD Micro Software :: "Servicing all ends of the evolutionary scale" - Frank
Holmes
[EMAIL PROTECTED]

Phone: 9256 1566 (ext 2778)

----- Original Message -----
From: "Gordon Messmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 10:11 AM
Subject: Re: Port Forwarding


> On Thu, 2002-09-05 at 18:06, Kevin - KD Micro Software wrote:
> > I would like port 8181 on my Red Hat box (7.2, kernel 2.4.9-34, let's
say ip
> > is 1.1.1.1 (example only)) to be forwarded to port 80 on internal
machine IP
> > 1.1.1.2. I understand that machines on the internal network (eth0) would
not
> > be able to make use of this, but as long as it works from the net
connection
> > (ppp0) then that is ok. That's all I need. But, of course, if there is a
way
> > where this would work for both then thats even better.
>
> You can use xinetd to do the port forward in userspace, which will work
> for all nets, even when ppp0's IP address changes (making it much
> simpler than iptables)
>
> cat > /etc/xinetd.d/8181 <<EOF
> service 8181
> {
>         disable = no
>         socket_type     = stream
>         protocol        = tcp
>         user            = nobody
>         wait            = no
>         port            = 8181
>         redirect   = 1.1.1.2  80
> }
> EOF
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
>




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to