Jump to content

Gaming ports exclusion from VPN traffic

Hi,

 

super n00b question, I have the yearly subscription to PIA, and I have their (Windows) client installed, I can auto-connect without any problems, but I have to disable it every time I launch a game to avoid lagging or ending up on different countries' servers. and while I'm off the vpn I can't keep browsing on other screens without using my ISP connection of course.

Sadly I can't change my ISP modem to one with VPN capabilities (can't even change the DNS on this pos) and before I go out and buy a DD-WRT router (and find a way to make it work with the ISP modem which needs to be the gateway anyway) I was wonderting what's your best choice of software to make some sort of firewall filtering, allowing gaming ports to go directly through the network, while diverting HTTP/HTTPS and other traffic on the VPN tunnel from PIA, or if there's an easier solution to this.

I've read it might work creating 2 virtual Network interfaces but when I had a virtual NIC from a previous VM thinkering it caused so many problems I probably messed up something.

 

or maybe I'm approaching this problem from the wrong angle?

thanks

 

 

 

 

 

 

2020 AMD Build:

Ryzen 3800x - Asus TUF x570 - Crucial Ballistix 16GB 3600cl16 - ROG Strix GTX1070 OC 8G - EVGA SuperNOVA G2 550W - Sabrent Rocket 1TB

 

2012 Intel Build:

Intel i5-3570k @4.0Ghz - Asus Maximus V Formula - Corsair Vengeance 8GB 1866 - XFX HD7970 GHz - Enermax Revolution87+ 650w - Crucial MX500 500GB

Link to comment
Share on other sites

Link to post
Share on other sites

Following!

Spoiler

 

LTT's Fastest single core CineBench 11.5/15 score on air with i7-4790K on air

Main Rig

CPU: i7-4770K @ 4.3GHz 1.18v, Cooler: Noctua NH-U14S, Motherboard: Asus Sabertooth Mark 2, RAM: 16 GB G.Skill Sniper Series @ 1866MHz, GPU: EVGA 980Ti Classified @ 1507/1977MHz , Storage: 500GB 850 EVO, WD Cavier Black/Blue 1TB+1TB,  Power Supply: Corsair HX 750W, Case: Fractal Design r4 Black Pearl w/ Window, OS: Windows 10 Home 64bit

 

Plex Server WIP

CPU: i5-3570K, Cooler: Stock, Motherboard: ASrock, Ram: 16GB, GPU: Intel igpu, Storage: 120GB Kingston SSD, 6TB WD Red, Powersupply: Corsair TX 750W, Case: Corsair Carbide Spec-01 OS: Windows 10

 

Lenovo Legion Laptop

CPU: i7-7700HQ, RAM: 8GB, GPU: 1050Ti 4GB, Storage: 500GB Crucial MX500, OS: Windows 10

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Without knowing what games we are talking about specifically (and even then, we might not know how they communicate), it is hard to say. Games might not be using specific ports at all and be routed outside your computer using one port and outside the router using another port, thanks to NAT. So doing this purely based on port numbers is not going to help.

 

Secondly, I am not aware of any Windows tools that support network traffic filtering/rerouting. Games do not support multiple network interfaces anyway, they use the computer's native internet connection and routing table, which tells where what connection goes.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, jj9987 said:

Without knowing what games we are talking about specifically (and even then, we might not know how they communicate), it is hard to say. Games might not be using specific ports at all and be routed outside your computer using one port and outside the router using another port, thanks to NAT. So doing this purely based on port numbers is not going to help.

 

Secondly, I am not aware of any Windows tools that support network traffic filtering/rerouting. Games do not support multiple network interfaces anyway, they use the computer's native internet connection and routing table, which tells where what connection goes.

as for games atm I mostly play Fortnite and probably will be playing COD/BF, IIRC COD used to run on ports 28960, but now with matchmaking might be different.

I could just route the 80/443 ports to the VPN so at least I can keep my browser open for youtube or whatever. and I close torrent anyway while playing.


I already have a pc with a Pentium g3258 that acts like a server for 2 external HDDs with movies (primarly to decode HD movies to my tv with PLEX and generic media center hub for the internal network,  idk if I can install something there to help with my situation? a raspberry Pi only has 1 eth port and I don't think it can be useful.

 

or if I have to buy a programmable switch/router if you have any model suggestion, otherwise I think I will pick the Linksys that everyone seems to have and it's full of compatible programs

2020 AMD Build:

Ryzen 3800x - Asus TUF x570 - Crucial Ballistix 16GB 3600cl16 - ROG Strix GTX1070 OC 8G - EVGA SuperNOVA G2 550W - Sabrent Rocket 1TB

 

2012 Intel Build:

Intel i5-3570k @4.0Ghz - Asus Maximus V Formula - Corsair Vengeance 8GB 1866 - XFX HD7970 GHz - Enermax Revolution87+ 650w - Crucial MX500 500GB

Link to comment
Share on other sites

Link to post
Share on other sites

Considering you only want to send HTTP and HTTPS traffic down the tunnel (I assume at all times) the best way to do this is to have access to a proxy service in addition to the VPN.  You can use a configuration called Split Tunnelling for the VPN which allows you to route certain traffic targeted for specific IP(s) down specific 'gateways' but keep other traffic on the normal connection.

 

Here's what I would do if you can get access to a HTTP/HTTPS proxy (I can provide you credentials to test one of mine for 24 hours if you want to confirm functionality);

This will force all HTTP/HTTPS connections made within the browser to go via the static route, over the VPN interface and out of a proxy on the other end of the VPN.  Traffic stays encrypted from end to end.

 

There are other methods to accomplish the task also, but I would need information on the following;

  1. Does your router/firewall/edge device support IPSec or OpenVPN based clients?
  2. Can your router be configured for outbound routing policies based on TCP port?
  3. Do you have any Linux or *BSD experience?
  4. How far down the rabbit hole do you wish to venture?

Please quote or tag me if you need a reply

Link to comment
Share on other sites

Link to post
Share on other sites

You could also run a virtual machine with Linux, just for browsing, or get a cheap laptop.

I much prefer to dedicate my PC when gaming anyway and use my laptop or phone for browsing if I need to.

If you were willing to pay for a router anyway, then a cheap laptop shouldn't be unrealistic just for this purpose.

Router:  Intel N100 (pfSense) WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz)
WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz) Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~800Mbit down, 115Mbit up)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×