Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: LANMonkey on December 25, 2008, 09:04:49 PM

Title: Does ProxyPass work across subnets?
Post by: LANMonkey on December 25, 2008, 09:04:49 PM
I have used ProxyPass with good success where the SME and the target server are both on the same subnet.  But now I have moved the target server to another subnet and the domain name provided for the target server only yields up the SME host server's primary website.

I am using SmoothWall Express to manage my LAN where this is all occuring and there may be other issues involved.  But more basically, I need to know first that ProxyPass will work across subnets.  Will it?
Title: Re: Does ProxyPass work across subnets?
Post by: mmccarn on December 26, 2008, 05:30:57 PM
I have not used proxypass across different subnets, but there is no reason that it should *not* work.  I believe I did setup proxypass once (just for fun) to return an off-site website -- which by extension would imply that subnets are not an obstacle.

The important point is to make sure that whatever you've put into the SME server as the proxypass target is accessible *from the SME server* at the address you have specified.  It sounds as though you have the proxypass domain defined on the SME server, and configured to 'resolve locally' - so the SME asks itself "where is xxx.com" and answers itself "right here!".

Login to the SME server using putty / ssh and try to browse to the target url you have specified in proxypass using lynx or elinks, and see what happens.

If the website comes up, proxypass should work.  If not, you may have a DNS or routing issue preventing access from the SME server to the intended target host.
Title: Re: Does ProxyPass work across subnets?
Post by: LANMonkey on December 26, 2008, 06:33:11 PM
For some reason, I woke up this morning, booted everything up and now everything works like I hoped.  I sure wish I knew why, the problem is gone if not resolved.
Title: Re: Does ProxyPass work across subnets?
Post by: Boris on December 27, 2008, 06:49:30 AM
For some reason, I woke up this morning, booted everything up and now everything works like I hoped.
Did you reboot SME as well? That would restart web server on SME to activate your change.
Title: Re: Does ProxyPass work across subnets?
Post by: LANMonkey on December 27, 2008, 05:10:53 PM
Yes, but I never had to do that before to get ProxyPass to work and I've created and deleted ProxyPass domain names many times before this.
Title: Re: Does ProxyPass work across subnets?
Post by: cactus on December 27, 2008, 05:16:50 PM
Yes, but I never had to do that before to get ProxyPass to work and I've created and deleted ProxyPass domain names many times before this.
No a reboot is not needed, but you certainly need to do
Code: [Select]
signal-event domain-create proxypassdomain.comwhich also regenerates the configuration file and restarts the webserver, without the restart a new ProxyPass should not work as the webserver is unaware of it.
Title: Re: Does ProxyPass work across subnets?
Post by: LANMonkey on December 27, 2008, 06:39:44 PM
Yes, I was very careful to do every step in the protocol described in the ProxyPass part of the FAQ's.