How to make only a single program(game) go through VPN, but the rest ignore VPN and connect normally?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
morph
Posts: 2
Joined: Thu Aug 17, 2023 2:16 pm

How to make only a single program(game) go through VPN, but the rest ignore VPN and connect normally?

Post by morph » Thu Aug 17, 2023 2:27 pm

Hi guys, my question is just as subject says. I've been using SoftEther +VPN Gate for some time, but never really dived into the technical side of this.
Usually I'd just use it to let my entire PC bypass regional firewalls, but now instead of doing that, I'd like to just let this one game go through the VPN, so that my other internet activities don't get affected by the low bandwidth and speed. I tried to have a look to see how to set it up but only found bits of info that I don't understand as a complete newbie. Split tunneling? I don't really know how to set it up, nor am i sure if it's even the right thing to do for my needs.
Any help would be appreciated!

solo
Posts: 1285
Joined: Sun Feb 14, 2021 10:31 am

Re: How to make only a single program(game) go through VPN, but the rest ignore VPN and connect normally?

Post by solo » Thu Aug 17, 2023 4:30 pm

1. don't make the VPN a default gateway
2. add a persistent static route to the game server's IP

morph
Posts: 2
Joined: Thu Aug 17, 2023 2:16 pm

Re: How to make only a single program(game) go through VPN, but the rest ignore VPN and connect normally?

Post by morph » Fri Aug 18, 2023 3:20 am

hello, thank you for your reply. unfortunately i'm so new to this that i don't know how to execute your advice. To start off, is it enough to set this up with just the VPN client, or do i need to use the Softether VPN server thing? I usually just use the client, but yesterday downloaded the server thing too, and have no idea how to use it yet.
1. where do i do this? in the client? server? or in windows Network Connections? (i'm using windows10) I saw some vids that talk about disabling the default gateway option, but i cant find that option in my VPN network adaptor, as the attached image shows. in the vids it was at the top of the most right window.
2. no idea how to add a persistent static route either. By game's server IP, does that mean if i can't find out the game server's IP, this wouldn't work? I had a look and unfortunately didn't find it.
Sorry that i'm lacking the very fundamental knowledge x_x
You do not have the required permissions to view the files attached to this post.

solo
Posts: 1285
Joined: Sun Feb 14, 2021 10:31 am

Re: How to make only a single program(game) go through VPN, but the rest ignore VPN and connect normally?

Post by solo » Fri Aug 18, 2023 7:04 am

Code: Select all

- modify VPN Gate settings
GUI: public-vpn-185 > Properties > Advanced Settings > No Adjustments of Routing Table: CHECK

- connect to VPN Gate via GUI or...
"C:\Program Files\SoftEther VPN Client\vpncmd.exe" localhost /client /cmd AccountConnect public-vpn-185

netstat -r

Interface List
 18...5e 2e bb 6f f0 91 ......VPN Client Adapter - VPN           <--- note the interface number

Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.101.1  192.168.101.213     20
          0.0.0.0          0.0.0.0   10.245.254.254     10.245.134.2      2   <--- note the gateway
       10.245.0.0      255.255.0.0         On-link      10.245.134.2    257
...

route delete 0.0.0.0 10.245.254.254

nslookup abc.net
...
Address:  162.243.117.188

route add 162.243.117.188 mask 255.255.255.255 10.245.254.254 IF 18

tracert -h 3 abc.net
Tracing route to abc.net [162.243.117.188] over a maximum of 3 hops:
  1   471 ms   500 ms   451 ms  10.245.254.254
  2   376 ms   311 ms   319 ms  gw2.vpngate.v4.open.ad.jp [219.100.37.253]
  3   592 ms   416 ms   504 ms  igp1.green.v4.open.ad.jp [202.222.12.190]
Replace "public-vpn-185" with your VPN Gate connection and "abc.net" with your game server's name, of course.

Post Reply