LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2018, 01:29 PM   #1
Captain Brillo
Member
 
Registered: Jul 2018
Location: Capital of Raccoon Nation
Distribution: Manjaro Cinnamon
Posts: 183

Rep: Reputation: 25
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?
 
Old 12-28-2018, 05:31 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Captain Brillo View Post

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?
 
Old 12-29-2018, 09:43 AM   #3
Captain Brillo
Member
 
Registered: Jul 2018
Location: Capital of Raccoon Nation
Distribution: Manjaro Cinnamon
Posts: 183

Original Poster
Rep: Reputation: 25
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eth0 is now called eno1 nigelc Linux - Newbie 1 09-14-2014 09:09 AM
iptables question with OpenVPN (tun0 to tun0 filtering) fang0654 Linux - Server 3 09-30-2009 02:17 AM
How do I get add/remove packages app to use local RPM's instead of CDs? TJ_Cassidy Fedora 3 12-09-2005 07:20 PM
Tun module loaded, how to create tun0? swiftnet Linux - Software 0 09-05-2005 05:20 PM
how can i set apache httpd to listen to interface tun0 ? kublador Linux - Software 1 08-31-2004 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration