[ale] ot: internet connection
Scott Plante
splante at insightsys.com
Tue Apr 14 17:38:25 EDT 2015
Since it's a Linux list, as a thought experiment, suppose it were a Linux laptop instead of an Android phone.
Could you do it with Docker? I've seen a couple of tutorials on Docker and it seems like you could, except I don't know if you can run GUI stuff under Docker. I've only seen daemons, servers, etc. Sure you could fire up a full-blown VM, but that could be cheating.
Googling turned up a reference to "network namespaces" but I hadn't heard of them until now. Seems like you can configure your interfaces into namespaces, then execute:
ip netns exec <network namespace> <command to run against that namespace>
So like,
ip netns exec wifi /usr/bin/firefox
or
ip netns exec fourG /usr/bin/thunderbird
Am I understanding that correctly?
Maybe Android has the ip netns command too, or the underlying things in the kernel where you could compile the command yourself.
Scott
----- Original Message -----
From: "DJ-Pfulio" <DJPfulio at jdpfu.com>
To: ale at ale.org
Sent: Tuesday, April 14, 2015 5:12:39 PM
Subject: Re: [ale] ot: internet connection
On 04/14/2015 04:27 PM, Boris Borisov wrote:
> Such a general topic but will try to explain :)
>
> I'm sitting at Starbucks having coffee break ( deserved ) . They have free wifi
> but. My phone is company phone used for work with company email and what not So
> I would hesitate to get on free wifi. But probable idea/scenario. You attach to
> wifi but you tell which program to go through wifi and which through 4g/3g. Is
> that even possible ?
>
>
So you want a split tunnel, but no VPN. Nice.
In stock Linux, the only way I know to do that is with iptables routing based on
userids - every different routing solution needs to run under a different ID.
Don't know if root'd android can do that or not. There are a few
permissions-control apps for Android where you can deny different permissions by
app/userid. Haven't looked at how fine the network controls are. Not rooted
anymore. Sorry.
More information about the Ale
mailing list