Question

IFrame redirect to internal website

Asked by: jherington

Hello,

I have a public website which I just got up and running. The site provides support for salespeople and most everything is working great. I added a new page with an iframe of which the src property is set to an internal web server (i.e. private IP address behind our firewall). When I try to browse the page with the IFrame from outside the office I get 'Internet Explorer cannot display the web page'. I suspect this is because the IFrame src is not pointing to a public website ?? When I browse from within the network, I can see the page just fine. I suspect this is because all pc's and servers use the same internal DNS when inside the office?? I guess I am thinking/hoping the IFrame is able to display to the user whatever it can see locally regardless of what the user can or cannot browser directly.

My question is: should this type of scenario work (i.e should the IFrame show the internal web server pages) or will I have to give internal web server its own public IP address.

Thank you!!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-25 at 11:47:56ID24264551
Tags

IIS6

,

IFrame

,

Redirect

Topics

Web Servers

,

Web Hosting

,

WebApplications

Participating Experts
1
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. iframe
    Hi , What is the difference between iframe & frame ???? which one is best . And how I can do iframe in Dreamweaver .
  2. Iframe and SRC
    Hi I have an iframe on a main page which will load a different page depending on who logged on. Which is where I assign the below session variable <Iframe src="<% Session("subform") %>" .......</iframe> But it doesn't seem to pick it up ...
  3. iFrames
    How can I get an IFrame to expand and collapse under Netscape 6.2+ and IE 5.0+ ? <HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"> <TITLE>iFrame</Title> <script language="JavaScript"...
  4. change iframe src
    im trying to to do something very simple. this is my iframe: <iframe align="<%=align%>" designMode="on" id="ifrm" width="100%"></iframe> when the user selects something from the combo box i want to change the iframe sr...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: StrifeJesterPosted on 2009-03-25 at 14:10:54ID: 23984768

The iframe is jsut loading the page using the link.  http://192.168.1.2/page.htm will not work outside of your office, this is how it should be.  You can do a few different things to resolve this.  Point a subdomain such as internal.example.com to the internal server, meaning you will have to give it an internal IP address or at least use a different port and use NAT to send the requests in.  The easiest solution is if you have multiple external IP address available is to assign one to the server and use the sub domain pointed to that external IP  you will also have to make sure to update your internal DNS to make sure it knows to route the traffic properly.  Without know your firewall and a few other details about your setup that is about all I can help with.  If yo ucan give more details I will try to help a little more.

 

by: jheringtonPosted on 2009-03-26 at 15:56:42ID: 23996556

Thank you for responding,

I do in fact have an additional external IP address. The way it is setup now is I have Comcast coming in via their bridge SMC device. Connected to the SMC is a single Linksys wireless router. Connected to the Linksys router is my web server. Right now the Linksys router is configured to NAT port 80 to my IIS 6 web servers (the default website is configured to use port 80). I also setup a NAT connection to another web site on my web server and use port 8080. Both of these work perfectly.

The problem comes in with the my email server. I have RHEL5 running on VMware on the same server. On the RHEL5 I have installed Zimbra email. I can browse this email server perfectly fine from within my network. The Zimbra server has a private IP address and is included on my internal DNS.

As mentioned I do have an additional IP address (in fact I purchased a 5 block from Comcast). I just don't know how to properly configure this. I tried to setup another web server on IIS6 but I just don't fully understand how all this is going to work? In the end I want to provide access to the Zimbra email server via an IFrame within my web portal. But as it stands this only works for internal users who share our common internal IP network 192.168.1.x.

So do you see a way forward for me given my current mix of hardware and software or do I need to spring for either a new router that could handle more sophisticated networks or just get another server and run RHEL5/Zimbra on there.

Thanks very much!

 

by: StrifeJesterPosted on 2009-03-27 at 07:10:29ID: 24001043

Depends on how the bridge is setup.  Do you have extra ports or can you put a switch between it and your other router.  The linksys will not work with multiple IPs, something like a Cisco ASA or other router would do this a little more easily but we'll work with what we have.  If you can get a switch in front of your linksys or use a different port on the bridge the easiest solution is to install another router, give it a different IP and then port forward to the email server.  Then you would need a new A record setup for a subdomain similar to mail.domain.com, assign this to the other external IP that forwards to the web mail server.  Once you have these you will need to change the iFrame to point to mail.domain.com as the url instead of the IP.  Its a little convoluted using 2 routers but its either use a second router or give the second nic on the web mail server the direct external IP, this may be ok if you have a good software firewall.  This is kind of a quick and dirty solution if you need it explained better or some help walking through it i will definitely do so.

 

by: StrifeJesterPosted on 2009-03-27 at 07:14:15ID: 24001091

Just re-reading everything again and i actually have a different solution that may work... you are using port 8080, 80 you could always serve the web-mail over the port 8000 then forward port 8000 to that server then in your html for the iFrame you would need to use the full domain to get the tagging right but the link would be http://domain.com:8000

That may work as well as long there are no issues with changing the port the web-mail interface listens on.  

This may be easier to use and not require all of the additional steps and and hassles.  Plus you already have the port forwarding figured out and running web servers on different ports so this works without you have to take steps you may not be familiar with.

Let me know what you think and if you need help I will do what i can.  

 

by: jheringtonPosted on 2009-03-27 at 08:55:56ID: 24002346

Hello and thank you for your support!

I do in fact have a Cisco 501 and I can buy a switch at BestBuy for cheap. I am a little concered about the port idea only because I believe Zimbra (my open source email server) is hardcoded with certain ports and I really don't want to mess it up...although I am just not too sure if switching the tcp port from 80 to 8000 should likely matter...I just don't know?

Anyway, it sounds like you would prefer the hardware method and I do have a 501 I can use. I will be able to work on this tonight and go to BestBuy this afternoon...what do you think...is that the most sure way of getting it done? Can you help me with the configuration? I can close and reward on this ticket and open another to ask for help on the config if that works better for you.

Thanks again!

 

by: jheringtonPosted on 2009-03-27 at 09:12:02ID: 24002546

Also, I wanted to add that the Linksys router and the Comcast SMC bridge both have 5 10/100 port switches included on them. So maybe I could go from the bridge direct to the 501 then connect the web server direct to the 501? I would still want the web server and its VMware zimbra client to be accessed via NAT and assign the two public IPs to the 501. Does this make sense? The Linksys will server the pc's that need wireless on the network but not otherwise be involved with NAT for the web/email server.

Thanks!

 

by: StrifeJesterPosted on 2009-03-27 at 11:28:17ID: 24004010

Its a little tough to get the routing from the linksys back through to the internal IPs that your servers would be on.  I am not sure if the 501 will allow for creating the NAT rules i would have to look that up.  If you have the linksys router already and there are extra ports on the bridge it may be jsut as easy when you goto BB to get another identical linksys router since you know the config settings you will need.  The 501 should be the standard cisco IOS but as i mentioned I don't know if you can do the natting with that or if it requires the PIX/ASA software which is different from the standard IOS software.  Does the Zambra also receive the smtp traffic that comes into your building?  if so you will need to update your mx records as well if you change it to a different external IP.  I am going to research Zambra a bit and see how tough it is to change ports.  I should be able to get back to you shortly after i research the zimbra,  might be able to save you from buying any hardware at all which is always nice.

 

by: StrifeJesterPosted on 2009-03-27 at 11:41:12ID: 24004144

Check out this post on the Zimbra site it lists commands to change the ports and all it looks like you would have to do is start and stop the tomcat service after you finished with commands.

here are the commands it lists, i have never used zimbra, it looks like it has to run on linux huh?

su - zimbra
zmprov ms SERVERNAME zimbraMailPort 81
zmprov ms SERVERNAME zimbraMailSSLPort 444
tomcat restart

http://www.zimbra.com/forums/administrators/2474-www-port-conflict-changing-zimbra-apache-setting-print.html  Full post

Hopefully this will help.  With your current config i would hate to see you tear down the network and then not be able to get it back to what have that is fully functional except this one thing.  One of the downfalls of EE not being able to see the exact network topolgy and help with layout/design to make sure everything goes smoothly.

Oh yeah and ignore my first post about the 501 its been a long day the 501 is a PIX lol

Sorry about that

With ASDM it should be no trouble them or using the general config

