8

I'm running Linux Mint 18. I use ufw and openvpn. I want to know if it is at all possible to create a VPN killswitch that doesn't require me to shut off my firewall if I want to stream movies from sites like Netflix. I know how to set up a basic killswitch that kills my connection if tun0 is disconnected.

I really only need my VPN for traffic on Firefox and Transmission. I use Chrome purely for streaming services and don't go to any strange websites on it. Is there any way to configure my firewall or openVPN to allow traffic on Chrome when my VPN is disconnected? Or, better yet, is there any way to route specific applications around my VPN connection?

I'm running Linux Mint 18. I use ufw and openvpn. I want to know if it is at all possible to create a VPN killswitch that doesn't require me to shut off my firewall if I want to stream movies from sites like Netflix. I know how to set up a basic killswitch that kills my connection if tun0 is disconnected. I really only need my VPN for traffic on Firefox and Transmission. I use Chrome purely for streaming services and don't go to any strange websites on it. Is there any way to configure my firewall or openVPN to allow traffic on Chrome when my VPN is disconnected? Or, better yet, is there any way to route specific applications around my VPN connection?

3 comments

[–] [Deleted] 1 points (+1|-0)

Can UFW route your traffic via different ports depending wether you wanted it VPNd or not?

[–] E-werd 1 points (+1|-0)

I don't know how much I could help you here, but it's going to be tough, if not impossible, to configure a firewall on the basis of application.

You'll presumably have 2 interfaces involved here: one for your physical network connection, one for your VPN. Each will have a gateway, though the VPN gateway may not be consistent if I made a guess.

If you know where the traffic for streaming is going or coming from (relevant IP blocks), you should be able to route that through the gateway associated with your physical interface rather than your VPN gateway.