If port X and port Y are on the same box, I believe an iptables rule will
do this for you.

They are indeed on the same machine and I've been trying to get an iptables rule to work... here is what I've typed in:


iptables -t nat -I PREROUTING -p tcp --dport 80 -j DNAT --to 127.0.0.1:81

and then

iptables -I RH-Firewall-1-INPUT 1 -p tcp --dport 81 -j ACCEPT

But no luck (I am running my webserver on port 81, but I don't want people to have to type in http://mybox:81)

Any ideas?

Thanks!
--
Nathan

--------------------
BYU Unix Users Group http://uug.byu.edu/


The opinions expressed in this message are the responsibility of their
author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/

Reply via email to