06-11-2010 05:27 PM - edited 03-04-2019 08:45 AM
Hi,
There is a machine on my lan with IP 10.10.10.2
Apache installed on that host is configured to serve several named virtual hosts: www.domain a...b...c.com
While I was using a cheap SMC router, I could type www.domaina.com in a browser on another machine on the LAN and access 10.10.10.2, which would serve the correct web server.
Now that I am on 877 it allows only the users from the WAN to access the named virtual hosts. I can't access them from inside the network, and I can't cheat on Apache side and create copies of the name virtual hosts as virtual hosts on another port, because the servers I am using embed full domain name in all the links, so I am getting only as far as the home page w/o any graphics and with no ability to follow links.
Basically, I can set up a copy of virtual host www.domaina.com as 10.10.10.2:8080, but when I type that address in the browser, all the links on the home page still say http://www.domaina.com/link1 etc.
So I have to set something up on 877 router to replicate the functionality of my old SMC VBR7004.
Hoping I am making sense, please feel free to ask if something is not clear.
Regards
Zen
06-12-2010 03:12 AM
You need to configured a NAT alias on the inside interface of the 877 - this will translate the external IP address that www.domainx.com would route externally to the internal LAN IP.
HTH>
06-12-2010 06:01 PM
Andrew:
Can you give me an idea what the command would be to set that up?
I know of one workaround - it is to set up hosts entry to www.domainx.com
But I'd have to do it on each of the machines on the LAN which is a royal pita.
Thank you!
Zen
06-13-2010 01:33 AM
Have a look at the below:-
http://www.cisco.com/en/US/tech/tk648/tk361/technologies_q_and_a_item09186a00800e523b.shtml
DNS doctoring would be the key.
HTH>
06-13-2010 09:39 AM
Andrew,
Your first link says Forbidden file or application and the other one is a 15 page generic FAQ.
If you know the answer, can you please help with the command?
Please do not attempt to educate me - routers is not my piece of bread and I am just a mechanic setting up shop network. This box will be set up and forgotten for years until it becomes obsolete. If you know the command, please ease my pain.
Thank you!
Zen
06-13-2010 10:22 AM
Zen,
Plain speaking eh - I like it!
1) First easy option is - if there is an internal DNS server (Which there should be!) have a specific A Record for the domain to point to the internal server. And the internal hosts would use this DNS server to resolve addresses.
2) Second option is configure the router with a static 1:1 NAT for the external IP address to the internal IP. This is only applicable IF you have more than 1 external IP address available?? Do you?? if so then your config will need to be:-
ip nat inside source static <
HTH>
06-13-2010 10:59 AM
Andrew:
We don't have an internal DNS, it would be an overkill for just a dozen machines.
If I have to go that route, I'd rather copy hosts file across.
And we only have 1 external IP.
Thanks
Zen
06-13-2010 11:23 AM
Zen,
Then your only option is a host file on all macines with a static specific entry.
HTH>
06-13-2010 11:25 AM
It is still a curious fact that the old cheap router could do what Cisco 877 would not allow. The solution must be out there.
06-13-2010 11:44 AM
Reinstall the other device.
06-13-2010 12:46 PM
The old one is retired as it's power supply gave up and it survived being spliced with an old AT form factor PC power supply. Plus it could not cope with traffic once the ISP upgraded DSL service from 3 to 5 Mbit. We are using many remote desktop sessions, VPN, VoIP and it was simply choking when many connections were established, even though single connection was just as fast as any other router's.
I wonder how they achieved that feature I am missing, even though the device was cheap and had very limited capabilities.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide