Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Build an Internet Server on a Shoestring : Page 3

If you're thinking about setting up an Internet server but don't have much money, this article is for you. It describes how to build and deploy a Web server for under $250.00, using a broadband connection, Red Hat Linux and other free software—and a very small budget.


advertisement
Connecting to the Internet
The Roaring Penguin PPPoE (RP-PPPoE) software establishes and maintains your Internet connection from the service provider. The best way to install and configure RP-PPPoE is to use the Red Hat Package Manager (RPM) distribution (.rpm file), which is a file format designed for easy installation on Linux.

After installing and configuring RP-PPPoE, you can establish an Internet connection by running adsl-start, either from the command-line or from a startup script. To terminate the connection, run adsl-stop. To check the connection and see the IP address that was assigned to your server, run adsl-status.

Here is an example of running adsl-status from the command-line:

Red Hat Linux release 6.2 (Zoot) Kernel 2.2.14-5.0 on an i486 login: trose Password: Last login: Tue Sep 16 21:04:28 from 192.168.1.10 trose@stowie:~ $ /usr/sbin/adsl-status adsl-status: Link is up and running on interface ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:66.245.33.100 P-t-P:66.245.33.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:114192 errors:0 dropped:0 overruns:0 frame:0 TX packets:97349 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10

For more information, consult the documentation at the Roaring Penguin Web site.

Adding a Firewall
You could run your Internet server without a firewall—but only if you don't mind your server being pillaged.

RP-PPPoE comes with a script for configuring the Red Hat Linux firewall, ipchains. You will probably want to tweak it. At minimum, you will want to open port 80 for Web (HTTP) traffic, and if you are going to run an FTP server, you will want to open ports 20 and 21.

To set up ports and services, see Listing 1, which contains a script that sets up the server to allow HTTP and FTP traffic, and Listing 2), which lets anything move through your firewall (essentially turning it off). Using those two scripts as examples, you should be able to create modified scripts to allow or deny whatever services you wish.



Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date