realWasabi Posted June 4, 2013 Share Posted June 4, 2013 Hi I have some servers running on my local network, which all support IPMI over http. In short, it's a web interface accessible in my browser. I want to be able to access these sites from outside my local network. This is a problem, as all of them runs on port 80, which can't be changed, and as such, I can't just NAT my way out of it. I also have a webserver that runs on the same local network - and I was thinking about using "file_get_html" in a iframe to access the site from that server - but this presents a few other problems, as the sites requires authentication (the htaccess basic authentication) and file_get_html doesn't seem to support that. Also, the site renders kinda wierd, not showing the top part of the logo etc. How can this be done? If it helps anything, I also have a proxy server running on the same local network which can be used. Quote Link to comment Share on other sites More sharing options...
Solution requinix Posted June 4, 2013 Solution Share Posted June 4, 2013 (edited) Set up Apache (or whatever) to reverse proxy the sites: 1. NAT your proxy box 2. Install VirtualHosts for each site 3. Configure each to reverse proxy requests to the relevant machines It should support HTTP authentication too. Edited June 4, 2013 by requinix Quote Link to comment Share on other sites More sharing options...
kicken Posted June 5, 2013 Share Posted June 5, 2013 This is a problem, as all of them runs on port 80, which can't be changed, and as such, I can't just NAT my way out of it. I don't see why you can't just setup a NAT entry. No NAT system I've ever used required the source and destination ports to match so even if you already have an entry for port 80 going somewhere else you could just add an entry for port 8080 or something that goes to the IPMI IP. So you'd map externalip:8080 -> ipmi_ip:80 If for some reason that wont work for you though, then setup a proxy as suggested by requinix, or an ssh tunnel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.