Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dynamic ip, hosts, hostname, apache2, etc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
djoshi2003
n00b
n00b


Joined: 11 Oct 2003
Posts: 23

PostPosted: Fri Apr 09, 2004 1:40 pm    Post subject: dynamic ip, hosts, hostname, apache2, etc Reply with quote

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
View user's profile Send private message
miunk
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 199

PostPosted: Fri Apr 09, 2004 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
al
Guru
Guru


Joined: 26 Dec 2002
Posts: 304
Location: Scotland

PostPosted: Fri Apr 09, 2004 6:26 pm    Post subject: Reply with quote

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

:D
Back to top
View user's profile Send private message
Slurp53
Apprentice
Apprentice


Joined: 14 Jun 2002
Posts: 255
Location: Iowa

PostPosted: Fri Apr 09, 2004 7:58 pm    Post subject: Reply with quote

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.

:) :)
_________________
"Welcome to the Pleasuredome" -- Frankie Goes to Hollywood
Back to top
View user's profile Send private message
al
Guru
Guru


Joined: 26 Dec 2002
Posts: 304
Location: Scotland

PostPosted: Fri Apr 09, 2004 8:37 pm    Post subject: Reply with quote

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.

:) :)


Ha,Ha That works!

It just gets better & better.



:wink:
Back to top
View user's profile Send private message
djoshi2003
n00b
n00b


Joined: 11 Oct 2003
Posts: 23

PostPosted: Sun Apr 11, 2004 12:55 pm    Post subject: so far Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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