|
Linux Router Project (LRP): This project is based on Linux 2.2 kernel. Newer network cards typically do not supply Linux 2.2 kernel drivers, this project is on a "legacy track". This tutorial demonstrates the detailed steps on how to build a low-cost, extremelyreliable, high-performance, industrial-strength, firewalland networkaddress translator for protectingand/or sharing PCs behind a cable modem or DSL modem inresidential, commercial or industrial settings. This LRP firewall can handle multiple-client pass-through of MicrosoftPPTP-VPNand it has secure and encrypted remoteadministration capability when used in the optionalhard-disk or Compact Flash or IDE-ZIP disk mode. How to transform an old 486 PC to a professional print server, see this page. A miror of this LRP Site is hosted in Bucharest,Romania A mirror of this LRP Siteis hosted in Curitiba, Brazil (in Brazilian Portuguese) Scope and purpose of this tutorial: Previous experience with Linux or Unix is not needed. |
|
The software used to build this firewall is free, under various Open Source licenses,it only costs you time to assemble them together. If you collect all the necessary information and hardware, youcan do this project in one or two evenings. Acookbook-recipe approach is chosen so that youcan build a robust Linux firewall / share-box by following thestep-by-step procedures; you don't need to know the cryptic Unix orLinux commands, although in the process of building the box, you maylearn a few commands. |
|
|
Hardware: A surplus 486-66MHz PC ora low-endPentium PC. For extremely demanding applications, try a 500 MHz Celeron/Pentium with two Intel PRO/1000 MT Gigabit Ethernet cards. |
|
|
|
Two (2) Ethernet network adapter cards: note Click here to see a full listof Ethernet network cards supported by this project. Caveat: Do not combine an ISA NE2000 and a PCI NE2000on the same motherboard. The software drivers get very confused. Samples of network cards supported by this project: ISA - 3COM 3c503, 3c507, 3c509,3c515 Confused, or in a rush to get started, hereare some suggestions. If you must buy new PCI network cards for the project,consider these moderately priced cards: Realtek 8139 chipset (usertl8139 driver), D-Link DFE530-TX (use via-rhine driver), Novell2000 compatible Realtek 8029-based PCI card (use ne2k-pci driver),Netgear FA311 or FA312 (use natsemi driver), US Robotics USR7900 (usetulip driver), Sohoware SFA110 (use tulip driver). If you must buy new PCI network cards and you have lots ofmoney, consider these top-tier Ethernet cards: 3COM 3c905 (use3c59x driver), Intel Pro/100 series (use eepro100 driver), Intel PRO/1000 MT (use e1000driver), or generic cards based on the DEC/Intel 21*4* chipset(use tulip driver). Caveat: These fast 10/100 Mbps full-duplexcards may be too fast to talk to some models of cable modems with onlya half-duplex 10 Mbps Ethernet design. Terayon cable modem is one ofthose older designs |
|
Preparation: |
|
Identify |
Identify the MAC address: PCInetwork cards: There is no need to setup PCI cards. ISAnetwork cards setup: 3c503: 3c509: 3c515: NE2000-ISA clones, Realtek 8019 chip: (Novell2000 clone) D-Link DE-220, Allied Telesyn AT2000, KingstonKNE2000 Intel EtherExpress 16 Intel EtherExpress Pro/10 and Pro/10+ (i82595TX and i82595FX) SMC 8416 EtherEZ SMC 8003/8013 EtherCard Plus family cards, use on-cardjumpers to set: Notes: |
Creating a boot floppy for LRP, step by stepprocedure
|
(1) Install winzip andwinimage on your PC. (2) Download and save this base image. (3a) Download and save the appropriate networkcard driver package (3b) (3c) Invoke winimage, drag and drop the base image (from step 2) init. You should see something like this.Drag and drop the appropriate modules.lrp, (step 3a) etc.lrp(step 3b) and syslinux.cfg (step 3b) into the winimage window.Winimage should now contain 12 files and it should looksomething like this. Save your newlyassembled image [at the winimage window, click File... Save]. (4) Insert a new, high-quality, blank floppy disk indrive A, click Disk...Write to create a LRP boot-floppy. (5a) (5b) (5c) (5d) (6) Before unplugging yourexisting Windows computer that is connected to the cable modem or ADSLmodem, it is advisable to release the IP address first. Click here on how to release the IPaddress. Power up the firewall with the LRP boot-floppy in drive A.The first-time and second-time boot up may take 5 minutes (apparentlystuck on syslogd) due to the lack of proper IP address. login in as rootthen type q to drop to the # prompt. (7) It may be advisable to power-down/power-upyour cable/DSL modem to purge its memory of existing Ethernet card'sMAC address. Sometimes you may have to releasethe IP address to your ISPbefore powering up the LRP. Power off your LRP firewall. (8) Connect eth0 to the cable modem/DSL,connect eth1 your internal network hub (seethis diagram). Power up the cable modem/DSL modem until it becomes stablethen power up the LRP firewall. (9) The majority of residential ADSL andcable-modems use "dynamic IP", in that case, proceed to step(10). If for whatever reasons,you have "static IP address", jump tothis page. (10) If you use dynamic IP, you mayhave to jump through some bizarre hoops to keep your DSL orcable modem company happy. Here is how to jumphoops. (11) ConfigureDHCP (on the LRP) for your location: (12) Reboot the LRP firewall. (13) To configure other PCs in your internalnetwork, see this page. (14) Surf happily everafter. If you have troublegetting LRP to work, see thistrouble-shooting guide.
(15) You may want to disable the power-savefeature of the BIOS so that the CPU doesnot go into low-power mode (which degrades the performance of the LRP)when there is no traffic going through the firewall. Thanks to PaulSorichetti of Ottawa, Ontario, Canada for discovering this point. (16) Optional, Advanced: If you have static IP addressor quasi-staticIP address AND your "ADSL or Cable Modem User Policy" allows you to runa web server, e-mail server, NetMeeting orpcAnywhere server from your inside network, see this page on "port forwarding".
(17) Optional, Advanced: If youwant to build a LRP firewall that boots fromIDE hard disk or Compact Flash or IDE-ZIP drive, see this page. (18) Optional Advanced: If you want to telnet to your LRP firewall, see this page. (19) Optional Advanced: If you want your LRP to use local time zone or use SNTPto synchronize to time servers, see this page. (20) Optional: You may want to remove the hard disk to reduce powerconsumption and reduce noise. |
|
References: Technical synopsis: MSN Messenger Others: |
© 2000-2010 Nicholas Fong, e-mail![]()
Last revised August 23, 2010


























浙公网安备 33010602011771号