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