Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Up A Web Server Behind A Cisco 667 Router ... Im a newbie

Status
Not open for further replies.

gabzuka

Technical User
Oct 9, 2003
2
VE
Hi, this is my first post here ...

For a while now I´ve been trying to set up a server to host my own web site. I have a ADSL conection to a cisco 677, this is connected to a linksys switch and this to 4 computers. From one of this computers I wanted to set up the server, I installed Apache on my windows XP machine and from there or from other PC on my LAN it worked fine (using my IP as the address) but when trying to connect with an "outside" computer (NOT behind de router) it failed, it produced an error.

any help will be appreciated!!!

thanks a lot!!!

Gabriel
 
I guess first and foremost if you have a Dynamic IP address (e.g. it changes if you restart the router) I would suggest talking to your ISP to ask them about getting a static IP address if this is something you want to register as a domain name host something important etc.

Your router doesnt route packets internally unless you tell it to, or its initiated from the internal network. This is a feature that protects you from unwanted guests etc. I have no idea exactly the command line however if its anything like the 678 (which I think it is) this is a good tutorial on how to set up NAT. Network Address Translation, which tells your router that any packets coming to the external IP address (your internet address) to forward it to a specific host for services. This is also the way you can set up your router for port specific software (mainly games, but netmeeting and other video conferencing stuff).

Oh yeah the link -
(the above should give you the easy 123 on how to telnet to your router)
The command should be on your router -
set nat entry add 10.0.0.2 tcp 80

The above should allow web traffic to go to the webserver, if your web server IP address is 10.0.0.2. Fill in the appropriate IP address if it isn't.

Just so you know if this web server is something you want to keep hidden or not something that will take a better port sniffer than the average joe, change the TCP port at the end of the set nat entry and then when trying to view it externally type in - because it isnt the default http port (80) you would have to specify this.

The other thing is you need to be carefull opening anything up to the world, there are a lot of bored people out there.

Good luck, happy serving, cya!
Kevin
 
Thanks Kevin, I'll have to read a lot and learn, but at least I know where to begin ...

Thanks again

G
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top