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
Last login: Tue Sep 16 21:04:28 from 192.168.1.10
adsl-status: Link is up and
running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:18.104.22.168 P-t-P:22.214.171.124
UP POINTOPOINT RUNNING NOARP MULTICAST
RX packets:114192 errors:0 dropped:0
TX packets:97349 errors:0 dropped:0
For more information, consult the documentation at the Roaring Penguin Web site
Adding a Firewall
run your Internet server without a firewallbut 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.