Koozali.org: home of the SME Server

Forward local http port?

Phil Hyde

Forward local http port?
« 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

Nathan Fowler

Re: Forward local http port?
« Reply #1 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

Nathan Fowler

Re: Forward local http port?
« Reply #2 on: July 22, 2002, 08:27:14 AM »
Oops, ipmasqadm is in /usr/sbin, not /bin.

/usr/sbin/ipmasqadm portfw

Phil Hyde

Re: Forward local http port?
« Reply #3 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

Nathan Fowler

Re: Forward local http port?
« Reply #4 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