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

Route specific ports through isp gateway instead of vpn

Discussion in 'Tomato Firmware' started by afallucco, Mar 22, 2014.

  1. afallucco

    afallucco Reformed Router Member

    Hey everyone, I've been reading a lot on these forums but I'm still quite confused. I have a tomato install with a connection to openvpn. One of my roommates wants to use steam for games but steam blocks users who use vpns. How would I go about setting traffic intended for specific tcp and udp ports (ports steam uses) to my isp gateway instead of the vpn. I want to try and set things up to where everything goes through the vpn on my network except steam traffic. Your help would be extremely appreciated.

    Here are the specific ports:
    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)
  2. eibgrad

    eibgrad Addicted to LI Member

    If you want to control which destination IPs are routed over the WAN or VPN, you can define static routes on the primary router.

    route add -host dev $(nvram get wan_iface)

    Of course, you can only add these static routes if the referenced network interface exists at the time. Obviously that’s not a problem for the WAN, but could be for static routes referencing the VPN.

    If you want to control which source IPs are routed over the WAN or VPN, you use policy based routing.

  3. afallucco

    afallucco Reformed Router Member

    I'm trying to see about applying it to all computers on the network not just a specific ip. would that allow for it in tomato?

Share This Page