What's new

QoS and Ping in DOTA 2 - Please help me :)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

@Weggy

The only remaining tool you have is to enable the optional gaming rule and see if that helps. Without the rule, potentially your game is fighting with other unidentfied traffic for bandwidth, and both are hitting queues.

If your game is showing up in the gaming QOS container. Then you are out of options sans an alternative firmware or a new router with a very recent QOS implementation.

Edit:

Also make sure no device is bypassing the metering done within bandwidth monitor.

Eg.
-No devices present before the router
-Check that devices on guest networks are getting metered
-Check if VPNd devices are getting metered

Basically check that every device on your network is getting its upload/download activity metered.
 
Last edited:
If the game still struggles you have other network problems I would share that opinion. :eek: Sorry.

Yea someone just started streaming netflix and the ping is spiking again up to 300ms+ You say I have network issues but what does this mean?
 
@Weggy

The only remaining tool you have is to enable the optional gaming rule and see if that helps. Without the rule, potentially your game is fighting with other unidentfied traffic for bandwidth, and both are hitting queues.

If your game is showing up in the gaming QOS container. Then you are out of options sans an alternative firmware or a new router with a very recent QOS implementation.

Edit:

Also make sure no device is bypassing the metering done within bandwidth monitor.

Eg.
-No devices present before the router
-Check that devices on guest networks are getting metered
-Check if VPNd devices are getting metered

Basically check that every device on your network is getting its upload/download activity metered.

I'm confused. I have enabled the gaming rule. Or so I thought.
 
Looks like the gaming rule is working.

Your gonna need a more recent QOS solution if this level of performance is not working for you.
 
Looks like the gaming rule is working.

Your gonna need a more recent QOS solution if this level of performance is not working for you.

Can you give me some examples of what these are and what hardware might contain them?
 
Can you give me some examples of what these are and what hardware might contain them?

I don’t own anything besides my older asus router so I am not in a position to say.

Check if openwrt or tomato enable these features on your current router. As to what routers ship with it, you will have to do your own research. Netduma and ubiquiti most likely have it.
 
Last edited:
My PC network settings are:
Code:
IPv4 Address. . . . . . . . . . . : 192.168.1.198
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

While my script now currently reads as follows:
Code:
####################  Bandwidth Setup #####################

    user_variables() {
        #Percent of download speed guaranteed per QOS category, change below as desired     (minimum value per section 5, sum should not be greater than 100)
        NetControl_DownBandPercent=5                    #This value can be adjust as desired        **  no spaces before or after the "=" sign **
        VoIP_DownBandPercent=10                            #This value can be adjust as desired        **                no decimals              **
        Gaming_DownBandPercent=15                        #This value can be adjust as desired
        Others_DownBandPercent=10                        #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_DownBandPercent=10                    #This value can be adjust as desired
        Video_DownBandPercent=40                        #This value can be adjust as desired
        FileTransfer_DownBandPercent=5                    #This value can be adjust as desired
        Default_DownBandPercent=5                        #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
   
        #Percent of upload speed guaranteed per QOS category, change below as desired         (minimum value per section 5, sum should not be greater than 100)
        NetControl_UpBandPercent=5                        #This value can be adjust as desired
        VoIP_UpBandPercent=20                            #This value can be adjust as desired
        Gaming_UpBandPercent=15                            #This value can be adjust as desired
        Others_UpBandPercent=20                            #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_UpBandPercent=10                        #This value can be adjust as desired
        Video_UpBandPercent=20                            #This value can be adjust as desired
        FileTransfer_UpBandPercent=5                    #This value can be adjust as desired
        Default_UpBandPercent=5                            #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
    }


