LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to get app to use tun0 instead of eno1 (https://www.linuxquestions.org/questions/linux-networking-3/how-to-get-app-to-use-tun0-instead-of-eno1-4175645121/)

Captain Brillo 12-28-2018 01:29 PM

How to get app to use tun0 instead of eno1
 
Trying to get a fool-proof VPN kill-switch set up (I'm probably the fool in question, of course.). I don't want to rely on a special program or app to take care of this, cuz what if the app fails? And they do, sometimes.

I used these commands to set the rules in ufw:

Code:

sudo ufw default deny outgoing
sudo ufw default deny incoming
sudo ufw allow out on tun0 from any to any
sudo ufw allow in on tun0 from any to any
sudo ufw allow out from any to <VPN address>

and so far it seems to be fine. Any comments re possible issues with this, feel free :)

Here's my question, and I'm sure there's a simple answer.

I have an app, pulse-sms, on my phone that has a desktop version on this box.
It allows texting from the PC, no matter where the phone is, as long as the phone is on.

What I want to know is how do I get this app to call out on tun0 instead of eno1? Otherwise I have to shut down the VPN to text. (Oh my, 1st world issue eh-wot?)

Any suggestions?

berndbausch 12-28-2018 05:31 PM

Quote:

Originally Posted by Captain Brillo (Post 5942196)

I have an app, pulse-sms, on my phone that has a desktop version on this box.
It allows texting from the PC, no matter where the phone is, as long as the phone is on.

What I want to know is how do I get this app to call out on tun0 instead of eno1?

That is an application configuration problem. How do you configure the PC version of this program?

Captain Brillo 12-29-2018 09:43 AM

It's configured from the phone...installed from Google store. The app communicates via the cloud with the phone.

But the real question, I guess, is how do apps know to use the VPN?

Browsers use it, automatically it seems, how do they know and why don't other apps?


All times are GMT -5. The time now is 05:05 AM.