Wednesday 11 September 2013

Identify Counter-strike Source + GO traffic in mangle

Hi everyone
There are three steps in identifying this traffic.
First of we look for TSource in packets. This is always sent to the server when connection and take note of the IP.

First step is to create the layer7 Protocol
The layer7 Protocol is as easy as creating one that says TSource












No mark the server's IP with the layer7 protocol
add action=add-dst-to-address-list address-list="CSS Servers" \
    address-list-timeout=1h chain=prerouting comment="CSS Connection IP" \
    in-interface=Your_in_interface layer7-protocol="CS GO" protocol=udp

Next up mark all connections going to those IPs
add action=mark-connection chain=prerouting comment="Mark CSS Con from IP" \
    connection-mark=no-mark dst-address-list="CSS Servers" in-interface=wlan1 \
    new-connection-mark="CSS Con" protocol=udp

And finally mark the packets on both directions. This allows you to have different queues for upload and download.

add action=mark-packet chain=forward comment="CSS Packet Mark DL" \
    connection-mark="CSS Con" new-packet-mark=Gaming_Packets_DL \
    out-interface=Your_in_interface
add action=mark-packet chain=forward comment="CSS Packet Mark UP" \
    connection-mark="CSS Con" new-packet-mark="Gaming Packets_UP1" \
    out-interface=Your_out_interface passthrough=no

For Your_out_interface I used all PPP :)

Then lastly add them to your queues :) enjoy!


2 comments:

  1. useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!..
    http://csgostore24.com/

    ReplyDelete
  2. Hello sir. Can you make also make a firewall for mobile legends so that it will not be laggy. Best regards!

    ReplyDelete