The Silicon Underground
  Welcome to Dave Farquhar's Silicon Underground Tuesday, November 24 2009 @ 05:12 PM CST  
Theme Changer
Change the look of the site by selecting a theme below:

What's New
STORIES
No new stories

COMMENTS last 48 hrs
No new comments

LINKS last 2 wks
No recent new links

Google Ads

User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User

Firefox


Setting up Freesco for port forwarding   
Monday, July 09 2001 @ 12:33 PM CDT
By David L. Farquhar

It's a little late, but here's how Gatermann and I got a Web server running behind a Freesco-based router. Freesco, despite the name, is a micro-distribution of Linux (based on the 2.0.x kernel) that offers firewalling, NAT, caching DNS, port forwarding, a lightweight Web server, and print services on a single floppy. Requirements are minimal; it'd run on a 386 with 8 megs of RAM, a floppy drive, and a pair of NE2000 NICs. For performance and ease of setup, I recommend a P75 (or faster, but a P75's overkill; the main reason to use it is to get PCI) with a pair of PCI NICs and 8 megs.

What NICs do I recommend? Avoid the new Netgear FA311. The older FA310 worked fabulously, but Freesco doesn't provide a module for the FA311's NatSemi chipset, at least not yet. (The source code for a module is available at scyld.com and it's compatible with the 2.0.x kernel, but compiling a kernel module isn't a trivial operation for most of Freesco's audience.) I'd probably go with a Realtek 8139-based card like a D-Link DFE-530TX+, a recent 3Com PCI card, or a PCI NE2000 clone. There's a modules archive you can download that supports most other common NICs. A pair of D-Links, a P75 board, a floppy and this disk ought to give you nearly plug-and-play operation.

Enough of that. Here are the answers to the questions Freesco asked, in order.

Boot off the floppy. When it asks what you want to make with it, select ethernet router. Hostname doesn't matter. Accept default for domain name, unless you've registered a domain for your LAN.

Don't detect modems. Select two network cards. If you are using PCI cards, answer 0 to next four questions (IRQ, I/O). If you're using ISA cards, enter the addresses and IRQs the cards use. DHCP? Depends on your ISP.

The first card's name is eth0. (This is the card for your cable/dsl modem). Don't use dhcp logging. Don't update DNS by DHCP. Second card is eth1. Give it an IP address (10.x.x.x is fine, which is Freesco's default; normally I use 192.168.1.x network and put my router on 192.168.1.1). Network mask will almost always be 255.255.255.0. I don't configure for DHCP, so I don't give it an IP range. if you want one, tell it the range of addresses you want to reserve. The fewer the better, for memory purposes, especially if you've only got 8 MB of RAM in the box.

Caching DNS? Answer S (secure). Don't log.

Enable DHCP? Depends. If you don't want to configure your LAN manually, DHCP is nice. If your LAN is already configured, DHCP is probably more trouble than it's worth.

Public HTTP server. Answer Y. Default is S. Port 80. (You might be able to get away with answering N here, and you'll save a little memory. DO NOT answer S--you'll never forward port 80 if you do.)

Time server via HTTP? No.

Print server. No.

Telnet server. no.

Screensaver/spindown? 5 min is fine.

Swap file--0 if you have 8 mb or more. I suppose you could run Freesco on some tiny machines if you put in a small hard drive and enabled the swap file, but as cheap as a P75 with a pair of 4-meg SIMMs is these days, I wouldn't bother.

Extra modules/programs? No.

Log: take defaults.

Host gateway--depends on ISP. Check one of your other PCs and use it.

Primary/secondary DNS. Use your ISP's. Proxy, probably none. Check your ISP.

Export services? YES. This is the magic forwarding formula.

Now, assuming your web server is on 10.42.42.3, you'd use this line in config:

t,80,10.42.42.3/80

If you want to export other services, like, say, IMAP on port 143, add additional lines, subbing in the appropriate port and IP address. (HTTP is port 80.)

Pick a root password and web admin password, save configuration and reboot. You're up and going.

Now, to configure your Windows boxes to get their Internet connection through your lovely what-was-old-is-new-again Freesco router, just open your TCP/IP settings, give it an IP address on the same subnet as your Freesco router if it doesn't already have one, and set your gateway and DNS to the address you gave your Freesco router.

Voila. Configure your system's BIOS for keyboardless operation if it has such an option, then take the keyboard and monitor away, write-protect the floppy and make a backup of it just in case (or burn it to a bootable CD if the machine is capable of booting off CD and you have an old drive to put in it) stick the box in a corner somewhere, and forget about it. If you have a power failure, it'll reboot and happily start itself up again. As for stability, I find Freesco, in combination with decent hardware, is more stable than the hardware routers that are popular these days. Since it has a caching DNS, it'll usually give you better performance too. And since you can probably build one with parts you have laying around, it's cheaper.

  [ Views: 4628 ]  


Setting up Freesco for port forwarding | 12 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
David Thorarinsson
Authored by: ImportedComment on Monday, July 09 2001 @ 07:44 AM CDT
Hi Dave,

Can't wait to try this at home!

/Dave T.

[ Reply to This ]

Rich~!
Authored by: ImportedComment on Monday, July 09 2001 @ 11:57 AM CDT
Now this is realy useful.

I'll have to try this.

[ Reply to This ]

Paul
Authored by: ImportedComment on Saturday, January 12 2002 @ 05:11 PM CST
This is great! The manual on the freesco pages doesn't even come close!

