Page 1 of 1

Getting around a work firewall to use home subsonic!

PostPosted: Tue Jun 19, 2012 3:24 am
by zeke
Hi all,

Just wanted to put a tip out there. My work (a hospital) has a pretty strict firewall and doesn't allow access to many ports aside from your standard 80. Since I already had an apache webserver running when I installed subsonic on my Ubuntu server, I ended up running it on some arbitrary high-8000 port. This made it so I couldn't access subsonic from work, very sad! I ended up setting up a VirtualHost for subsonic in my apache config and did a reverse proxy so it bounces back through 80 and then is accessible! In case anyone else had the same problem!

Zeke

Re: Getting around a work firewall to use home subsonic!

PostPosted: Tue Jun 19, 2012 12:03 pm
by ytechie
That is interesting, zeke. Can you post more details on how to setup a reverse proxy? I'm sure many people would appreciate the advice!

Much luck,
ytechie

Re: Getting around a work firewall to use home subsonic!

PostPosted: Wed Jun 20, 2012 11:35 am
by tricksel
Another very good working method, is by using Apache.

First, set up Apache, and install mod_proxy. Enough tutorials on how to do this, not going to explain here.
When all of this is well, create a new site with the following config, replacing stuff to suit your environment:
Code: Select all
<virtualhost *:80>
   Servername <your_external_hostname>
   ProxyPreserveHost On
   ProxyRequests Off
   ProxyPass / http://<internal_ip_of_subsonic>:4040/
   ProxyPassReverse / http://<internal_ip_of_subsonic>:4040/
</virtualhost>


Of course, if you've changed the default port of subsonic, replace that as well. When this is enabled, Subsonic will be available through port 80, on the hostname you entered.

Re: Getting around a work firewall to use home subsonic!

PostPosted: Wed Jun 20, 2012 3:08 pm
by zeke
tricksel wrote:Another very good working method, is by using Apache.

First, set up Apache, and install mod_proxy. Enough tutorials on how to do this, not going to explain here.
When all of this is well, create a new site with the following config, replacing stuff to suit your environment:
Code: Select all
<virtualhost *:80>
   Servername <your_external_hostname>
   ProxyPreserveHost On
   ProxyRequests Off
   ProxyPass / http://<internal_ip_of_subsonic>:4040/
   ProxyPassReverse / http://<internal_ip_of_subsonic>:4040/
</virtualhost>


Of course, if you've changed the default port of subsonic, replace that as well. When this is enabled, Subsonic will be available through port 80, on the hostname you entered.


Hehe... I guess you beat me to it... or at least if it didn't come across clearly, what I was trying to say is exactly what you posted! Or at least that's what I'm doing! :)

Z