####################  Custom Rules Setup #####################
   
    iptable_down_rules() {
        echo "Applying - Iptable Down Rules"
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES START HERE  
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (1/2) - (All incoming traffic w/ WAN source port 500  goes to "VOIP" Traffic Container)                                
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (2/2) - (All incoming traffic w/ WAN source port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                        #Facetime
            iptables -A POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (1/3) - Routes "Gaming" traffic coming from port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (2/3) - Routes "Gaming" traffic coming from port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.198/32 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.198/32 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}
           
            #iptables -D POSTROUTING -t mangle -o br0 -d 192.168.2.100/30 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            #iptables -A POSTROUTING -t mangle -o br0 -d 192.168.2.100/30 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}          
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES END HERE
    }

    iptable_up_rules(){
       
        #wan="ppp0"                ## WAN interface over-ride for upload traffic -- Variable ONLY needs to be defined for users non-Rmerlin 384+ firmware
                                # RMerlin v384+ Firmware AUTOMATICALLY detects correct interface --> this variable should be left COMMENTED/DISABLED on RMerlin v384+
                                # Other firmwares are configured to assume an eth0 interface --> this variable should be manually set if the connection type differs from eth0 ( ppp0, vlanXXX, etc)
                               
        echo "Applying - Iptable Up   Rules ($wan)"

        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES START HERE  
       
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (1/2) - (All outgoing traffic w/ WAN destination port 500  goes to "VOIP" Traffic Container)                                        
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (2/2) - (All outgoing traffic w/ WAN destination port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                    #Facetime
            iptables -A POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up} &> /dev/null       #Gaming (1/3) - Routes "Gaming" traffic going to port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up} &> /dev/null      #Gaming (2/3) - Routes "Gaming" traffic going to port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.198/32 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.198/32 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}

            #iptables -D POSTROUTING -t mangle -o $wan -s 192.168.2.100/30 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            #iptables -A POSTROUTING -t mangle -o $wan -s 192.168.2.100/30 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}
           
        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES END HERE
    }

When you posted this on the 1st thread, your gaming rule wasnt enabled, you need to remove the # sign....
 
Can u post a copy of your script again?

Here's my current script, anything not included below is identical to https://github.com/FreshPr/FreshJR_QOS/blob/master/FreshJR_QOS.sh :
Code:
####################  Bandwidth Setup #####################

    user_variables() {
        #Percent of download speed guaranteed per QOS category, change below as desired     (minimum value per section 5, sum should not be greater than 100)
        NetControl_DownBandPercent=5                    #This value can be adjust as desired        **  no spaces before or after the "=" sign **
        VoIP_DownBandPercent=10                            #This value can be adjust as desired        **                no decimals              **
        Gaming_DownBandPercent=20                        #This value can be adjust as desired
        Others_DownBandPercent=15                        #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_DownBandPercent=10                    #This value can be adjust as desired
        Video_DownBandPercent=25                        #This value can be adjust as desired
        FileTransfer_DownBandPercent=5                    #This value can be adjust as desired
        Default_DownBandPercent=10                        #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
    
        #Percent of upload speed guaranteed per QOS category, change below as desired         (minimum value per section 5, sum should not be greater than 100)
        NetControl_UpBandPercent=5                        #This value can be adjust as desired
        VoIP_UpBandPercent=20                            #This value can be adjust as desired
        Gaming_UpBandPercent=15                            #This value can be adjust as desired
        Others_UpBandPercent=20                            #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_UpBandPercent=10                        #This value can be adjust as desired
        Video_UpBandPercent=20                            #This value can be adjust as desired
        FileTransfer_UpBandPercent=5                    #This value can be adjust as desired
        Default_UpBandPercent=5                            #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
    }


####################  Custom Rules Setup #####################
    
    iptable_down_rules() {
        echo "Applying - Iptable Down Rules"
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES START HERE   
            
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (1/2) - (All incoming traffic w/ WAN source port 500  goes to "VOIP" Traffic Container)                                 
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (2/2) - (All incoming traffic w/ WAN source port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                        #Facetime
            iptables -A POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (1/3) - Routes "Gaming" traffic coming from port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (2/3) - Routes "Gaming" traffic coming from port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}
            
            iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}           
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES END HERE
    }

    iptable_up_rules(){
        
        #wan="ppp0"                ## WAN interface over-ride for upload traffic -- Variable ONLY needs to be defined for users non-Rmerlin 384+ firmware
                                # RMerlin v384+ Firmware AUTOMATICALLY detects correct interface --> this variable should be left COMMENTED/DISABLED on RMerlin v384+
                                # Other firmwares are configured to assume an eth0 interface --> this variable should be manually set if the connection type differs from eth0 ( ppp0, vlanXXX, etc)
                                
        echo "Applying - Iptable Up   Rules ($wan)"

        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES START HERE   
        
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (1/2) - (All outgoing traffic w/ WAN destination port 500  goes to "VOIP" Traffic Container)                                         
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up}
            
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (2/2) - (All outgoing traffic w/ WAN destination port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up}
            
            iptables -D POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                    #Facetime
            iptables -A POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up}
            
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up} &> /dev/null       #Gaming (1/3) - Routes "Gaming" traffic going to port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up}
            
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up} &> /dev/null      #Gaming (2/3) - Routes "Gaming" traffic going to port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up}
            
            iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}

            iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}
            
        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES END HERE
    }
 
Here's my current script, anything not included below is identical to https://github.com/FreshPr/FreshJR_QOS/blob/master/FreshJR_QOS.sh :
Code:
####################  Bandwidth Setup #####################

    user_variables() {
        #Percent of download speed guaranteed per QOS category, change below as desired     (minimum value per section 5, sum should not be greater than 100)
        NetControl_DownBandPercent=5                    #This value can be adjust as desired        **  no spaces before or after the "=" sign **
        VoIP_DownBandPercent=10                            #This value can be adjust as desired        **                no decimals              **
        Gaming_DownBandPercent=20                        #This value can be adjust as desired
        Others_DownBandPercent=15                        #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_DownBandPercent=10                    #This value can be adjust as desired
        Video_DownBandPercent=25                        #This value can be adjust as desired
        FileTransfer_DownBandPercent=5                    #This value can be adjust as desired
        Default_DownBandPercent=10                        #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
   
        #Percent of upload speed guaranteed per QOS category, change below as desired         (minimum value per section 5, sum should not be greater than 100)
        NetControl_UpBandPercent=5                        #This value can be adjust as desired
        VoIP_UpBandPercent=20                            #This value can be adjust as desired
        Gaming_UpBandPercent=15                            #This value can be adjust as desired
        Others_UpBandPercent=20                            #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_UpBandPercent=10                        #This value can be adjust as desired
        Video_UpBandPercent=20                            #This value can be adjust as desired
        FileTransfer_UpBandPercent=5                    #This value can be adjust as desired
        Default_UpBandPercent=5                            #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
    }


####################  Custom Rules Setup #####################
   
    iptable_down_rules() {
        echo "Applying - Iptable Down Rules"
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES START HERE  
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (1/2) - (All incoming traffic w/ WAN source port 500  goes to "VOIP" Traffic Container)                                
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 500 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                                #Wifi Calling (2/2) - (All incoming traffic w/ WAN source port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o br0 -p udp --sport 4500 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down} &> /dev/null                                        #Facetime
            iptables -A POSTROUTING -t mangle -o br0 -p udp --dport 16384:16415 -j MARK --set-mark ${VOIP_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (1/3) - Routes "Gaming" traffic coming from port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down} &> /dev/null        #Gaming (2/3) - Routes "Gaming" traffic coming from port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o br0 -m mark --mark 0x80080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p tcp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}
           
            iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
            iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.198/24 -m mark --mark 0x80000000/0x8000ffff -p udp -m multiport ! --sports 443,80  -j MARK --set-mark ${Gaming_mark_down}          
        ##DOWNLOAD (INCOMMING TRAFFIC) CUSTOM RULES END HERE
    }

    iptable_up_rules(){
       
        #wan="ppp0"                ## WAN interface over-ride for upload traffic -- Variable ONLY needs to be defined for users non-Rmerlin 384+ firmware
                                # RMerlin v384+ Firmware AUTOMATICALLY detects correct interface --> this variable should be left COMMENTED/DISABLED on RMerlin v384+
                                # Other firmwares are configured to assume an eth0 interface --> this variable should be manually set if the connection type differs from eth0 ( ppp0, vlanXXX, etc)
                               
        echo "Applying - Iptable Up   Rules ($wan)"

        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES START HERE  
       
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (1/2) - (All outgoing traffic w/ WAN destination port 500  goes to "VOIP" Traffic Container)                                        
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 500 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                            #Wifi Calling (2/2) - (All outgoing traffic w/ WAN destination port 4500 goes to "VOIP" Traffic Container)
            iptables -A POSTROUTING -t mangle -o $wan -p udp --dport 4500 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up} &> /dev/null                                    #Facetime
            iptables -A POSTROUTING -t mangle -o $wan -p udp --sport 16384:16415 -j MARK --set-mark ${VOIP_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up} &> /dev/null       #Gaming (1/3) - Routes "Gaming" traffic going to port 443 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 80 -j MARK --set-mark ${Default_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up} &> /dev/null      #Gaming (2/3) - Routes "Gaming" traffic going to port 80 into "Defaults"
            iptables -A POSTROUTING -t mangle -o $wan -m mark --mark 0x40080000/0xc03f0000 -p tcp --sport 443 -j MARK --set-mark ${Default_mark_up}
           
            iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p tcp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}

            iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
            iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.198/24 -m mark --mark 0x40000000/0x4000ffff -p udp -m multiport ! --dports 80,443 -j MARK --set-mark ${Gaming_mark_up}
           
        ##UPLOAD (OUTGOING TRAFFIC) CUSTOM RULES END HERE
    }
