r/linuxprojects • u/songandsilence • Jan 04 '13
Request [Request] Network gateway/router from an old desktop?
I'm going to be setting up an old desktop as a internet gateway. I've got two wifi cards, the onboard ethernet, and a wired network hub.
One of the wifi cards will be used soley for connecting to an outside network using a modified antenna (I have the network owner's permission) and the other will be used for my wireless devices. The onboard ethernet is just going to hook into the network hub.
How might I go about doing this?
7
Upvotes
4
u/[deleted] Jan 04 '13 edited Jan 04 '13
Did a bit more digging and research, and while I don't have the perfect answer, here are a few more solutions:
4
u/sudosuinit5 Jan 04 '13 edited Jan 05 '13
A few years ago I had a similar setup with pfsense where we connected two students houses via wifi. It was an old P3-350Mhz board with the OS installed in a 2GB CF card connected to the IDE port (with a CF to IDE adapter). For the installation I temporary connected a CD-DRIVE and the board was put in an old cardboard shoe box and I used an old laptop power supply to power this board and to make it silent (neither the CPU was cooled by a fan). The box would run headless and was managed via shell and the web interface. There was also a 128MB USB stick plugged in to store the configuration in case of a reboot. It ran flawlessly.
EDIT:
Assuming both network connections have a gateway to access the WWW and you want this setup for speed and redundancy, then you can have multiple WAN adapters in pfsense. (check the wiki and/or forums)
3
u/wetpax Jan 04 '13
I've done something similar to this a while back. pfSense and SmoothWall are good free options. Another option although not free is RouterOS.
1
u/EndUsersarePITA Jan 17 '13
Oh man, 12 days late. Sorry.
Anyways, if you are serious about building a gateway/firewall, there is no better guide I can recommend than Drokmed's. My corporate firewall is the based on his guide.
His last posting on the ubuntu forums : Ubuntu Forums
Link to actual guide : Google Doc
This is a guide to a basic gateway. From there its quite simple to modify it to fit your needs.