As you suggest, there are essentialy 2 solutions.
1 - Software
Setup a PC with 2 NICs, one to connect to your broadband "modem", the other to your other PC (with a roll-over cable) or to a simple "hub". Assuming Windoze, setup Internet Connection Sharing (ICS) on the 2-NIC PC. You might also need to install ICS client on the other PC(s).
You should also put a software firewall on the 2-NIC PC (ZoneAlarm or BlackICE). Note: Proxy is NOT = Firewall.
2 - Hardware
Get one of those cool little Cable/DSL routers. Plug the WAN port into your broadband "modem". These boxes typically come with 4 10/100 Mbps switched Ethernet ports. Most of then come with DHCP server and Firewall capabilities (including NAT/PAT: Network/Port Address Transtlation). The one I use (Asante) also comes with a Print Server.
Cost? With option #1, you need to have BOTH PCs running to use the Internet from the "other" PC. The router solution is running around USD100, currently. (It is a very competitive market.) I think the capital cost of the router is paid off by:
- the usefulness of the box
- the (fact) that I don't need to always ensure my "gateway" box is up
- the (fact) that I am not stealing horsepower from a "gateway" box to allow other users to access the Internet
- my impression that the H/W is a better FW than the S/W (with it's underlying unsecure O/S!)
- flexibility (I can go up to 254 systems on my setup just by adding cheap little switches - although if I ever got to that point at home, I think I'd want to upgrade my link ) (I can also upgrade to WLAN at anytime)
- and so on