Jump to content
Not connected, Your IP: 3.141.198.147
Sign in to follow this  
FPyro

Using VPN only for specific programs/ports

Recommended Posts

Hi!

I was wondering if there exists a way for me to have only specific programs or ports use the VPN tunnel?

For example, is it possible to tell the VPN client to tunnel everything, BUT my http/https traffic, or every port except ports 80/443; or the other way around for that matter?

The problem is that I like online gaming with very low ping, but that is not possible at present with the current setup of having everything go through the vpn.

I hope there is a way to achieve that.

It would be much appreciated if you could help me with this matter and provide a not too complicated solution.

thank you.

Share this post


Link to post

Hi!

I was wondering if there exists a way for me to have only specific programs or ports use the VPN tunnel?

For example, is it possible to tell the VPN client to tunnel everything, BUT my http/https traffic, or every port except ports 80/443; or the other way around for that matter?

The problem is that I like online gaming with very low ping, but that is not possible at present with the current setup of having everything go through the vpn.

I hope there is a way to achieve that.

It would be much appreciated if you could help me with this matter and provide a not too complicated solution.

thank you.

Hello!

Please read here and remember to proceed with caution:

https://airvpn.org/index.php?option=com_kunena&func=view&catid=3&id=1914&Itemid=142

Kind regards

Share this post


Link to post

If your intention is to allow one PC (or similar device that can be configured with a static IP) AND you are running OpenVPN on your router you can telnet to the router and issue the following:

nvram get wan_gateway

ip route add default via xxx.xxx.xxx.xxx table 10 #where xxx is the wan_gateway IP received in the preceding

ip rule add from 192.168.xxx.xxx table 10 #where 192 is the IP (assign static) of the device you want outside the tunnel

Keep in mind ALL traffic from this device will be outside the tunnel and that these commands will need to be run after each router boot. If you have a 'stable' wan gateway IP then only the last two are needed after you initially find it and could be part of a startup command set. Of course you can do multiple devices, I use it for a VoIP device.

Cheers

Share this post


Link to post

The solutions look far from easy and quite risky. I was hoping there was an easy way.

I'd rather not configure something myself. It has advantages of tunneling everything, the most obvious being that no application can reveal your true ip.

Well, thanks anyway.

Maybe someday somebody will come out with a nice program that can make exceptions for programs or ports with a few clicks.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...