[ Reply to This ]

CyBeRdUdE
Authored by: ImportedComment on Tuesday, March 19 2002 @ 05:59 PM CST
TNX dude! it works now

[ Reply to This ]

mazlan
Authored by: ImportedComment on Friday, April 19 2002 @ 11:56 AM CDT
i'm isa user.how do i know my isa nic irq and port.

[ Reply to This ]

Synik
Authored by: ImportedComment on Tuesday, April 30 2002 @ 07:11 AM CDT
Re: ISA User.... get hold of the DOS setup disks for your card and use the config to read your IRQ and IO values.

[ Reply to This ]

Synik
Authored by: ImportedComment on Tuesday, April 30 2002 @ 07:12 AM CDT
Re: ISA User.... get hold of the DOS setup disks for your card and use the config to read your IRQ and IO values.

[ Reply to This ]

Synik
Authored by: ImportedComment on Tuesday, April 30 2002 @ 07:14 AM CDT
Re: ISA User.... get hold of the DOS setup disks for your card and use the config to read your IRQ and IO values.

[ Reply to This ]

Synik
Authored by: ImportedComment on Tuesday, April 30 2002 @ 07:16 AM CDT
Re: ISA User.... get hold of the DOS setup disks for your card and use the config to read your IRQ and IO values.

[ Reply to This ]

Vincent
Authored by: ImportedComment on Tuesday, September 17 2002 @ 08:19 AM CDT
how can I get DHCP + port forwarding working? I only know the name of the server, but not it's ip-adres. 'Just hardtype it's ip-address' won't do for me!

[ Reply to This ]

Dave Farquhar
Authored by: ImportedComment on Tuesday, September 17 2002 @ 10:10 AM CDT
Ping the server's name (open a command prompt, then type PING [server-name]) and make note of the address and use that.

[ Reply to This ]

deoren
Authored by: ImportedComment on Monday, October 13 2003 @ 10:16 PM CDT
Dave, great site man! I came here for this page and came across "How to Pray". Awesome article!

I hope you keep up the good work and always keep integrity and truth as your way to work your "art".

Also, for everyone here with questions about Freesco, check out http://forums.freesco.org .

It's a support forum dedicated to support for Freesco. Wish everyone the best of luck.

[ Reply to This ]

What's Related
  • Freesco
  • scyld.com
  • More by DaveF
  • More from Linux

  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • Calendar
    November 2009
    SuMoTuWeThFrSa
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    Click on any day to see postings and events for that date.

    Referrals

    Top 10 by Comments
    Story TitleComments
    Cheap laptops from Sotec 253
    An untrustworthy vendor 164
    Upgrading an eMachine 125
    eMachine upgrade advice 99
    Why I dislike Microsoft 51
    Upgrade diary: Gateway G6-400 35
    And we're live 30
    The day after the Columbia 22
    How to pray 22
    CD-ROM troubleshooting under Windows 9x 20

    Top 10 Read
    Story TitleViews
    eMachine upgrade advice 74353
    Upgrading an eMachine 63104
    How to view a blg file in Windows 2000 50661
    Cheap laptops from Sotec 32806
    Upgrade diary: Compaq Presario 7360 20003
    Upgrade diary: Gateway G6-400 19880
    CD-ROM troubleshooting under Windows 9x 15558
    Finding an open-source alternative to Ghost 14300
    Big trouble 13827
    Salary cap? Baseball needs something 11806

    Topics
    Home
    Apache (2)
    Baseball (63)
    Book reviews (2)
    Business (1)
    Christianity (57)
    Cooking (1)
    Copyright (16)
    Curmudgeonry (1)
    Design (7)
    DOS (6)
    Games (4)
    Genealogy (11)
    General (507)
    Hardware (168)
    Health (13)
    Human Interest (9)
    Humor/Satire (19)
    Investing (4)
    Journalism (1)
    Linux (93)
    Macintosh (22)
    Model Building (3)
    Music (33)
    net.culture (40)
    Personal (88)
    Photography (6)
    Politics (3)
    Retro Computing (26)
    Saving money (72)
    Servers and Networking (18)
    Society (49)
    Software (55)
    Spam (13)
    St. Louis (23)
    This weblog (14)
    Toy trains (74)
    Troubleshooting (7)
    Useless Trivia (1)
    Vendors (6)
    Video (21)
    Viruses (12)
    Windows (120)
    Writing (16)

    Older Stories
    Wednesday 30-Sep
  • 401(K) Paperwork (0)

  • Sunday 27-Sep
  • First impressions: HP Mini 110 (1)

  • Saturday 26-Sep
  • Getting more screen real estate in Firefox (0)

  • Wednesday 23-Sep
  • Barfy. (4)

  • Monday 21-Sep
  • Why I quit my job (2)

  • Saturday 12-Sep
  • Slimming down Windows XP for SSDs and nettops (0)

  • Thursday 10-Sep
  • And... bailing out. (3)

  • Friday 04-Sep
  • End of the innocence (0)

  • Monday 31-Aug
  • Installing Windows off USB (1)

  • Friday 21-Aug
  • Diving into real estate (0)

  • Who's Online
    Guest Users: 8

    Syndicate!
    Get your RSS/RDF fix here.

    List of all stories
    Click here for a list of all the entries on this site


    Created this page in 0.98 seconds


     Copyright © 2009 Dave Farquhar's Silicon Underground
     All trademarks and copyrights on this page are owned by their respective owners.

    Powered by GL 1.3.x