Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

[Release] FreshJR Adaptive QOS (Improvements / Custom Rules / and Inner workings)

Discussion in 'Asuswrt-Merlin' started by FreshJR, Jan 12, 2017.

  1. Vexira

    Vexira Very Senior Member

    Joined:
    Jan 20, 2017
    Messages:
    668
    Location:
    Australia
    What port does it use, I'll mod the rules in for you.
     
    Tomo likes this.
  2. Tomo

    Tomo New Around Here

    Joined:
    Apr 28, 2016
    Messages:
    2
    Great !!
    Guild Wars 2 requires unstricted TCP ports 80, 443, and 6112 , the game run on pc/ 10.0.0.151.


    Thank you !!
     
  3. FreshJR

    FreshJR Regular Contributor

    Joined:
    Oct 8, 2016
    Messages:
    172
    Note: For anyone making custom rules.

    Port 80 & 443 should NEVER have a rule, thats just general internet traffic.
    The guild wars rule will be 6112
     
  4. Deplorable

    Deplorable Occasional Visitor

    Joined:
    Sep 4, 2017
    Messages:
    28
    Ok so I connect to a VPN on port 1198. The problem is the the VPN connection is reversing my upload (10.6875 Mb/s) and download (111.055 Mb/s) speeds for QOS. I have tried assigning a container to see if that helps but it didn't and I didn't think it would given the problem. It still uses my upload as my download and my download as my upload. I cannot download faster than 10.6875 Mb/s over the VPN tunnel as a result.

    I used the following filters below to check this and it changes traffic appropriately from VOIP to Gaming in QOS Statistics when I change that and restart QOS as expected. Also as expected it still is using my upload speed as the max download speed.

    Code:
    #DOWNLOAD
    ${tc} filter add dev br0 protocol all prio 1 u32 match ip sport 1198 0xffff flowid ${VOIP}
    then
    ${tc} filter add dev br0 protocol all prio 1 u32 match ip sport 1198 0xffff flowid ${Gaming}
    #UPLOAD
    ${tc} filter add dev eth0 protocol all prio 1 u32 match ip dport 1198 0xffff flowid ${VOIP}
    then
    ${tc} filter add dev eth0 protocol all prio 1 u32 match ip dport 1198 0xffff flowid ${Gaming}
    Is there a way using this script or iptables in general to force VPN traffic to use my download speed for downloads and upload speed for uploads like it does for all other traffic? If so how.
     
  5. FreshJR

    FreshJR Regular Contributor

    Joined:
    Oct 8, 2016
    Messages:
    172
    Are you running a vpn server?

    Just to be clear with a VPN server traffic flows like this.

    (1) You (VPN client) want YouTube
    (2)You tell the VPN server I want YouTube
    (3)VPN server connects to YouTube and downloads content. This is download bandwidth
    (4) VPN server takes downloaded content and forwards it you the VPN client. This is upload bandwidth.

    The the server is not flipping bandwidth. It's just physically limited to deliver content at your upload speed. **sometimes it can compress upload content and have content delivery actually be above upload speed, but that is something else.

    This is a limitation by adding middle man fetch and forwarding traffic both ways.
     
    Vexira likes this.
  6. Deplorable

    Deplorable Occasional Visitor

    Joined:
    Sep 4, 2017
    Messages:
    28
    I am not running a VPN server. I am connecting to PIA via VPN Client tab using OpenVPN.
     
  7. Vexira

    Vexira Very Senior Member

    Joined:
    Jan 20, 2017
    Messages:
    668
    Location:
    Australia
    don't worry I'm doing it for him.
     
    Tomo likes this.
  8. FreshJR

    FreshJR Regular Contributor

    Joined:
    Oct 8, 2016
    Messages:
    172
    Is the OpenVPN client run on PC or router
     
  9. Deplorable

    Deplorable Occasional Visitor

    Joined:
    Sep 4, 2017
    Messages:
    28
    Running on the router.
     
  10. Jack Yaz

    Jack Yaz Very Senior Member

    Joined:
    Apr 20, 2017
    Messages:
    565
    Are you using hardware acceleration?
     
  11. Deplorable

    Deplorable Occasional Visitor

    Joined:
    Sep 4, 2017
    Messages:
    28
    I am but the issue happens with or without it.
     
  12. pattiri

    pattiri Regular Contributor

    Joined:
    Dec 27, 2016
    Messages:
    93
    Location:
    Istanbul, Turkey
    I understand what you mean. Let me try to explain it with an example.

    as an example; my connection speeds; 50 mbit download 4 mbit upload so I configure QoS accordingly. As long as VPN client is off on router I get 50 mbit down and 4 mbit down.

    When I enable VPN client my download and upload speeds becames both 4 mbit.

    Then I configure QoS settings as UPLOAD:50 DOWNLOAD:50 now I get 50 mbit download and 4 mbit upload speed.

    It's probably caused because of a Asus bug. I'm not sure.
     
  13. Vexira

    Vexira Very Senior Member

    Joined:
    Jan 20, 2017
    Messages:
    668
    Location:
    Australia
  14. Spydawg

    Spydawg Occasional Visitor

    Joined:
    Sep 6, 2014
    Messages:
    21
    Trying this out, getting this now in logs..

    Sep 16 09:30:01 kernel: HTB: quantum of class 10016 is big. Consider r2q change.
     
  15. Jack Yaz

    Jack Yaz Very Senior Member

    Joined:
    Apr 20, 2017
    Messages:
    565
    Perfectly normal warning. Nothing to worry about.
     
  16. Spydawg

    Spydawg Occasional Visitor

    Joined:
    Sep 6, 2014
    Messages:
    21
  17. jpclarke

    jpclarke Regular Contributor

    Joined:
    Nov 6, 2015
    Messages:
    78
    Has anyone managed to get Amazon video identified as streaming video? I added my TV's IP address into a rule for outgoing and incoming traffic but amazon video is still being categorised as web traffic, I assume the other traffic classifier is overriding my manual rules?

    Is there any way to specify amazon video into the streaming container?
     
  18. Jack Yaz

    Jack Yaz Very Senior Member

    Joined:
    Apr 20, 2017
    Messages:
    565
    What rule(s) are you using?
     
  19. jpclarke

    jpclarke Regular Contributor

    Joined:
    Nov 6, 2015
    Messages:
    78
    ${tc} filter add dev br0 protocol all prio 1 u32 match ip dst 192.168.65.201/32 flowid ${Streaming}
    iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.65.201/32 -j MARK --set-mark ${Streaming_mark}
    iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.65.201/32 -j MARK --set-mark ${Streaming_mark}
     
  20. Vexira

    Vexira Very Senior Member

    Joined:
    Jan 20, 2017
    Messages:
    668
    Location:
    Australia

Share This Page