Getting to Webmin Through Apache
I'm trying to set up mod_proxy in apache so that I can get to Webmin while im in college (they block ports other than 80) so that I can configure stuff during boring lessons and breaks.
I have this in my httpd config file
ProxyPass /webmin/ https://localhost:10000/
ProxyPassReverse /webmin/ https://localhost:10000/
Which should in theory load webmin, however unless I change the https to http I get error "500 Internal Server Error". My webmin is setup to only allow connections through ssl and i don't really want to change that for security reasons.
Any ideas?
Cheers
DigitalM
7 Replies
I'm not familiar with mod_proxy, so perhaps you can configure it to passthru SSL like that (or at least proxy it on its regular port 443).
But honestly the simplest solution is to proxy the "http" address to webmin, and have apache supply the SSL via mod_ssl.
This would be very easy to do, and would probably work out-of-the-box with your distro's apache+modssl+modproxy packages.
However, most likely they do allow port 443. If so, why not follow these
pclissold, yes im pretty sure the college blocks all ports except 80 (at least for students) i'm asuming they see no reason to allow us to make secure connections. wierd thing is they sometimes allow connections to port 22 and sometimes not, it may work one day and not the other
I can't imagine your college's firewall is really that restrictive. You could use a port scanner like nmap to scan your host to find out. If services that you know you have installed & enabled don't show up, then the firewall blocks them.
If they are that restrictive I'd reccomend getting another IP for your Linode and setting up a proxy on port 80. I use SSH to tunnel connections constantly, but there are also special proxy servers like SOCKS that might work.
I can give you more info on using SSH, otherwise you're on your own.
Good luck!
I'll try both when this afternoon when i got a lesson
Running sshd on port 80 is a good idea, a lot of my mates are stuck trying to get to other ports (like vnc) at college, i'd think they'd be happy if i gave them a way to do it consitantly without relying on the ups and downs of having port 22 open or closed (yes i hang round with the sad geeky crowd lol)
I have no idea how to get sshd to run on port 80 on a different IP but i'll look into it. You may have to help me with that if its okay?
Cheers
DigitalM
Scanning your college's firewall/router IP from your Linode might be interesting, but not particularly useful in this case.
Good luck & have fun with your classes!
My college seem to be constantly messing about with the open ports, like today, i could get on ssh (port 22) and ftp (21) and of course apache (80) but yesterday i couldn't get to either port 22 or 21 but i could still get to port 80! This is from the same machine in the computing Lab!!!. I think i might just take up your advice untitled9 and get another IP and run an sshd on that. Save me a lot of time and allow me to tunnel any port I want.
Cheers
DigitalM