View previous topic :: View next topic |
Author |
Message |
djoshi2003 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Oct 2003 Posts: 23
|
Posted: Fri Apr 09, 2004 1:40 pm Post subject: dynamic ip, hosts, hostname, apache2, etc |
|
|
Hey, I guess I have a basic question. I have ip forwarding on blank.hopto.org to my box(or perhaps maybe my router. pinging works. Do I have to change my /etc/hosts /etc/domainname. and How can I get apache and courier-imap working along with this. Maybe a long question, but I couldn't really find the basic structure of how to set up the configs with a dynamic ip. thanks in advance |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
miunk Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/9281712184076db850b1ef.jpg)
Joined: 24 Sep 2002 Posts: 199
|
Posted: Fri Apr 09, 2004 2:54 pm Post subject: |
|
|
Since you have a router, depending on how good it is, I would do this:
Does your router update your dynamic dns automatically? Can your router lock a specific internal IP address (i.e. 192.168.0.2) to a specific MAC address on your network? Does your router have port forwarding?
If the answer to all of these is yes, then you can set your router to always give your web server the same internal ip address. Then set up port forwarding from the router to the web server on port 80 (or 8080, or whatever port you want, just make sure that apache2 is set up to listen on the same address - see "apache2.conf")
Start up apache and test it internally by going to "http://localhost/" or "http://localhost:8080" if you specified a port other then 80 (where 8080 = the port you specified).
I don't think you can test your dynamic dns address internally however, you'll need to get on a machine that is outside of your internal network (i.e. not behind your router) perhaps a friends machine or one at work. You could use this 508 compliance check website:
http://bobby.watchfire.com/bobby/html/en/index.jsp
It should work fine. If not just double check that your dynamic dns address is up to date, "ping blank.hopto.org" and check out the IP. Then compare this IP to the "WAN port" IP from your router.
Good Luck. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
al Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_flexo.gif)
Joined: 26 Dec 2002 Posts: 304 Location: Scotland
|
Posted: Fri Apr 09, 2004 6:26 pm Post subject: |
|
|
miunk wrote: | Since you have a router, depending on how good it is, I would do this:
Does your router update your dynamic dns automatically? Can your router lock a specific internal IP address (i.e. 192.168.0.2) to a specific MAC address on your network? Does your router have port forwarding?
If the answer to all of these is yes, then you can set your router to always give your web server the same internal ip address. Then set up port forwarding from the router to the web server on port 80 (or 8080, or whatever port you want, just make sure that apache2 is set up to listen on the same address - see "apache2.conf")
Start up apache and test it internally by going to "http://localhost/" or "http://localhost:8080" if you specified a port other then 80 (where 8080 = the port you specified).
I don't think you can test your dynamic dns address internally however, you'll need to get on a machine that is outside of your internal network (i.e. not behind your router) perhaps a friends machine or one at work. You could use this 508 compliance check website:
http://bobby.watchfire.com/bobby/html/en/index.jsp
It should work fine. If not just double check that your dynamic dns address is up to date, "ping blank.hopto.org" and check out the IP. Then compare this IP to the "WAN port" IP from your router.
Good Luck. |
It's amazing what a search can bring up.
I could access my web page via http://localhost but not via http://alunt2003.homelinux.org
but your remarks on not being able to access the page behind my router made me think,so i joined #gentoo on freenode.net and asked someone to check if they could see my web page and they could!
Previous to that i was even searching google to find out if my isp (btinternet) was blocking port 80.
You saved me a long evening of trying to figure it out!
Thanks a lot
![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Slurp53 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Jetsons/cartoon_the_jetsons_spacely.gif)
Joined: 14 Jun 2002 Posts: 255 Location: Iowa
|
Posted: Fri Apr 09, 2004 7:58 pm Post subject: |
|
|
Try mappping your internal ip address to your external url in your /etc/hosts file Code: | 192.168.0.xx alunt2003.homelinxu.org |
I do this with my webserver. That way when it goes to resolve the name it directs it back to the webserver.
![Smile :)](images/smiles/icon_smile.gif) _________________ "Welcome to the Pleasuredome" -- Frankie Goes to Hollywood |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
al Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_flexo.gif)
Joined: 26 Dec 2002 Posts: 304 Location: Scotland
|
Posted: Fri Apr 09, 2004 8:37 pm Post subject: |
|
|
Slurp53 wrote: | Try mappping your internal ip address to your external url in your /etc/hosts file Code: | 192.168.0.xx alunt2003.homelinxu.org |
I do this with my webserver. That way when it goes to resolve the name it directs it back to the webserver.
![Smile :)](images/smiles/icon_smile.gif) |
Ha,Ha That works!
It just gets better & better.
![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djoshi2003 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Oct 2003 Posts: 23
|
Posted: Sun Apr 11, 2004 12:55 pm Post subject: so far |
|
|
Well, so far, ironically, I've kinda followed the set up suggested...now I have every computer on the intRAnet accessing the server without a problem...just can't get access from the intERnet. I have an old linksys BEFSR41 router . I did a bunch of internet searches, and came up with changing the MTU value...still hasn't worked. any suggestions |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|