1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

QoS on WAN traffic travelling through LAN port.

Discussion in 'Tomato Firmware' started by Wrekriem, Dec 12, 2010.

  1. Wrekriem

    Wrekriem Networkin' Nut Member

    Hi there,

    I'm kinda posting this out of desperation as I have been fiddling around with QoS for a few days now and read so much information, some of it different, a lot of it on this forum, that I am quite overwhelmed!
    I would appreciate if someone could point me to the right piece of information also considering I have spent much time reading Toastman's excellent guides and set-ups, alongside other guides. I'm sure the answer is in something I have read, I am just having trouble pinning it down so I would really appreciate some help :)

    I have a WRT54Gv2 with Tomato 1.28 and the network infrastructure is as follows:

    [​IMG]
    Homehub 192.168.1.254
    Linksys 192.168.1.101
    Clients 192.168.1.60-80 (The Homehub DHCP seems to be set to this range)

    I cannot change the homehub (it has a custom firmware) nor the settings on the homehub, without the Linksys the network works as the homehub has DHCP on and deals with connectivity to the internet.

    My goal is to implement fair QoS as we have a fairly slow connection to share between 8 people (what is even worse is the speed varies so I have to keep adjusting the max QoS settings) I would like to be able to game with reasonable latency while still allowing everyone else to download/stream/msn/www etc

    I am happy in understanding that I need to tailor the settings to get the best results, I need to work out whether I want to classify by MAC or ports or both, so far I have been sticking to by port but want to experiment with by MAC address too as it would be more encompassing (so I could set each client to something like 15%-80% so no-one can hog the whole line)
    The classifications below are quite basic so far but I think they are achieving or should be achieving some useful traffic shaping. I intend to add to them as time goes on.

    So far I have had some success using the Linksys as somesort of hardware QoS firewall but I have run into trouble with it not always classifying connections. What's more it doesn't seem to catch all the connections.

    [​IMG]
    [​IMG]

    I am thinking the reason that connections aren't being classified or are being done so intermittently is because I am connecting the internet to the Linksys via a LAN port. I need to treat the connection to the homehub like it is a WAN connection as from what I have learnt so far QoS on tomato only applies to the WAN port? I understand that internal network traffic does not get classified and that is fine.

    Would changing the 'WAN / Internet' type help? Maybe setting it to static? Though I have messed with this and I can't seem to get it to work properly. On DD-WRT there was an option to apply QoS to either the WAN port or to LAN/WLAN.

    Is the 'Mode' setting in Advanced -> Routing something to consider? (It is set to gateway)

    Any help would be amazing, I would be happy if someone can point out something obvious I have missed :) Let me know if you need any more information.

    Thankyou in advance.
     
  2. Wrekriem

    Wrekriem Networkin' Nut Member

    [​IMG]

    I hope this helps shed some light on what is happening. The Outbound seems to be classifying some connections into high or low. Low I assume because I have that set as the default class and highest because I have that at the top of the classification list? But why are the others not filtering down? Is it due to the origin of the connections?
     
  3. Kisch

    Kisch Addicted to LI Member

    Hi.
    I think, you have to connect cable from HUB (left device on your picture) to Linksys WAN port. If HUB has DHCP server running, set Linksys WAN / Internet option to DHCP. Enable DHCP server on Linksys and assign IPs to computer´s MACs.
     
  4. Wrekriem

    Wrekriem Networkin' Nut Member

    Thankyou for the idea, I tried it but ran into problems.
    After changing the setting and resetting both routers the connections that I already had running one on machine (ventrilo) worked fine, but nothing else did as it seemed to cause a problem with DNS. I tried restarting my machine and trying other machines to find there was something wrong with the link between the Linksys and the RubbishHub.
    Furthermore I could not ping the homehub

    [​IMG]

    [​IMG]

    Upon checking the QoS some of the connections were being classified.

    Any ideas?

    Cheers :)
     
  5. Kisch

    Kisch Addicted to LI Member

    Hm, I have similar configuration and it is working that way. Linksys has obtain its IP from HUB and PCs from Linksys. As I watch, Linksys has IP from HUB. But System/Time Not Available isn´t good. I had to set Basic/Network/Lan/Static DNS to 0.0.0.0 in my case, my router obtained DNS servers IPs from my cable modem.
     
  6. mstombs

    mstombs Network Guru Member

    If you use a different subnet on the Tomato router (i.e. its wan gets 192.168.1.x, its lan say 192.168.0.1) and connect via the WAN port in "nat gateway mode" you will be running in double-nat mode. Various functions rely on the nat routing, and are disabled if you run Tomato in "router mode"

    If you can then assign the Tomato router to be the DMZ of the homehub, "double nat + DMZ" with incoming portforwards etc should work.
     
  7. Kisch

    Kisch Addicted to LI Member

    He wrote he can´t change HUB settings. :frown:
     
  8. mstombs

    mstombs Network Guru Member

    The BT homehub is SpeedTouch/Broadcom, and probably connects by PPPoA (so no PPPoE full bridge mode), it has voice functions you can't touch but surely there are some LAN settings you can change - Broadcom ADSL routers even have an "Assign WAN IP to LAN device function"? If it insists on being the only "router" then the Tomato router is just an access-point!
     
  9. Wrekriem

    Wrekriem Networkin' Nut Member

    I cannot get access to the configuration for the hub unfortunately. I am allowed to add to the network for QoS but I cannot alter the hub. If I could I would just replace the hub with a modem, it's quite frustrating :frown:

    I have not had time to play around with the suggestions that have been given but may try tonight when I finish work.
    I sincerely hope there is a way for the two routers to work in unison, with the Linksys managing QoS, otherwise I am stuck in the nightmarish world of a limited shared connection with no QoS.

    By "nat gateway mode" do you mean having the advanced -> routing mode set to gateway (as it is currently)?
     
  10. TT76

    TT76 Networkin' Nut Member

    you should set the ip address range of dhcp server on tomato to a different subnet i.e 192.168.0.2-192.168.0.10 and accordingly set router ip address to 192.168.0.x i.e 192.168.0.1
     
  11. Wrekriem

    Wrekriem Networkin' Nut Member

    Thank you SO MUCH :biggrin:

    Putting the hub on a separate subnet seems to have done it, there is lots of exciting classification occurring!

    I will definitely remember this as one use of different subnets, while I have studied networking in the past I have never been in a practical situation where I have needed to use different subnets so didn't even consider it as a possible option.

    Now to get tailoring those QoS rules.

    Again, thank you all for pointing such a simple solution out.
     

Share This Page