Koozali.org: home of the SME Server

Does ProxyPass work across subnets?

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Does ProxyPass work across subnets?
« 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?
« Last Edit: December 25, 2008, 09:12:55 PM by LANMonkey »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Does ProxyPass work across subnets?
« Reply #1 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.

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Does ProxyPass work across subnets?
« Reply #2 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.

Offline Boris

  • *
  • 783
  • +0/-0
Re: Does ProxyPass work across subnets?
« Reply #3 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.
...

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Does ProxyPass work across subnets?
« Reply #4 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Does ProxyPass work across subnets?
« Reply #5 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline LANMonkey

  • *****
  • 350
  • +0/-0
    • Database Collection of Transcripts for the ICTY
Re: Does ProxyPass work across subnets?
« Reply #6 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.