LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2007, 09:19 PM   #1
a6april
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Web server Static Ip From Home


Hello all, I am a newbie. I am building a web server for home use using an old machine I have and am putting web server software on it and am having a problem finding an inexpensive solution for a static ip. I am using dsl verizon and they frown on home use of static ip, but happy to provide me one if I take out a 2nd mortgage. Is there a way to trick the dsl modem into a static ip address or is there an inexpensive service out there. I am probably looking in the wrong places or not asking the right questions, any advice will be appreciated.
 
Old 10-10-2007, 09:42 PM   #2
hostpc
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Assuming this box is behind a router, assign a static ip to this box, such as 192.168.0.40 - then set your router to redirect all port 80 calls to the .40 server.

You can use something like dyndns.com to easily "find" your box wherever you are.
 
Old 10-10-2007, 09:50 PM   #3
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Hostpc's trick is fine, but it will not give you a static real world IP. You would have to use a dynamic name service like dyndns.org/com to find your machine.

There is nothing you can do to force your provider to give you a static address. That is their choice, not yours. At the same time, I'm on a dynamic IP cable modem, and my address hasn't changed in the last 8 or so months. If you leave your router on all the time, odds are good you'd keep the same address for quite a while. That's not a guaranteed truth, just something I've seen from experience.

Peace,
Jim
 
Old 10-11-2007, 03:13 PM   #4
a6april
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
web server ip static

I asked the support over at dyndns.com to see if I could use their service to help me out with this and got the response:

Quote:
Your IP address must be updated when it changes in order to connect to your server.

Have a great day,
Chris
I assume this means I can't do this or just do what you said in the previous response?
 
Old 10-12-2007, 12:43 AM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The dyndns client does that exactly. Your machine signs into their system with a username/pass, and the IP used by your connection gets logged and linked to an address, like yourname.dyndns.org.

Their service is free, and works well for having a home website on a dynamic address.

Peace,
JimBass
 
Old 10-12-2007, 01:44 AM   #6
teluguswan
Member
 
Registered: Oct 2005
Posts: 116

Rep: Reputation: 15
I also tried bit confusing some more discription like step by step can you provide please it will be very help full for all of us
 
Old 10-14-2007, 12:00 AM   #7
a6april
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
home server

So you mean I go there I see several services, mail hop, http referer and 4 or 5 dns services, which free service are you referring to?

Quote:
The dyndns client does that exactly. Your machine signs into their system with a username/pass, and the IP used by your connection gets logged and linked to an address, like yourname.dyndns.org.
Does this also mean my web address would be whatever.TLD.com or in this case www.mywebserver.dyndns.com)

This would bring the next question of what hostpc said:

Quote:
assign a static ip to this box, such as 192.168.0.40 - then set your router to redirect all port 80 calls to the .40 server.
I haven't obtained any new hardware yet, should I be compiling a list of things that you may recommend I don't want to get to a shoulda, woulda, coulda phase.

Thanks again in advance for all your help
 
Old 10-14-2007, 02:17 AM   #8
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
This is the free service you want from dyndns - http://www.dyndns.com/services/dns/dyndns/

Quote:
Does this also mean my web address would be whatever.TLD.com or in this case www.mywebserver.dyndns.com)
I do mean that, although your use of TLD is incorrect. A simple "domain" would have been better. TLD stands for Top Level Domain, which are the things like .com, .net, .org etc. Dyndns.com is a domain, and you would be subdomain.domain.com.

You will have to assign a local static IP to your linux machine holding the website. There are dozens of ways to do that (static defined on the server, static assigned by the DHCP device by fixing the MAC of the server to a given address). There are also many different ways of setting up the network. You could do it with just a router forwarding port 80 to the linux server, but I would suggest getting a firewall in place as well. That can be a simple software firewall (IPtables) run on the linux machine, or you could setup an old machine as a smoothwall firewall (distro designed to be a simple-to-use firewall) or get a low end hardware firewall, or a great hardware firewall (Cisco Pix or better). Which one is right? Any or none of them. You do want to protect your server, so something needs to do that, but you do need less protection if you're only serving non-interactive data, and you do need more if you run php and still more if you have a database. Every additional piece of your website is also a security risk to some level, so plan accordingly.

Peace,
JimBass
 
Old 10-15-2007, 01:14 PM   #9
a6april
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
web server

Wow Thanks Jim I will work on that and let you know how it turns out, Thanks again!!!
 
  


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
Internal network static IP, dyndns account connects to wrong home server Brian5 Linux - Networking 2 10-02-2007 08:32 PM
home web server croned Linux - Networking 11 05-01-2005 08:37 PM
Static IP and Web Server from cable Broadband cool_hussu Linux - Networking 2 04-16-2005 09:13 PM
Home Web Server procyon Linux - General 4 01-23-2005 06:12 PM
web server at home? amishdisco Linux - Networking 3 03-24-2004 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration