News for hackers. Stuff that matters.
Re:U.S. Navy bans TikTok from government-issued mobile devices by thaumasiotes on Saturday December 21, 2019 @11:54AM (#21852091)
> The whole idea of unrestricted network access is stupid.

I've been coming around to a similar idea. I'd like a setup something like this for my desktop:

1. Some devices representing network connections. One or more are "real"; others may be VPNs.

2. Per-application settings governing which network devices, if any, the application may use. Default to none.

For example, the common way to use a VPN is like this:

1. Start your machine. You're connected to the internet, but not yet to the VPN. All of your running software is already using the internet over the unprotected connection.

2. Start the VPN. It will magically do something such that applications wanting to use "the internet" find it instead of the connection they used to find (the one the VPN itself is still using). All of your running software is now using the VPN. Did you want something to use the other connection? Too bad.

I'm sick of the idea that Windows perceives an internet connection somehow, hides it from me, and automatically makes it available to everything that asks for "the internet". But I don't actually know how to do this. Someone is working really, really hard to make sure I don't affect who uses what device.

Re:U.S. Navy bans TikTok from government-issued mobile devices by bradgessler on Saturday December 21, 2019 @01:37PM (#21852624)
Check out https://www.qubes-os.org/

They secure and compartmentalize at the VM-level so you can setup a VM to work only over Tor or VPN, and others to work directly over your own network. You can also restrict access to hardware per VM.

Re:U.S. Navy bans TikTok from government-issued mobile devices by fleminra on Saturday December 21, 2019 @02:32PM (#21852908)
You can have per-application IP routing if you run applications within individual Linux containers. E.g.:

  sudo pflask --netif=macvlan:enp4s0:net0 tmux
Then inside tmux run a VPN client and the sensitive application.
Re:U.S. Navy bans TikTok from government-issued mobile devices by wrkronmiller on Saturday December 21, 2019 @12:26PM (#21852268)
This behavior is a function of Berkeley Sockets style APIs and the nature of routing tables/default routes.
Re:U.S. Navy bans TikTok from government-issued mobile devices by dahfizz on Saturday December 21, 2019 @08:25PM (#21854500)
Reading your comment melts my mind as a Linux user.

You can't just set your vpn connection as the default route? What's even the point if it's not the default route?

Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

Re:U.S. Navy bans TikTok from government-issued mobile devices by nl on Sunday December 22, 2019 @01:41AM (#21855654)
Of course Windows can (and does usually) use a VPN as an active route. The poster just doesn't know what they are talking about.

In particular this sentence is complete nonsense:

I'm sick of the idea that Windows perceives an internet connection somehow, hides it from me, and automatically makes it available to everything that asks for "the internet". But I don't actually know how to do this. Someone is working really, really hard to make sure I don't affect who uses what device.

As usual, MS has pretty decent documentation on this: https://docs.microsoft.com/en-us/windows-hardware/drivers/mo...

I don't particularly like the GUI_centric nature of much of it, but the complaint itself is completely ill-informed.

Re:U.S. Navy bans TikTok from government-issued mobile devices by dahfizz on Sunday December 22, 2019 @10:42PM (#21861346)
I had a feeling that this was just an uninformed user, thank you for clarifying.
Re:U.S. Navy bans TikTok from government-issued mobile devices by thaumasiotes on Monday December 23, 2019 @02:50PM (#21866683)
You've described the same system I just said I didn't want. But I'm uninformed for complaining that I want something different?

> Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

This is a bad idea. I want to connect the application to the device I think it should use. It shouldn't be able to find anything I don't tell it about.

Re:U.S. Navy bans TikTok from government-issued mobile devices by nl on Monday December 23, 2019 @04:57PM (#21867816)
>> Applications (at least on Linux) have no idea what device they are using. They just request a connection to an IP and it's the kernels job to route that request correctly.

> This is a bad idea. I want to connect the application to the device I think it should use. It shouldn't be able to find anything I don't tell it about.

Telling applications about resources is literally what the operating system is for. Both Linux and Windows let you do what you want.

Re:U.S. Navy bans TikTok from government-issued mobile devices by jjhb94 on Saturday December 21, 2019 @12:58PM (#21852427)
Can't you configure this with most firewalls by restricting WAN traffic?