There are a number of ways to solve this IT headache that boil down to leveraging the servers or the network.
Thanks like:
- Install IIS on the DCs - A heavy handed approach and not recommended.
- Perform some network trickery to intercept and forward port 80/443
- Use multiple DNS servers (inside, outside, etc)
On Linux, I'd use iptables to redirect the HTTP and HTTPS ports like this:
iptables -I FORWARD -p tcp -d 192.168.1.31 --dport 80 -j ACCEPT
iptables -I FORWARD -p tcp -d 192.168.1.31 --dport 443 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.1.31:80
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 192.168.1.31:443
From the command line on Windows 2008 R2, you can do the same using the netsh cli.
netsh interface portproxy add v4tov4 listenport=80 listenaddress=192.168.1.11 connectport=80 connectaddress=192.168.1.31
netsh interface portproxy add v4tov4 listenport=443 listenaddress=192.168.1.11 connectport=443 connectaddress=192.168.1.31
Now any browser requests using the FQDN root will be automatically forwarded through an AD controller. No extra software need be installed.
My thanks to Rick Wargo for sharing his example of port forwarding on Windows 2008 R2.
Wow! I cant believe I found this post but I hope this is exactly what Im looking for (somewhat) but I have a question that I hope you have the answer to,your port forwarding example hopefully will help me get rid of a software that im using called PassPort which works OK but would rather have windows deal with it completely.now to my question, I have a DNS server on my network which forwards www.mike.com to an IP 192.168.0.20 (for example) but would like to be able to forward certain requests to 192.168.0.20/mike. If I tyoe this into my explorer it works GREAT but cannot configure this on my windows server, how could this be possible? Now just to clarify my DNS CAN redirect to subdomains like son.mike.com but cannot redirect to anything AFTER the .com for example www.mike.com/something. Windows wont let me. :( I would really appreciate the help I have been stuck for a month now...
ReplyDeleteYou need to re-read how DNS works. You can't do what your trying after the TLD (.com in this case). You will have to configure your actual web server to redirect to that page or whatever other path you want
DeleteNice information. I’ve bookmarked your site, and I’m adding your RSS feeds to my Google account to get updates instantly. AnyMP4 Video Converter Crack
ReplyDeleteBrutus password cracker download for ethical hacking. Its available for download on filesmama.
ReplyDelete