QUOTE (BobLfoot @ Jul 4 2009, 02:17 PM)

I work with PLCs for a living and have always known just enough about PCs and Networking to be dangerous. I've got a question about setting up my home network and firewalls etc. Right now I use a Linksys router to connect my home PCs to my DSL router and the internet. On the wireless side I used WEP and non-broadcast. For the connection to the modem I turned on the Linksys Firewall, blocked some ports and checked performance thru GRC.Com.
All looks pretty good, but I was wondering. I've been reading about people setting up a PC running Linux to serve a the router and Firewall. Letting the Linux PC replace the routing functions of the Router. Does that mean the PC needs multiple ethernet cards? Or what exactly happens in that scenario. Can a more PC Guru minded member explain it to me? And remember you're talking to a networking neophyte.
Yes, Linux works great for that. Even better is OpenBSD since this is the most secure operating system in existence at the current time, even compared to Cisco routers. *nix PC's are faster than routers until you get into the 5 digit figure range for routers. Example of how simple a router can be:
http://www.freesco.org/Example of how much performance you can expect from a PC-based router vs. Cisco equipment:
http://www.vyatta.com/downloads/other/Vyat...ement_Guide.pdfKeep in mind that the bootup time can be quite long for Cisco equipment and that the primary limitation on a PC is the OS bootup time. If you run it without say X Windows and various other "nice to haves" running (strip out everything not needed), bootup times with current versions of Linux are measured in seconds.
Another nice thing is that you can trivially do "firmware upgrades" on your router, and that it will support far more standards in terms of configuration than I ever get with Cisco stuff. You can also go absolutely crazy with the firewall functions which are far better than the hardware-based ones. And you can also load up the PC with various "DMZ" functions such as acting as a file or web server, realizing of course what the primary mission is should you choose to do this.
As to multiple Ethernet cards...picture your router. How many Ethernet ports does it have? Yep, two minimum. One faces the LAN. One faces the WAN. You need this to physically isolate everything. Otherwise, you'll have WAN packets traipsing across your secure LAN. Not good. If you have lots of ports, you can attach other things of course but at the prices that Ethernet switches are going for these days, that's kind of pointless.
Case in point: a major WISP (wireless ISP) in Central Oregon uses a fast OpenBSD router for their entire system, and they handle megabits (multiple T3's) worth of traffic over the WAN. The primary reason for doing this might surprise you though. It's not a performance/price issue. It's simply that they are using Motorola's wireless gear which is extremely good for wireless WAN's as far as the radio/hardware goes. But apparently the router and DHCP functions are not...they crash and they have a bunch of performance issues. On the other hand using PC's for the routing/DHCP functionality, they can push tens of thousands of packets per second without breaking a sweat, and the stuff is less expensive (easier to replace if something goes wrong) and faster.
You can also have the PC do wireless AP functions depending on the card. The WRT54G is a rather famous and extremely programmable wireless NIC that can be used to do this kind of thing.
As mentioned earlier, "WEP" is anything BUT equivalent. It uses a screwed up version of a really good stream cipher. That's two strikes against it. Stream ciphers are NOT meant to be used in block mode (reset after every packet), and the particular cipher they use is secure if you throw away the first few bytes of output (it leaks a bit of your key in the first few 4-5 bytes, especially the second byte). WEP does neither and hence the reason that with every packet, it leaks a little more key. By forcibly sending bogus packets at the AP, you can actually collect enough pieces of the key to decrypt it in the clear in a few minutes with current WEP hacking software.
If you can, try to use WPA (or WPA-2) for security. If you can't, then use WEP-128 as a minimum.
Also, not-broadcasting SSID is nice but want to know what's even better? Lock down the MAC's at your AP to only accept your chosen list. It is still possible to hack it (by spoofing a known MAC) but this is a level of sophistication that you hardly ever see, while you can trivially hack WEP with downloadable software. Hiding your SSID makes it more difficult but there's software to take care of that problem, too.
As to performance...an Ethernet card for the most part is simply going to receive the packet into memory. It's not going to handle analyzing and processing the packet at all. If you are under 100 Mbps I wouldn't worry anyways...almost any PC can handle full 100 Mbps full streams without a sweat, and I haven't heard of too many people with multiple T3 capability for a "home LAN" except for perhaps Mr. Gates. As you get into the gigabit range, the PC front end becomes a serious bottleneck. The way around it is to use "TOE" (TCP/IP Offload Engine) which moves the TCP/IP front end processing from the CPU onto the NIC card. This is critical in getting maximum performance if you are doing gigabit+ iSCSI (hard drive connections over Ethernet).
http://www.10gea.org/tcp-ip-offload-engine-toe.htmFortunately these days, TOE cards aren't very expensive especially in comparison to the usual source for those hard drive services (SAN's, at a price tag of $5K-$500K depending on which vendor you are talking to), and much cheaper than a FibreChannel switch and/or NIC cards.
So...the short answer is yes, if you have a spare PC laying around, Linux or a modified (stripped down) *nix box makes a great router if it has two Ethernet ports. For space/power/heat reasons at the very low end (home router) though, personally I still use an off-the-shelf router and I'd recommend the same to everyone else. Trouble is a lot of them are very cheap (as in buggy as all get out and unstable). Try to find something that appears to be targetted more towards the business market if you can (expect to pay around $200 US).