Getting around a work firewall to use home subsonic!

Tutorials, tips and tricks.

Moderator: moderators

Getting around a work firewall to use home subsonic!

Postby zeke » Tue Jun 19, 2012 3:24 am

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
zeke
 
Posts: 4
Joined: Thu Mar 15, 2012 8:24 pm

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

Postby ytechie » Tue Jun 19, 2012 12:03 pm

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
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

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

Postby tricksel » Wed Jun 20, 2012 11:35 am

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.
tricksel
 
Posts: 3
Joined: Wed Aug 17, 2011 9:11 am

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

Postby zeke » Wed Jun 20, 2012 3:08 pm

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
zeke
 
Posts: 4
Joined: Thu Mar 15, 2012 8:24 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 12 guests