| | |
Self Hosting
![]() |
just another quick 2 cents worth, i run an intranet webserver for 50 people useing php script. the platform is a pII 400 90Mb ram, running redhat 8.0 with apache. just pointing out hardware wise, if your only catering for a few people it doesnt take much. and its been up and running for 9 months with only one reboot (and thats because i pulled the wrong cable, derrr!).
spikes
spikes
Sure TheOgre, would love a lesson
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
•
•
•
•
Originally Posted by cscgal
Sure TheOgre, would love a lesson :)
Given:
- A webserver (listening on port 80) with an internal IP address of 192.168.0.5
- A mail server (using POP3 and SMTP) with an internal IP of 192.168.0.10
- A firewall/router (in this example, running IPFW and NATd on FreeBSD)
- An Internet connection using Optimum Online
- A properly registered domain (with a MX record) pointing to a dynamic IP
- A DNS redirector for the domain. In this example, our webserver is listening on port 6900, and the DNS redirector has been configured for this already.
Configuring IP routing for mail and web using IPFW on FreeBSD:
Edit your firewall config file and add a rule that allows all incoming traffic on TCP port 80 to be redirected to the internal IP of the webserver (192.168.0.5):
# fxp0 = outside (WAN) interface
add [rule #] allow log tcp from any to 192.168.0.5 6900 via fxp0
Then create a firewall rule allowing anything incoming on TCP ports 25 and 110 to be redirected to the internal IP of the mail server:
add [rule #] allow log tcp from any to 192.168.0.10 25 via fxp0
add [rule #] allow log tcp from any to 192.168.0.10 110 via fxp0
Save the changes and close the file.
Now we edit the natd config file to actually tell NATd where to route the packets. In FreeBSD, the file to edit is /etc/natd.conf.
#The format is: redirect_port proto inside_ip:port port(listening port)
# Allow mail traffic to the mail server:
redirect_port tcp 192.168.0.10:110 110
redirect_port tcp 192.168.0.10:25 25
# Redirect www passthrough to the web server:
redirect_port tcp 192.168.0.5:80 6900
Restart your net services, and you're done.
-OR-
If you use a LinkSys/DLink/NetGear router, just configure the port forwarding portion to redirect the ports to the IP:port and you're done :)
(I haven't done this in awhile on Linux, so I don't remember the commands for routing with DNAT and/or SNAT. Google has LOTS of examples, so I won't try to duplicate them here.)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
I never understood why you'd run a web site from home. The electricity, hardware, and software you spend (if you go with non-open source) costs more per month than a web host where you'd only pay $5.00 a month. I guess I can see why someone would want to do it, if you have special needs (something hosts don't provide) but if it's a basic site, I don't think it's worth it.
My two cents.
My two cents.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
•
•
•
•
Originally Posted by inscissor
I never understood why you'd run a web site from home. The electricity, hardware, and software you spend (if you go with non-open source) costs more per month than a web host where you'd only pay $5.00 a month. I guess I can see why someone would want to do it, if you have special needs (something hosts don't provide) but if it's a basic site, I don't think it's worth it.
My two cents.
As far as others are concerned, maybe they want to do it for fun, or to see how it works (the hacker idiology at work :), or for other personal reasons. A few of my associates started hosting their own sites for fun, and have since started their own hosting companies they run out of their house (on T-lines, not cable/DSL.) Who knows? Maybe some of the people in here will someday open their own business doing hosting. It makes it easier if you already know what you're doing, and learning it now might also help them in other ways (at the workplace, etc.)
For me, the electricity is already being consumed. The time it took me to get everything online is incidental for my purposes, since I wind up getting reimbursed for it sooner or later...
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
•
•
Join Date: Jun 2004
Posts: 19
Reputation:
Solved Threads: 0
Ultimately, I think it would be smarter to stick with a host. Simply because of the preformance you'll be providing your viewer, as well as your personal security. Unless you have an extra box laying around and you're going to use that for hosting your site, and nothing else... I don't think it's that great of an idea. The second a website is placed online, it becomes a target, and when you get some viewers looking for trouble, and they see it's hosted on your home computer, ew that could become ugly. Also, your DSL is pretty fast, but nothing really in comparison to the lines that data centers have... on top of that data centers have the back up power, fire supression systems, security, and wicked fast lines... and when you can get that for only $5 a month? I'd say go for it.
My 10 cents.. best of luck to you!
My 10 cents.. best of luck to you!
•
•
•
•
Originally Posted by Syneticus
Ultimately, I think it would be smarter to stick with a host ...
While that statement might be true for some, don't make it a blanket statement for everyone. I know a lot of people that don't HAVE the extra $5 it would cost them every month. They have everything else except the cash flow, so why shouldn't they if they know what they're doing?
I for one am sure as hell not going to pay a hosting provider for something I can do on my own, especially when the content is mainly for me and my clients, considering it's mostly projects I'm working on. I already pay for 4 hosting accounts that are for business - I'm not about to pay for one that I use for fun/testing/projects/learning.
I think the best advice for someone contemplating hosting their own website would be to do their homework, investigate the possibilities, the costs, the hours involved in the maintenance, security, and the LEARNING involved with the whole project. If you want a shopping cart with SSL and certificates and other bells & whistles, then I'd recommend paying for a hosting provider. If you're curious to see how it's done and want to have fun with it, GO FOR IT! You won't learn anything about it until you actually get a server up and running. (Just make sure you read your ISP's TOS and understand the consequences that might be imposed on you if you get caught.) And anyone who tells you not to for no good reason other than to hear themselves speak should be ignored. If they have a good reason, fine, but otherwise, tell them to go away.
Oh, and regarding your comment about "The second a website is placed online, it becomes a target...", any COMPUTER that goes online on a high-speed (broadband) connection becomes a target, regardless of what services it's running.
Aside from that, I think this thread has gone off on a tangent and should be locked.
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
•
•
Join Date: Dec 2004
Posts: 2
Reputation:
Solved Threads: 0
i just noticed you guys were talking about hosting ... so here it goes
i use Shaw Cable in canada and when i purchase a domain, it always asks for me a DNS ... i can't figure out where to get a DNS. i host a website over IP only ... i have a router and i can forward port 80 properly and everything ... i know what i'm doing ... can you give me a clue on how to get a DNS and what to do please?
i use Shaw Cable in canada and when i purchase a domain, it always asks for me a DNS ... i can't figure out where to get a DNS. i host a website over IP only ... i have a router and i can forward port 80 properly and everything ... i know what i'm doing ... can you give me a clue on how to get a DNS and what to do please?
•
•
Join Date: Jan 2004
Posts: 113
Reputation:
Solved Threads: 1
•
•
•
•
Originally Posted by soberanalyst
i just noticed you guys were talking about hosting ... so here it goes
i use Shaw Cable in canada and when i purchase a domain, it always asks for me a DNS ... i can't figure out where to get a DNS. i host a website over IP only ... i have a router and i can forward port 80 properly and everything ... i know what i'm doing ... can you give me a clue on how to get a DNS and what to do please?
Regards,
Martyn
![]() |
Similar Threads
- Why ZNet India - Dedicated Hosting - 100% Guaranteed Service Level Agreements (Web Hosting Deals)
- News Story: Salesforce Plunges Into Web Hosting (Web Hosting Deals)
- SIGNATURE HOSTING SITES (Site Layout and Usability)
- News Story: Popular Hosting Companies Merge (Web Hosting Deals)
- question about web hosting (Networking Hardware Configuration)
- Multiple Domain Web Site Hosting by HforHosting.com (Website Reviews)
- New HOSTING (Networking Hardware Configuration)
Other Threads in the Networking Hardware Configuration Forum
- Previous Thread: netgear and lynksys living together
- Next Thread: Final Yer Projects
Views: 10142 | Replies: 19
| Thread Tools | Search this Thread |
Tag cloud for Networking Hardware Configuration
802.11 802.11ac 802.11n bluetooth british broadband browserproblems bt cloud connection connectionproblem connectivity cpu data data-center desktop dual ethernet firewall gigabit gigabyte green growth hardware hong-kong ibm infrastructure internet memory mobile-apps network networking networks news office program rdimm reliability riched20.dll router routers server setup small storage survey technology telecoms troubleshoot uk upgrade videoconferencing view virgin wifi wireless wirelessnetworking






