LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-25-2006, 10:00 AM   #1
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

Rep: Reputation: 15
Home Server Dynamic IP Apache WebDAV query


Forgive me, I have trawled the web and forum about this but I don't know what I need to research.

I would like to access my apache server from the www as a small server where friends can download from. I have heard this is possible even with a dynamic IP which is what my ISP assigns me. I have about 4 very good routers so I'm sure one of them will support what I need, but what do I need to research? Is it possible? All the tutorials seem to be about 'setup a home server' but none of them take the tutorial past the gateway address! My home network is pretty sweet now, but that's not quite enough!

Hope this is possible, and thanks in advance.
 
Old 02-25-2006, 10:14 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Location: /illinois/chicago
Distribution: Slackware/Gentoo/FC/RHEL
Posts: 568

Rep: Reputation: 30
Use a router that is DynDNS compatable (it will be an option in the menu - sometimes under "WAN").
Go to http://dyndns.org - and get a subdomain, and a password (or pay to register your own...) - and then configure your router to use it. You're all set.
 
Old 02-25-2006, 10:46 AM   #3
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

Original Poster
Rep: Reputation: 15
Wow, that was a swift concise reply! My router (USR 9105) does support a number of dynamic dns providers and I went ahead and added my new DynDNS.com settings to my router as the how-to at DynDNS said. Unfortunately for me all the domain does now is show the world my router interface, which to say the least is scarey! Very unsafe!

My gateway is 192.168.1.1 my hosting machine is 192.168.1.2. I think dyndns is doing the right thing by forwarding the dns to my detected IP but it's not to the right machine? Do I have to setup a static route, virtual Servers, DMZ host?? The list goes on.. Is it a Secondary DNS Zone that I add in DyneDNS? What should I do next? All advice most welcome!

Last edited by smudge|lala; 02-25-2006 at 10:48 AM.
 
Old 02-25-2006, 11:59 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The address for the wan input on the router is exactly what your servers name should resolve to. The address you gave are unroutable private addresses. In the router setup you will need to forward port 80 to your server.

Since you said that you have several routers, hook up two of them. The outside router will be your DMZ while the inside one will be for your lan.
This link explains what to do: http://www.grc.com/nat/nat.htm

I may have misunderstood what IP address you were seeing. You need to test the DynDNS outside your network.

Last edited by jschiwal; 02-25-2006 at 12:06 PM.
 
Old 02-25-2006, 12:50 PM   #5
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

Original Poster
Rep: Reputation: 15
IP Confusion & Routing Issue

Thanks for your reply.

I forgot to mention my full setup.

My IP on my WAN is what dyndns.com account is set to 'see', so if it was 82.2.199.1 then I set this IP in my dyndns.com account.

192.168.1.5 is the computer with the apache and WebDAV server on it. So I need to forward port 80 of the router to 192.168.1.5. That sounds great, but now I have router problems. Rather than talking specifics routers (after all how many others have 'my router') are we referring to NAT Port Triggering?

I found a detailed guide for my router here.

For example if these were my settings:

Default Gateway: 82.2.199.1
WAN IP 82.2.217.247

How do I set this up? Anytime I type in my new dynamic IP in a browser, all I get is the router config and not my served page!

Maybe if some kind soul would tell me which section I should refer to, I will pester you no more! Thank you.

Last edited by smudge|lala; 02-25-2006 at 04:16 PM.
 
Old 02-28-2006, 07:04 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You enter your dynamic ip in the browser if you are on another network. Otherwise enter the real IP of your server. You may want to enter the server in the hosts file of your other computers.

It looks like port forwarding is called "Virtual Servers" in your modem. Also consider adding another NAT router ( Between the DMZ and the LAN ) to help isolate your web server from your LAN.

Be sure that you disable UPnP (Universal Plug n Play) on the modem. It is very dangerous (Another Microsoft innovation).

Last edited by jschiwal; 02-28-2006 at 07:06 AM.
 
Old 03-05-2006, 09:48 PM   #7
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

Original Poster
Rep: Reputation: 15
Thank you all for your support. I am still unable to point my dyndns.org url to my server but found this guide, translated from spanish for my exact setup. It however fails to say exactly what I need to do. If anyone has any ideas.. great!

Thanks again.
 
Old 03-06-2006, 03:36 AM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
What I do is in my routers setup, there is a section for "Port Forwarding". I assign port 80 to the internal LAN IP of my webserver, and it works. (I also use DynDns. DynDns just points to your Internet IP. You have to tell your router where in your internal LAN the webserver is.).

Here is my webpage for my Slackware setup.
It's setup just as I stated: DynDns points to my Internet IP, then my router points/forwards to my internal LAN IP
 
Old 03-13-2006, 09:40 PM   #9
smudge|lala
Member
 
Registered: Jan 2004
Location: Hertford
Distribution: Mint | Sabayon
Posts: 151

Original Poster
Rep: Reputation: 15
Remedied the problem

hey guys, thanks for all your support and assistance. I finally figured out what was up.

My router WAS successfully forwarding the dyndns for me and anyone in the world could see my small home-baked website. The reason I couldn't see it was because I had no NAT to interpret the differene between a global address (http://mysite.com) and a serve inside my LAN. All I did was realise my router had no NAT translation, then just typed loalhost into my browser, or the IP of the server in my LAN into a browser, say http://192.168.1.2/ and viola it worked!

Thanks again for all your help. I am now happily hosting my first apache based website!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and WebDav download problem Arti Linux - Networking 2 07-29-2005 02:03 AM
Apache logs + webDav netcrawl Linux - Networking 0 04-21-2004 04:14 PM
webdav and apache 2 hescominsoon Mandriva 0 02-09-2004 08:05 PM
Dynamic Memory Allocation query dhanakom Programming 2 07-21-2003 03:19 PM
integrating WEBDAV and LDAP apache modules jasongonella Linux - Networking 0 10-30-2001 05:51 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration