I've setup a VPN client and successfully selected my computer on the lan to be routed through this vpn which is great but is there a way to bypass the VPN and go directly through WAN when I play COD Warzone? I do not want the added latency of going through the VPN when gaming. I've been disabling the VPN director rule when playing but was looking to see if there is a rule to make this work automatically.
I've setup a VPN client and successfully selected my computer on the lan to be routed through this vpn which is great but is there a way to bypass the VPN and go directly through WAN when I play COD Warzone? I do not want the added latency of going through the VPN when gaming. I've been disabling the VPN director rule when playing but was looking to see if there is a rule to make this work automatically.
The short answer is yes. The longer answer is how much effort you want to put into setting it up
Disable the VPN when playing the game if your PC is the only client?
Remove the PC from the routed systems, or setup a bypass depending on your configuration, when playing games?
There are a number of threads on how to bypass or enable for specific ports if you know the range used.
You can also create enable and disable scripts that you run.
I'm sure there are many other ways.
@DarnellG ... It is a PITA. How about make it easy on yourself, and just set up a different IP for your PC that routes directly over the WAN vs. the VPN. Configure your VPN to keep your current IP to route over the VPN, and create another that gets excluded from it. You could probably create a few batch files on your PC's desktop, one labeled VPN.bat and the other COD.bat... and just run whichever one you want. In each batch file, just have a statement like this that reflects which IP it needs to change to:
Code:
netsh interface ip set address "Local Area Connection" static 192.168.0.10 255.255.255.0 192.168.0.1 1
That's static IP address, subnet, gateway, and metric (usually 1)... incase you needed it. Also, this is assuming your default LAN connection is called "Local Area Connection".
Agree with @Viktor Jaep to just change your IP. I went one step further and wrote this batch script
Substitute your static IP/Gateway/DNS and run as admin
Edit: make sure you add a rule in the VPN director for your static IP to route via your WAN connection
Code:
@ECHO OFF
net session > nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
ECHO Program needs to be run as Administrator
pause > nul
exit )
ipconfig | find "192.168.1.5" > nul
IF %ERRORLEVEL% NEQ 0 GOTO STATIC
IF %ERRORLEVEL% EQU 0 GOTO DYNAMIC
:STATIC
netsh interface ipv4 set dns "Ethernet" static 192.168.1.1
netsh interface ipv4 set address "Ethernet" static 192.168.1.5 255.255.255.0 192.168.1.1
ECHO STATIC IP set, VPN will be bypassed
pause
exit
:DYNAMIC
netsh interface ipv4 set address "Ethernet" source=dhcp
netsh interface ipv4 set dnsservers "Ethernet" dhcp
ECHO DYNAMIC IP set, traffic will be routed via VPN
pause
exit
Thanks everyone , I thought maybe there was a simplier automatic solution but I guess not. I'll stick with disabling the VPN director policy rule before playing through the web interface
Thanks everyone , I thought maybe there was a simplier automatic solution but I guess not. I'll stick with disabling the VPN director policy rule before playing through the web interface
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!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.