Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to configure gentoo webserver outside LAN
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
fartas
n00b
n00b


Joined: 01 Mar 2007
Posts: 2

PostPosted: Wed Nov 26, 2008 7:28 am    Post subject: how to configure gentoo webserver outside LAN Reply with quote

Hi,

I have DHCP Internet routed by Linksys WRT54GL (flashed with Tomato firmware).

My gentoo box is connected to the Internet using Linksys wireless card WMP54G.

Webserver inside LAN is working well. (PC has static ip 192.168.1.10 - gateway is set 192.168.1.1)


How to configure Linksys WRT54GL / Gentoo box in order I can use my webserver outside my LAN? I have my own domain www.siek.com


Thanks for the answers
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Wed Nov 26, 2008 10:32 am    Post subject: Reply with quote

1. The domain needs to point to your external IP. If you don't have a fixed IP address from your provider it will get a bit more difficult. You could use dyndns.org but then you would have to establish a CNAME entry in the DNS Server für your domain.

2. In your router you have to enable port forwarding to your internal IP 192.168.1.10. Port 80 and, if you want to use SSL, also port 443 (both TCP only).

3. Normally, on the webserver side you don't have to configure anything special
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
fartas
n00b
n00b


Joined: 01 Mar 2007
Posts: 2

PostPosted: Wed Nov 26, 2008 12:47 pm    Post subject: Reply with quote

My external IP address is dynamic

I am not familiar with dyndns.org, but I created account with them and not sure what steps should I take - they are offering so much services....

all I can do is to create some host using their suggested domains...
like fartas.homeip.net Host 78.59.190.211 Nov. 21, 2008 2:42 AM

but I need to use my own www.siek.com

Can anyone be more specific - how I should to establish CNAME entry and etc....
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Wed Nov 26, 2008 8:06 pm    Post subject: Reply with quote

Do you have control over the DNS server which serves your domain? If not, you should ask your provider whether he is willing to enter a CName entry.

But be aware that this will not be the best solution. There might be times where your domain is not reachable due to IP address changes.

Basically you have to create a dyndns.org accound and domain. Then you install something* on your system which updates your accounts IP address after every change so that your dyndns.org domain always points to your PC. And here might be the gap in time.

Then, on the DNS server for your other domain you enter a CName Record which points to your dyndns.org domain. This will let all people resolv the IP using your dyndns.org domain instead of the real domain (without noticing).


*For IP updating I use:

Code:
[U] net-dns/ez-ipupdate
     Available versions:  3.0.11_beta8-r4 ~3.0.11_beta8-r5
     Installed versions:  3.0.11_beta8-r1(06:56:00 23.11.2007)
     Homepage:            http://ez-ipupdate.com/
     Description:         Dynamic DNS client for lots of dynamic dns services


but there are a lot more.
_________________
...it's only Rock'n'Roll, but I like it!
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