Tuesday, 17 December 2013

Routing Steam Traffic with Mikrotik

09:56 Posted by Jurgens Krause , , 2 comments
For people living in third world economies, where uncapped high speed broadband internet is only a myth, we are forced to come up with creative means of managing our bandwidth.

The scenario is this:
You have two internet connections, one, a high speed capped internet connection, the other a low speed uncapped option. You would want all game and Steam client traffic to run over the high speed connection, but all Steam downloads have to be routed through the slow uncapped connection. We assume that the default route is through the uncapped connection, and only specific traffic gets routed over the high speed link.

From the Steam website you can find the following port information:


Steam Client:
  • UDP 27000 to 27015 inclusive (Game client traffic)
  • UDP 27015 to 27030 inclusive (Typically Matchmaking and HLTV)
  • TCP 27014 to 27050 inclusive (Steam downloads)
  • UDP 4380

Dedicated or Listen Servers

  • TCP 27015 (SRCDS Rcon port)
Steamworks P2P Networking and Steam Voice Chat
  • UDP 3478 (Outbound)
  • UDP 4379 (Outbound)
  • UDP 4380 (Outbound)
Additional Ports for Call of Duty: Modern Warfare 2 Multiplayer
  • UDP 1500 (outbound)
  • UDP 3005 (outbound)
  • UDP 3101 (outbound)
  • UDP 28960
Now, based on this we want to route all steam traffic apart from Steam Downloads (TCP 27015-27050) via the high speed link, so we start by marking the packets that we want to route to our high speed link:

Having marked the packets appropriately, we want to tell the Mikrotik firewall to route it through a specific gateway:
That's it, you will now be able to use Steam voice chat and the Steam Client through your high speed link with downloads running over you uncapped connection.

2 comments:

  1. dear sir

    can you enligth me up :)

    i have problem with routing network .

    i have 2 MT router . 1 router (lets say R1) as a dialup ( i use pppoe-client ) have 10 port in it .

    and the other router (lets say R2) for main gateway for 10 desktop PC.

    i have 5 lines adsl connected to the R1 and R2 for connected to DLink unmanagable switch to 10 client PC.

    the main problem is .. i`m still having no clue how to manage route from client pc -------->> R2 ------------->> R1 ------->> steam server . :P ... fiuh its make my head dizy .

    well .. i have trying make vlan / pptp betwen R1 & R2 then make routing on both router .. the idea is when 5pc (192.168.1.1-192.168.1.5) going to steam server it will route through routing vlan-A & 5pc (192.168.1.6-192.168.1.11) going through routing vlan-B on R2 . then on R1 i make another 2 vlan routing going to different adsl line. but IT DID NO WORK -__- ...

    well can you give me a clue ? :)

    thanks so much before ...


    ReplyDelete
    Replies
    1. Hi,

      I have to be honest, I had limited success with this when I first tried it, and recently it has stopped working completely, I have yet to find a 100% solution, sorry.

      Delete