I would say lets give it a try with changing the ports and adding a new forward for a subdomain  that is the easiest and least intrusive option so far

Later you could install the PIX on seperate port on the bridge and give one of your remaining IPs and work this side by side until you are ready  to migrate.  That would give you time to weigh out the choices and a few other options.  such as plugging the linksys in to the pix and turning off the dhcp and other options like that to use it basically as an access point which i think you were hinting at earlier.

 

by: jheringtonPosted on 2009-03-27 at 12:18:55ID: 24004485

Ok, so the process is:

1) Change the IP on the VMware zimbra client to one of my public IPs. (Note zimbra uses the Windows host DNS as its DNS server and this is something I can not change without reinstalling zimbra).
2) Add a subdomain to my IIS that forwards to the zimbra public IP.
3) Change the zimbra subdomain port to say 8081/444. I assume zimbra is currently (80/443).
4) Change the Linksys to forward 8081/444 to the web server.
5) Not sure how to change Windows DNS server so internal pc's can find zimbra and of course so zimbra sees its A and MX records.
6) Not sure whatelse I am missing...

Yes, zimbra is a linux based app, written in java and running on red hat 5 within the VMware client.

Thanks!

 

by: StrifeJesterPosted on 2009-03-27 at 14:03:24ID: 24005466

You will not need to change the IP on your zimbra install this way.  Saving you the hassles of steps one and 2.  I would do it this way.

1. Change Zimbra to ports 8081/443 can be left alone unless you are running ssl elsewhere
2. Create subdomain as a cname pointing to main http://domain.com:8081
3. Create Port forward rule for zimbra ports to zimbra internal IP
4. No DNS or other changes needed

Inside your iframe make the source sub.domain.com the dns will convert it to 8081 and the linksys will forward it.

 

by: jheringtonPosted on 2009-03-29 at 18:06:09ID: 24015378

Hello StrifeJester,

I am back at it and need some help with the dns configuration.
Just to recap: my current setup is:
*W23K server freedomsrv1 192.168.1.120
*Linksys NAT for port 80 goes to 192.168.1.120
*freedomsrv1's IIS successfully server serves web pages on port 80.
*mailsrv1 is a VMware client 192.168.1.105 (freedomsrv1 is the VMware host)
*I successfully changed mailsrv1 (zimbra) to listen on port 8081
*mailsrv1 serves zimbra mail access via linux tomcat webserver (now listening on 8081).
*mailsrv1 uses freedomsrv1's dns
*I set linksys to NAT port 8081 to 192.168.1.120
*freedomsrv1.s dns looks like:
**A record freedomsrv1 192.168.1.120
**A record mailsrv1 192.168.1.105
**MX 192.168.1.105

This is were I am stuck. I do not understand how to configure freedomsrv1's dns so as to create a CNAME that points to mailsrv1:8081. I just don't understand if I create a CNAME in the forward lookup zone and if so how do I point to port 8081.

Many thanks for your guidance thus far, I know we are 90% there. Thanks!

 

by: StrifeJesterPosted on 2009-03-30 at 06:18:42ID: 24018528

Unless you are using your outside dns for resolution you shouldn't have to change it on the 2k3 server.  We want to change your domain hosts DNS to point with the cname.  Creating a cname varies by the registrar but in windows 2k3 you jsut need to right click on the zone such as domain.local and create alias.  Win2k3 dns will not allow you to route with a port number as far as I am aware.  I can help with the registrar if i know who it is otherwise what we are looking to do is the following.

Registrar DNS

Domain.com is an A record to external IP
mail.domain.com is a cname or a forwarder (some will make you use a forward) to http://externalIP:8081

With a little looking around in the registrars DNS settings this should be no problem, your registrar should even be able to walk you through this over the phone.  If you end up calling them just tell them you want mail.domain.com to forward or point to web server running a different port they should be very accommodating.

 

by: jheringtonPosted on 2009-03-30 at 09:32:32ID: 31562616

EE is an excellent value. The help provided to me was quick and accurate.
Thank you!

 

by: StrifeJesterPosted on 2009-03-30 at 10:00:10ID: 24020795

Thank you for the acceptance and I hope everything works out for you.  If you need anything else fell free to ask.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...