Bandwidth Limiting TC/IPTables

Discussion in 'DD-WRT Firmware' started by dabomb665m, May 29, 2005.

  1. dabomb665m

    dabomb665m Network Guru Member

    I'm running a WRT54g 1.0 with the DD-WRT v.22 Prefinal4.

    Let me just say I have limited knowledge of Linux and this is the first time I've messed with aftermarket firmware.

    My setup is basically 2 LAN port(PC and Xbox) and 1 WLAN (PC) to the WRT54g. Everything is setup staticly with DHCP off.

    My roommate uses the wireless connection and is usually always downloading with BT and Emule which renders my Xbox Live and other things useless most of the day. I haven't exactly been able to make the QoS work well enough to be satisfactory. I tried to add my own services with their own priorities, but they didn't show up in the drop down menu after I added them. Anyways, I was wondering if anyone can give me tips on the QoS settings

    OR point me to a site that can teach me how to set up TC and Iptables as a startup script in my WRT54g so I can split up the bandwidth evenly. I'm on Cable with 6meg down 768kb up. I want to split it evenly 3 way. Is there anyone willing to give me some info on this? I have AIM and MSN as well.
  2. _Shorty

    _Shorty Network Guru Member

    your xbox live connection wireless too?
  3. Guyfromhe

    Guyfromhe Network Guru Member

    looks like it's probably wired from his description... if the QOS isn't doing it for you you may be better off setting a limit on the client or the pc, I don't think you can set bandwidth limits with just IPtables but you need some additional utils for that...
  4. _Shorty

    _Shorty Network Guru Member

    yeah, don't know how I missed that. I've had success with bittorrent set to 'bulk' and counter-strike source set to 'premium' and had good gameplay. I'm wondering if maybe the current xbox live L7 pattern is no good. I don't have an xbox since my gaming is on the PC, so I can't capture any packets from one to see if the L7 pattern is any good or not. If you can get the xbox working through your PC's network card via ICS then you could capture some packets with ethereal and see if the pattern's any good or not. If it's not matching properly then you could write your own L7 pattern... can always try using MAC priorities, give his wireless 'bulk' and yours 'premium' ;)
  5. dabomb665m

    dabomb665m Network Guru Member

    As of right now, I have his Mac set to bulk, my PC set to standard(via port1), and the XBOX set to premium(via port2). I was thinking maybe this isn't as good of a restriction as direct port restrictions.

    My problem is, I can't actually edit any of the options or add in my own programs/ports in the service priority tab with my version of DD-WRT (which is .22 prerelease4)
    When I use the Add/Edit service function, the drop menu actually makes the changes but when I return to the main menu, it's not there. For example, I tried to add emule cause I know my roommate uses a certain port for it... but once I added it in, it didn't show up in my drop down menu.

    Is it because they haven't implemented the ability to add new values in yet? I'm not too savvy with the L7 patterns so does someone know if the pattern recognizes network traffic reguardless of port?
  6. _Shorty

    _Shorty Network Guru Member

    that's the whole point of L7 pattern matching, so port is irrelevant. Use the bittorrent pattern for bittorrent obviously, and edonkey for emule. The xbox live pattern hasn't been tested by anyone so it may not even work.
  7. EnigmaX4

    EnigmaX4 Network Guru Member

    Yes I have come across this problem also. But the trick to get it to show up is to add 2 services, but make sure they are spelled different. This is what I did to get Limewire to show up( First put in LimeWire click add, then put in Lime wire then click add, then click apply. The only problem is that it will show up twice in the services box.
  8. _Shorty

    _Shorty Network Guru Member

    limewire=gnutella, you don't need to add it manually
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice