Dead Men Walking

Forum Archive 2023 => dMw's Community Centre => Community Archive => Dead Men Folding => Topic started by: Whitey on January 25, 2006, 09:50:17 PM

Title: Jamena @ 80k
Post by: Whitey on January 25, 2006, 09:50:17 PM
Well folded and well played tonight  8)


 ( Get those house mates thrown of the network when your playing  ;)  )
Title: Jamena @ 80k
Post by: suicidal_monkey on January 25, 2006, 11:02:59 PM
QuoteOriginally posted by Whitey+Jan 25 2006, 09:50 PM-->
QUOTE(Whitey @ Jan 25 2006, 09:50 PM)
Well folded and well played tonight 8)[/b]
heh, I'd almost forgotten about this! recruited an unused pc at uni

Title: Jamena @ 80k
Post by: Carr0t on January 26, 2006, 09:38:27 AM
QuoteOriginally posted by suicidal_monkey@Jan 25 2006, 11:02 PM
last year I had one housemate who used the web a lot and he was amenable to me requesting game-time, this year there's at least 4 who use it a lot, several probably on P2P :( no chance :ranting:
[post=110494]Quoted post[/post]
[/b]

Are they techie types? One of my mates last year liked to rape our connection with P2P stuff. We run a Linux NAT box as a gateway, so we just rate limited all traffic from his box so that if anyone else was trying to use stuff online it ramped back his total available bandwidth to a third of our actual total (generally two of us were trying to game at the time, on a 1MBit connection) :devil: The only problem with that is if they realise what you've done and have the know-how to stop/reverse it.

And when I say we, I mean 'My housemate set it up with *some* help from me, but it was mainly him who worked it out'. As such i'd not be able to tell you how to do it, as i'm Not That Good ™  ;)
Title: Jamena @ 80k
Post by: suicidal_monkey on January 26, 2006, 11:06:32 AM
QuoteOriginally posted by Carr0t@Jan 26 2006, 09:38 AM
Are they techie types?
I'm the house techieâ,,¢, but our gateway is a netgear router with no nice options like bandwidth control/shaping.

right now the network is something like this:

telewest modem -- netgear 614 gateway router -- me(cat5)+the_others(802.11b/g)

I am the only one wired in to the router as it's mounted on a shelf just outside my room, everyone else is on wireless (and in my experience shared wireless royally screws your game pings). I could potentially get everyone to install a small program on their personal pc/laptop and have a distributed bandwidth-sharing scheme.

I broke the password on the router after about 3 tries (belongs to the landlord - logical guess based on our WEP password :rolleyes: ) so I can fiddle settings on there, but it seems to make little difference - I'll log in and check the settings again... see if I can't spot anything strange...
Title: Jamena @ 80k
Post by: Carr0t on January 26, 2006, 05:16:13 PM
QuoteOriginally posted by suicidal_monkey@Jan 26 2006, 11:06 AM
I'm the house techieâ,,¢, but our gateway is a netgear router with no nice options like bandwidth control/shaping.
[post=110540]Quoted post[/post]
[/b]

Our router is a £30 POS from eBuyer. It can just about manage simple bridging. We have a cheap (free from a skip out the back of the uni) linux box (P233 with 32MB RAM IIRC) sat behind it, with 2 network cards in. Setup is router -> linux box -> switch -> everyone's machines. The linux box does all our NATing, traffic shaping and the like. We stole the Wondershaper from lartc ( http://lartc.org/wondershaper/ (http://lartc.org/wondershaper/) ) and adjusted it for our needs (it won't keep your ping at 20 for gaming, but it will keep web browsing, ssh etc running smoothly if someone else in the house is doing a big download and attempting to suck all bandwith. I'm not sure if it'd prioritise P2P stuff as batch or interactive traffic though, as it only has those two queues and I don't really understand how it does the classifying). We (well, my housemate mainly ;) ) also played around with tcl/tk for the joy of rate limiting the other guy living with us.
Title: Jamena @ 80k
Post by: suicidal_monkey on January 26, 2006, 05:23:57 PM
QuoteOriginally posted by Carr0t@Jan 26 2006, 05:16 PM
Setup is router -> linux box -> switch -> everyone's machines
our router has a built in switch...don't think I cen splice a linux box between the two...? I had my eye on this linux setup: http://www.langamereviews.com/content/view/144/2/ (http://www.langamereviews.com/content/view/144/2/)





