FreeBSD Based Gaming Router 240
Zaphoid writes "Lan Game Reviews has posted an article on how to use an old computer and FreeBSD distro m0n0wall to create a gaming router. Gaming routers allow users to use their full bandwidth for downloads and other high bandwidth apps, and low latency applications at the same time. By keeping packet queues on the router side, rather than the modem side. Users are able to achive great pings in online games, while fully using their download bandwidth. This is a great alternitive to expensive gaming routers on the market today."
Double standard (Score:3, Interesting)
Yes, this is exactly what the gaming world has been waiting for. The funny thing is that when somebody tries to create a product that is designed for USERS, they complain. However, when you design something so obscure out of your own whim that might never be used by anybody else, that is considered cool. Discuss.
Re:Double standard (Score:5, Informative)
Re:Double standard (Score:2)
Re:Double standard (Score:2)
Re:Double standard (Score:2, Informative)
Evidently they do or there wouldnt be much of a market for higher preformance gaming routers with 200mhz processors and 32MB of ram
>we're talking about very meager amounts of data, very little CPU usage, and very little buffering.
You're deluding yourself, pushing the amount of packets you can over a decent broadband connection preforming address translation, and any kind of moderatly sophisticated firewalling or queueing is pr
Re:Double standard (Score:2, Interesting)
What does that have to do with 386 vs PII for a BSD-based router/firewall? Well, I don't know since I'm not really sure how a 68030 stacks up to a 386 clock-for-clock. Just some food for thought.
Re:Double standard (Score:2)
Comment removed (Score:4, Insightful)
Maybe it's just for fun. And it's cheaper. (Score:2)
HMmmmm (Score:2)
Yhea right!
Save themselves and their techy friends some trouble and have them go buy that router
Re:HMmmmm (Score:2)
Actually this may be a good idea to implement for my brother, who's always complaining his Xbox Live sessions are interrupted by my downloads. And it so happens I have an old P166 Laptop that has 2 PCMCIA slots, and 2 NICs...
Fantastic point (Score:2)
Gamers installing FreeBSD on a router, thats just crazy.
Re:HMmmmm (Score:2)
Well, I did this half a decade ago. Setting up so-called "pipes" connected to packet queues in FreeBSD is really simple. Back when I first setup this "router" I had a 802.11a radio pointed at a mountain top seven miles away; one must rate limit such connections lest all the other users get really angry. Later, while using ISDL (128kbps ISDN repackaged) I used rate limits t
FreeBSD? (Score:4, Funny)
Interesting, but I don't know how well this is going to work, given FreeBSD's crappy TCP-IP stack [slashdot.org]. ^_^
Re:FreeBSD? (Score:2)
Re:wtf? (Score:2)
Re:wtf? (Score:2)
Firmware? 66Mhz? (Score:3, Informative)
And That Old Pentium's 66Mhz backplane is so much more then enough to push around a cablemodem's maximum throughput.
If you actually read the article, you'd see that this is a distribution of one of the BSD's that is trimmed down and web-interfacified making it extremely easy to install and configure. Ins
Re:wtf? (Score:3, Interesting)
Your typical cable routers "firmware" is either pf/netfilter or something very similiar, and isn't imparted any speedup.
If your box did something like l7-filter in hardware, then you'd have an argument...
Re:wtf? (Score:3, Informative)
Stateful firewalls know all they need to know about TCP/IP to handle packets on a per-connection level. The game is running on another system, so the firewall need only needs to get a packet out onto the appropriate interface. I know PF can do this at the firewall level (see the fastroute keyword). Even if it does have to use the network stack (IPFW or IPF might not be able to route independantly, I'm not sure) FreeBSD can rout
More to the point, and actually seriously... (Score:5, Insightful)
It's important, because although FreeBSD does have SOME of ALTQ, and SOME of KAME, it does not have the most recent code and (certainly in the case of KAME) not even all of the older code.
Some people mentioned crashes with sessions, in other posts. I couldn't prove these were due to things like ALTQ or KAME, but it is entirely plausible that it is due to something of that sort. The *BSD folk have some of the most complete, not to mention some of the most powerful, networking code out there. The problems arise when it remains out there and doesn't get merged in.
(Linux isn't much better. USAGI - an alternative IPv6 stack - is not included. SGI's STP was never really looked at. GAMMA - an excellent network layer for clusters, a common use for Linux, is barely known outside of a cult following. Same for ABISS. Web100 - a neat instrumentation layer for Linux' network code - also hasn't gone very far.)
In this day and age, there is really no excuse for poor networking code. The patches exist. The validators and instrumentation exist. The extensions and refinements all exist.
I'm one of the first to take issue with Windows folks who don't patch their systems - whether for security or for capability - and damnit, I'm not going to be any slower just because I happen to like both Linux and the *BSDs. If anything, I'm going to be faster on the draw, precisely because I do care and want these systems to really show what they're capable of.
Why do you think I ran the FOLK project for the 2.4 kernels? Because I like pain? No, it's because of the sheer volume of unknown and neglected code that could make a huge difference. The FOLK patch was getting close to the size of the kernel itself! And that was just extensions, I had very few of the maintenance patches included - some of the -ac stuff, but almost nothing from the -aa series.
If there was a chance in hell of being paid for it, I'd be happy to invest the time and effort to get either the Linux or the *BSD network code absolutely right. Someone needs to.
Re:More to the point, and actually seriously... (Score:2)
Easier... (Score:3, Interesting)
You might even be able to do it with the free wrt54g firmware, openwrt, but I've never tried it.
This little box is extemely reliable, has very low power consumption, it's cheap and it's small. Plus, it does wireless (WPA, etc).
Re:Easier... (Score:2)
DD-WRT [dd-wrt.com] is most likely a much better choice; the new R23 will blow away Sveasoft's crap.
Re:Easier... (Score:2)
Re:Easier... (Score:2)
Well, I just upgraded my WRT54Gv2 to the latest software available at the link you provided...it took me about 2 hours to set it back to the way I had it(since the instructions call for resetting to factory defaults all of my configuration information was gone. Maybe it's deleted on upgrade too not sure.)
Anyhow, the QoS isn't working.
I set the QoS as follows:
1) P2P at bulk rate by MAC
2) Game machine at premium r
Re:Easier... (Score:2)
10kbps up/down.
How many connection attempts per second ?
Maybe 1 per second. If you're referring to my ping testing.
How high is the ping without QoS ?
As I said, it inflated from 70ms to 95 ms. Spikes of 110ms.
More detail of my problem here [bsr-clan.de]
Re:Easier... (Score:2)
TheInduhvidual takes their protected beta work, hacks out the protection, and gives it away. Now who exactly is the criminal in this scenario?
Re:Easier... (Score:2)
Also, based on the quality of Sveasoft releases (or lack thereof), I don't think they deserve the money, especially when there are freely distributed products that are more featureful.
Re:Easier... (Score:2)
src/router/www - html, css, javascript, images for web control
Hmmm... All the html I have seen on the Sveasoft firmware looks like a derivitive of the Linksys html. I have absolutely no idea what license Linksys actually release those files under. Was it a license that allows modification and redistribution?
Aside from that, they still need to provide source for the GPL and LGPL components. If they do not they are distributing it illegally. It doesn't matter that some of the puzzle pieces are lega
Re:Easier... (Score:2)
http://wrt54g.serwer.net/#readingpleasure [serwer.net]
Sveasoft - AARGH (Score:3, Interesting)
Want to drive yourself nuts? Put a pair of Sveasoft-hacked Linksys WiFi units between a PC and a server, and try to do something intensive like a CVS checkout. The thing work
Re:Easier... (Score:2)
Using an old or semi-old PC allows you/me/us to build a machine that sucks down power but it worth every second. Plus, usually normal slashdotters get spare PC's for free once a year and can put them to good use without spending $60-$70 just for the initial hardware/software investment. In fact it allows me to spend money on say: Wireless cards, or even the games I'm likel
Re:Easier... (Score:2)
Because he's not talking about any old PC. Take a ook at this page [batbox.org]. See the little box next to tux? That's no PC, it's a Linksys wrt54g wireless router. I still wouldn't recommend buying the firmware though. The Sveasoft guy has proven to be a real arsehole, trying to force people to pay for his firmware based on Linux and other open-source software.
Re:Easier... (Score:2)
Can you give us a link? What's the version number for this new firmware?
Gaming routers look pretty small, quiet and cheap (Score:5, Interesting)
http://froogle.google.com/froogle?q=gaming+router
I don't see how a loud, hot old PC is necessarily better. And if you want an embedded system, those are normally quite pricey.
I'm not convinced that using an old PC is the best way to go here. Hacking a WRT* might seem more reasonable -- but a lot trickier.
I really don't like having lots of big boxes around, humming. But then I don't like games either.
Re:Gaming routers look pretty small, quiet and che (Score:3, Insightful)
Not to mention power consumption is certainly worse.
Re:Gaming routers look pretty small, quiet and che (Score:2)
My goddamn PC is too hot already. When I turn on the other ones in the same room, it gets very warm. So I put one out in the hall if I need it.
That's plain annoying. I'd love to have more hardware, but the heat it generates drives me up the wall. Even in Winter I just don't want so much heat.
If I'm going to have a machine on, I want it doing work that is proportional to the heat it generates. An ARM-based router,
Re:Gaming routers look pretty small, quiet and che (Score:3, Interesting)
- If you are using an Athlon 64, use the Cool'n'Quiet tech to dynamically clock your system down to as little as 800Mhz -- it sips power at that speed. To be fair, Pentium 4 Prescott owners also have a similar feature, but it can
Re:Gaming routers look pretty small, quiet and che (Score:2)
Re:Gaming routers look pretty small, quiet and che (Score:2)
If someone had an older, slower P4 lying around collecting dust, it could serve the function of a silent router with no noise at all. I don't suggest running the P4 w
Well, seeing how the gaming routers suck (Score:2)
http://www.gamingillustrated.com/dgl4300.php [gamingillustrated.com]
quote:
Specifically, with the network heavily populated, the latency in and around 650-750ms without GameFuel turned on. Once the technology was active, the latency was reduced to around 440-500ms
So it went from totally unplayable to too shit to even consider playing.
I haven't read the article yet but I hope they show some
Re: (Score:3, Informative)
Re:Gaming routers look pretty small, quiet and che (Score:2)
A board, by itself, isn't equivalent to what you get when you buy something at a store.
Re:Gaming routers look pretty small, quiet and che (Score:2)
Unlikely use of time and effort, better solutions. (Score:5, Insightful)
Gamers aren't likely to spend time they could be gaming with installing, configuring and maintaining a router setup. It's far more sensible, in today's age of commodity broadband routers, to pick up a Linksys WRT54G or similar from a local supplier and use that instead, a simple and out-of-the box solution that should require fairly little maintainance after installation and won't require an entire machine sitting humming away in the corner just to route packets. The WRT54G specifically makes a great case for this, because it can be flashed with different open source firmware to improve its flexibility and stability.
In other situations, the dedicated machine would probably have a numerous array of other uses, making it a more useful overall package, but since this article focuses on gaming the box running FreeBSD is unlikely to be able to be used for gameplay, so its pretty much relegated to packet routing and other miscellaneous duties. That, to me, seems like a complete waste in this instance
Re:Unlikely use of time and effort, better solutio (Score:2)
But then, they probably wouldn't be reading Slashdot or have an old PC and a couple of NIC cards lying around.
Enter the slashdot geek!
Gamers who read slashdot are probably more interested in alternative OS's than the mainstream and want to learn something that helps them with their gaming hobby - plus they should have the parts already and be comfortable setting it all up from a hardware perspective. It's a good guide for those who game and have an interest in OS's
Re:Unlikely use of time and effort, better solutio (Score:3, Funny)
Try openwrt (Score:4, Informative)
It's the most open of the alternativesd, last I looked. Not necessarily great for the lazy, though, since it will want some hand-configuring.
This is news? (Score:2)
Wow. That sounds. Really interesting. (Score:2)
Paying no mind to grammar and spelling of the original post (go /. editors!), and the ever-present-death and cheez
m0n0wall (Score:5, Informative)
Yes but there are some problems (Score:2)
Ok so get the m0n0wall, set it up and it's golden... Sorta. Everything works great but every few days it crashes. Just stops passing packets and responding to input, needs a reboot. Ok so I take the web servers out from behind it until I can work i
Re:Yes but there are some problems (Score:2)
Now, maybe I just found the one configuration it could
No content article, why posted? (Score:3, Insightful)
Why was this posted now, instead of in a few weeks when there's some actual content?
distro? (Score:2, Funny)
I need some info (Score:2)
I'm guessing that building my own rules for pf will teach me the most.
Of course I'm going to do my own research but I think it's only smart to ask experts for advice as well.
My question, how does the traffic shaper choose which packets to prioritize? Of course UDP will be put at the front of the queue and TCP will be
Gaming router?!? (Score:2)
Oh, and why do they suggest a hub? That ruins the point of a good router. Get a switch.
Why not use a switch? (Score:3, Informative)
Re:Why not use a switch? (Score:2)
Re:One more thing.. (Score:2)
Two items (Score:2)
I also wonder what would be a low power (in Watts) video card to use. I couldn't find anything on google in a brief search.
Re:Two items (Score:2)
Strictly speaking, you don't need a monitor on a box that isn't going to be used for anything other than routing. As long as you can set the BIOS to not error on no monitor, you can set the box up initially using a video card and then power down after first successful boot, remove the card, and reboot.
Just remember to run an SSH daemon for remote admin, and perhaps stick something like Webmin on there if you're not too good with the command line, so that you can modify what the box does without even need
Re:Two items (Score:2)
As for the video card, well, after you answer the first question in the config you don't need a video card any more - everything is done via a web GUI - so pull it out on the first reboot and you're using no power at all.
didn't know that I had a gaming router (Score:3, Interesting)
Re:didn't know that I had a gaming router (Score:5, Funny)
A diesel modem? Crap dude, that can't be very quiet nor "fresh smelling".
I hope he's better at programming then at hardware (Score:2, Informative)
Because there sure is a lot wrong with asking for a 486 DX2 133MHz. Ain't no such thing exist.
First, saying that the chip is a DX2 implies that the motherboard opperated at a 66MHz bus speed, which no 486 had the blessing to experience (66MHz bus speeds didn't happen until the Pentium line). The 2 in DX2 implied that the CPU operated at a frequency twice that of the bus speed (DX2 66MHz = 33MHz bus speed). There wer
Re: AMD DX4's still running... (Score:3, Interesting)
Nice, but... (Score:4, Interesting)
Traffic shaping only affects UPSTREAM data.
There's unfortunatly no 100% effective way a simple user could get rid of the queues at the ISP side during heavy downloads. ICMP Source Quench were supposed to be an answer to this, but the potential exploits lead many admins to simply filter them out. IMHO, 'gaming firewalls' could ease a bit latency on assymetric lines (ADSL mostly), but true QoS can only be achieved if _both_ ends do shape their traffic (the above applies to IPv4).
As far as I've seen by experimenting myself, the benefit of such an assymetric setup is to prevent excessive pings (several seconds). Playing a FPS during heavy use is still a no go as it implies irregular ping, and an average of 100-150 ms. However, it's quite a nice setup if you plan to play some MMORPG or want to get connected through SSH.
Regards.
Re:Nice, but... (Score:2)
For udp traffic, you're completely correct. No about of incoming shaping on inbound udp traffic will allow you to throttle the data rate. This is because udp traffic is connectionless and basically "fire and forget". With tcp traffic, though, especially with well-behaved applications, inbound traffic shaping is quite effective.
I run pf on an openbsd bridge that sits inbetween my dsl hardware and my network and it shapes my inbound traffic very effectively. I can flood
Re:Nice, but... (Score:2, Interesting)
Well, not necessarily. The crux of the idea is this: TCP adjusts the rate it sends based on whether (and when) it receives ACKs back for things it sent. And, two things can affect whether it receives ACKs: packet loss in the direction it's sending, or packet loss in the direction the ACKs are going.
To make this more concrete, let's imagine a scenario. You are at home, you have ADSL, and you're downloading an ISO of your f
Re:Nice, but... (Score:2)
Traffic shaping only affects UPSTREAM data.
So what? I'm always running into the upload cap on my cable. If I want to play some CS I have to pause one of the torrents I'm seeding to free up a little chunk of the 256kb. Download speed is never an issue. I would have to work at it to saturate 3Mb down.
A router that will automatically slow down the uploads (evenly) when I want to pwn some noobs is very appealing. It also means no more getting 20 minutes away from home before remembering that I forgot
Re:Nice, but... (Score:2)
I guess the best way would be to buy a second dedicated gaming connection, say 512Kbps DSL.
What type of ping is it ? (Score:2)
I've often thought that shaving 50ms off a ping time probably doesn't make that much difference especially if you're actually trying to shape non ICMP traffic. Unless of course the "pings" are traces of packet time for actual ingame packets over UDP or TCP, in which case I'd appreciate knowing a bit more about that.
Note : a quicker ICMP respon
The Real Issue.. (Score:2, Informative)
XLink Kai (Score:2)
It seems like no "gaming router" would be complete without the ability to run an XLink Kai [teamxlink.co.uk] server.
Unfortunately, XLink Kai won't run on FreeBSD...
iptables? (Score:2)
Newbie vs FreeBSD (Score:2)
Real math about the expense of gaming routers (Score:3, Interesting)
So you're running a PC at 100W 24/7. At 8 cents per kwh, that comes to $5.76/month. Of course, your power probably costs 12-15 cents per kwh, and your old PC probably takes 150-200W power, so you're probably using more like $8+/month. Also add in extra air conditioning costs in the summer to offset heat from the extra PC you have running.
I built a PC based router back when basic standalone units cost $250. Once they hit the $50 mark (two years ago, I probably paid more like $30 AR), I decided I was long overdue to buy one. I recouped my entire cost in less than 6 months. Unless there's something a $50 (now) Linksys WRT54g can't be modified to do, you shouldn't be bothering with a PC based solution.
The only way the PC router solution makes any sense is if you also happen to be using it as a print and file server, or a PC jukebox or running ftp/http services.
Re:Real math about the expense of gaming routers (Score:2)
your old PC probably takes 150-200W power
Where the hell do you get these numbers? Did you actually measure some of those claims? My P4/2600 desktop uses 90W when idle. An old P1/90 uses 30W.
Re:Real math about the expense of gaming routers (Score:2)
It will not be important for many, but I have a complicated networking setup including several tunnels, some with IPsec and some without, and lots of iptables filter lines. There are two different routing tables with policy routing.
When your PC uses too much power (I would first make an actual measurement before reading the power supply rating as the power consumption, an often made mistake), you can always use a pow
Please stop posting about gaming routers!! (Score:3, Insightful)
They did their benchmarks using various p2p apps and games. They'd launch the games when the p2p apps were maxing the bandwidth.
Basically the benchmarks went like this for all of them:
Without 'super duper bandwidth adjuster thingie' average game ping 600
With super thingie: 450
So they all went from totally unplayable to totally unplayable.
I want to set up a box for gaming and voip, a linux box can be dedicated for this but I've read it's tricky to get it all working. But in the end it actually works unlike every gaming router I've read about.
If your personal experience is different, please post, but I've read the reviews for about 6 of em, and none of them were up to the job. Sure they knocked off 100 milliseconds, but not near enough to make it actually worth it to get a gaming router.
Traffic Shaping Guide for Monowall? (Score:2)
Anyone know of any docs? Or perhaps might post a mini-how-to here?
jh
Gamers have their own vocabulary (Score:2)
My pet peeve is "ping". What the hell is a "great ping"? Is it a new implementation that allows more control over what packets are sent? Nope, apparently they are referring to "low latency".
Another one is "router". When the gamers refers toa router, they really mean either a "firewall" or something that provides a NAT service, and usually both.
I've given up on pointing out the mistakes
Incomplete Article... (Score:2)
Actually, no they haven't. They've posted the FIRST PART of an article on how to do this. Right now, it's just how to setup a basic router with m0n0wall.
From the article:
When you are ready to really squeeze the best performance from your router, you will want to add your own traffic shaping rules to the configuration. Next week will bring the Lan Game Reviews tutorial on how to set t
gaming router? (Score:3, Insightful)
Re: (Score:3, Informative)
About "Application Priority" (Score:2)
Suppose I want to set BitTorrent to a lower priority, which is what I've done on my router, for obvious reasons that BitTorrent can really hose a connection.
What I want to know is simply, how does the router know it's BitTorrent?
If it determines it purely based off the port, then it's a joke. Many trackers these days refuse my connection if I use the standard ports, so I'm forced to change them. However, if it actually does it by watching the start of the protocol, it might be able to detect application
Re: (Score:2)
Re:About "Application Priority" (Score:2)
I do the same thing as an extra measure to prevent throttling. But the underlying problem is that we have three computers owned by different people which all want BitTorrent, so either we all cap ourselves down to about a quarter of our total bandwidth (and then get penalised if only one of us happens to be using it) or we all cap ourselves higher (and then get penalised if all three of us are using it.)
That being said, merely allowing UDP to get priority would fix the "Games/VOIP vs BitTorrent" problem,
Re:Linksys? (Score:2)
Re: (Score:3, Interesting)
Re:pf.conf ruleset (Score:2, Informative)
That should do it. I've been using ack prioritization since a couple months after the artitcle was released. I've noticed recently that I still get good pings when torrenting and playing RTCW:ET.
Have fun.
Beware TPB
Re:smokin' (Score:2)
Re:benchmarks please?? (Score:3, Informative)
Who on earth said anything about it being faster? My guess is that the performance difference between dedicated hardware and PC is quite negligible. All the article said was that you can do quality-of-service queueing with regular PC hardware pretty easily, and that if you already have a spare PC, that's cheaper than buying dedicated hardware for the purpose. As far as I know, the article didn't claim
Re:benchmarks please?? (Score:2, Informative)
there is a reason why these companies put R&D effort into making custom hardware for routers.. just becuase you can do the same functions in software doesn't mean its just as good.
Re:benchmarks please?? (Score:3, Informative)
Router is FreeBSD 4.11, PIII 450 with 2 3COM 3C905B's Around 1100 lines in ipf rule set. Not very well optimized, I have 1 group. I have NAT enabled, but this is not using NAT.
Does this help for some numbers?
Re:They, too, will have missed one important issue (Score:2)
Somewhere it gives the example of a 128 up 512 down ADSL connection, says these rates are in kbps and need to be entered in the configuration (in kbits, not kbytes per second) and then suggest you to subtract 50 from the figures as a first try.
This will cater for the ATM overhead (at these low rates).
Usually, ADSL providers are cheating in that they specify the ATM rate, not the expected IP bitrate, in their advertisements. But when you set your shape
Re:This article is a bit off-target (Score:2)
For example, the gaming application and/or the OS it is run on may (and probably will) lack the user interface to define a QoS level for the connections it uses.
Then the router may implement QoS but it is of little use...
A generic traffic shaping function can overcome this problem.
Re:Stripped down server (Score:2)
M0n0wall is a firewall. It is not a server.
You put in a CD and a floppy (or a CF card with the CF image on it), boot, answer a question to tell it which NIC is on the inside and which on the outside, and the rest of it is configured through a web interface.
Notice how I didn't mention that in the wbe interface there is a button labelled "turn traffic shaping on" because if I did that I'd have posted the entire content of the article, and people might accuse me of kharma whoring.