Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Phil Hyde on July 22, 2002, 08:20:46 AM

Title: Forward local http port?
Post by: Phil Hyde on July 22, 2002, 08:20:46 AM
I have my apache server listening on port 8018 because Roadrunner blocks port 80.  As a result, I have to type www.mydomain.com:8018 locally (or 192.168.x.x:8018) to see my site.  

Is there any way to forward or re-direct local ports (perhaps on client PC's?) so that I don't need the :8018?  Perhaps what I want to do is re-direct port 80 on my server?

thanks!
--phil
Title: Re: Forward local http port?
Post by: Nathan Fowler on July 22, 2002, 08:26:40 AM
/sbin/ipmasqadm portfw -a -P tcp -L 80 -R 8018

I'm pretty sure that should do it, if not I've got a separate binary that will support and handle TCP redirection.

Hope this helped,
Nathan
Title: Re: Forward local http port?
Post by: Nathan Fowler on July 22, 2002, 08:27:14 AM
Oops, ipmasqadm is in /usr/sbin, not /bin.

/usr/sbin/ipmasqadm portfw
Title: Re: Forward local http port?
Post by: Phil Hyde on July 23, 2002, 05:59:46 AM
This is what get.  Any ideas?

[root@webserver root]# /usr/sbin/ipmasqadm portfw -a -P tcp -L 80 -R
8018
portfw: illegal local address/port specified
Title: Re: Forward local http port?
Post by: Nathan Fowler on July 23, 2002, 07:55:53 AM
You must specify a Local and Remote IP in addition to the port numbers.

Good luck,
Nathan