The only thing I can see here is the size of the cidr range used for gaming is huge. You may want to define the one machine you are concerned about playing the game, using the /32 range.
 
The only thing I can see here is the size of the cidr range used for gaming is huge. You may want to define the one machine you are concerned about playing the game, using the /32 range.

Are you saying change all ip references from:
192.168.1.198/24

To:
192.168.1.198/32

I really dont understnad this CIDR stuff.
 
If you only use that ip to game from then yes use a /32 cidr.
 
I've been doing some more reading and does QoS really prioirtise packets? I'm trying to understand if its really ensuring packets from DOTA get processed as quickly as possible or if its just making sure the game has bandwidth.

Right now I'm not seeing any difference in DOTAs pings with QoS being on or off. Netflix is consuming in spikes/irregularly about 1 quart of bandwidth, so nowhere near saturated.
 
Last edited:
Are you saying change all ip references from:
192.168.1.198/24

To:
192.168.1.198/32

I really dont understnad this CIDR stuff.
/24 will cover the whole subnet, meaning all devices talking to 80/443 will be classified as gaming...
 
[QUOTE="Weggy, post:
Code:
####################  Bandwidth Setup #####################

    user_variables() {
        #Percent of download speed guaranteed per QOS category, change below as desired     (minimum value per section 5, sum should not be greater than 100)
        NetControl_DownBandPercent=5                    #This value can be adjust as desired        **  no spaces before or after the "=" sign **
        VoIP_DownBandPercent=10                            #This value can be adjust as desired        **                no decimals              **
        Gaming_DownBandPercent=20                        #This value can be adjust as desired
        Others_DownBandPercent=15                        #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_DownBandPercent=10                    #This value can be adjust as desired
        Video_DownBandPercent=25                        #This value can be adjust as desired
        FileTransfer_DownBandPercent=5                    #This value can be adjust as desired
        Default_DownBandPercent=10                        #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443"
 
        #Percent of upload speed guaranteed per QOS category, change below as desired         (minimum value per section 5, sum should not be greater than 100)
        NetControl_UpBandPercent=5                        #This value can be adjust as desired
        VoIP_UpBandPercent=20                            #This value can be adjust as desired
        Gaming_UpBandPercent=15                            #This value can be adjust as desired
        Others_UpBandPercent=20                            #This value can be adjust as desired        #Note: New destination for unidentified traffic
        WebSurfing_UpBandPercent=10                        #This value can be adjust as desired
        Video_UpBandPercent=20                            #This value can be adjust as desired
        FileTransfer_UpBandPercent=5                    #This value can be adjust as desired
        Default_UpBandPercent=5                            #This value can be adjust as desired        #Note: Original destination for unidentified traffic, repurposed for "Gaming Downloads on ports 80/443
    }
[/QUOTE]
Try using the default %s from the script without changing them....the current default setup is already overkill for gaming. Try and report if any improvement, also ill have to look at my script again but it seems your using the gaming script (ip address
192.168.1.198/24) multiple times. I think on my script I only have the cidr ip adress no more 3 times, i noticed u have it like 8 times (4 in upload 4 in download). Lastly , u did gave ur gaming console or PC a static ip address that falls under /24 cidr range correct ? Say you have 2 gaming consoles n 1 pc, change the ip address to 192.168.1.198/30, go to your gamin console and assign static ip address to 192.168.1.196, next console wld be 192.168.1.1.197, and PC wld end in .198. If u have a 4th gaming device u can use the last cidr ip range of /30 range and use .199

Make any sense?
 
Last edited:

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top