this thread (apart from the first two posts) could almost be in the hard/soft-ware section...
Title: Jamena @ 80k
Post by: Carr0t on January 27, 2006, 09:19:15 AM
You're right, you couldn't splice a linux box between the router and the built in switch (well, there may be ways depending on how clever the router is, but I doubt it, and it'd be ugly). You could easily just plug the linux box inot the router though, and buy another switch to go into another NIC in the linux box, and then all other machines in the house plug into *that*.
Title: Jamena @ 80k
Post by: suicidal_monkey on January 27, 2006, 10:10:19 AM
QuoteOriginally posted by Carr0t@Jan 27 2006, 09:19 AM
You're right, you couldn't splice a linux box between the router and the built in switch (well, there may be ways depending on how clever the router is, but I doubt it, and it'd be ugly). You could easily just plug the linux box inot the router though, and buy another switch to go into another NIC in the linux box, and then all other machines in the house plug into *that*.
[post=110662]Quoted post[/post]
[/b]
I guess there may be some way to set it up putting in the linux box as a shaper between the modem and the router/switch. Can you plug two routers (assuming the linux traffic shaper counts as a router?) together like that?

modem--[2mbps]--linuxtrafficshaper--[100mbps]--router&switch--[11-54-100mbps]--PCs
Title: Jamena @ 80k
Post by: Carr0t on January 27, 2006, 05:04:04 PM
QuoteOriginally posted by suicidal_monkey@Jan 27 2006, 10:10 AM
I guess there may be some way to set it up putting in the linux box as a shaper between the modem and the router/switch. Can you plug two routers (assuming the linux traffic shaper counts as a router?) together like that?

modem--[2mbps]--linuxtrafficshaper--[100mbps]--router&switch--[11-54-100mbps]--PCs
[post=110667]Quoted post[/post]
[/b]

Aah, I was misunderstanding. Our router is actually a modem/router, so we don't have a separate modem device. It's perfectly possible to connect a linux box to a router, it's what we do. NIC #1 in the linux box connects to the modem/router. The modem/router has an external interface on a global IP address, and an internal one on 192.168.1.2 (we use 192.168.1.1 for blackholing traffic we don't like). The linux box then has NIC #1 on 192.168.1.3. NIC #2 is on 10.0.0.1, going to a switch. All other machines in the house are on 10.0.0.something, with a default gateway of 10.0.0.1. The linux box then just forwards all traffic it gets in on NIC #2 through to NIC #1 (with a change of source IP, natch. You'll need to get ip forwarding set up on it to do that, but it ain't that hard), assuming the traffic passes our iptables firewall rules, and does the same the other way around for stuff coming in to us. The modem/router does much the same thing (but without the firewallage) from the 192 address to the global. It just passes everything from one to t'other.

It's a bit of an evil way of doing it. You *should* be able to just bridge the global address from any reasonable modem/router through to the linux box, so that it has the global ip on NIC #1. Unfortunately our modem/router is too cheap and nasty to manage that, so we have this bodge. If set up as you suggested, there are two options, and i'm not sure which one will hold for you:

1) The linux box and modem won't play nicely, and you'll have to have the modem go into the router, and then the linux box on the other side of the router (either gateway-on-a-stick, so that you can use the switch on the router [i.e. the linux box and all other machines plug into the switch, but all the other machines have the linux box as the default gateway, so all traffic has to go up to the linux box and then back out to the router and onward] or router -> linux box -> another switch).

2) (the one I suspect is the case). With the setup modem -> linux box -> router/switch, you won't need to use any of the functionality of the router in the router/switch, just use it as a dumb switch.

YMMV