News for hackers. Stuff that matters.
Re:Ask HN: My client want an agent on my laptop. Is this the... by xyst on Friday December 17, 2021 @04:17AM (#29589768)
Network segmentation with vlan is what I would do.
Re:Ask HN: My client want an agent on my laptop. Is this the... by gnfargbl on Friday December 17, 2021 @04:27AM (#29589839)
Yep, exactly. I used to put client devices on a segregated network and tunnel their traffic out to pfSense running on a cheap cloud box somewhere. Worked well.

(I should say that intentional monitoring of my private comms was never a concern for me when I freelanced, but I was somewhat worried about infections in my clients' devices moving laterally to my home network.)

Re:Ask HN: My client want an agent on my laptop. Is this the... by lambdaba on Friday December 17, 2021 @08:42AM (#29591952)
As someone who isn't well versed in networking could you describe your setup in overview? Like, what software/hardware, etc.? Thank you
Re:Ask HN: My client want an agent on my laptop. Is this the... by xnyan on Friday December 17, 2021 @11:51AM (#29594750)
Mini-rant: people on hacker news frequently undervalue their knowledge and don't consider the things they know to be of much worth. A classic example of this is the "I can't see why dropbox is a thing, simply build a cloud file sync service - easy" post. This poster is running their own semi-professional router (pfsense) on whitebox hardware. I would not want to do that unless I already knew what I was doing or wanted to spend some time learning.

The type of network segmentation being discussed is not rocket science, but it's not trivial either. VLAN segmentation can have tricky edge cases that cause things to break in a non-obvious way, nothing that can't be worked around but for someone who "isn't well versed in networking" would probably be more than you're up for. Also keep in mind that you can't do this with most consumer networking gear becasue it's too complicated to setup and support without some experience and knowledge.

I'd not recommend VLAN segmentation unless you want to become someone who is more versed, which I don't oppose, but it's not a switch you can flip in 5 seconds and never think about it again.

Re:Ask HN: My client want an agent on my laptop. Is this the... by ArchOversight on Friday December 17, 2021 @12:43PM (#29595531)
I very much agree with this. I don't think that this is the solution for most home users/consultants working from home.

The more obvious solution would be to get a separate WiFi router and internet connection strictly for work purposes.

At that point you could also consider it a 100% home office expense and it may be tax deductible (talk to your accountant).

Re:Ask HN: My client want an agent on my laptop. Is this the... by Siira on Saturday December 18, 2021 @07:48AM (#29604102)
Can one use two internet connections from a single phone line?
Re:Ask HN: My client want an agent on my laptop. Is this the... by ArchOversight on Saturday December 18, 2021 @06:12PM (#29609612)
Yes.
Re:Ask HN: My client want an agent on my laptop. Is this the... by gnfargbl on Friday December 17, 2021 @12:23PM (#29595216)
Sure. I didn't actually use a VLAN: I had a spare TP-Link router lying around, so I installed OpenWRT[1] on that and gave it a static IP on the home network side, then plugged it into my broadband provider's box. On the cloud side, I basically followed a guide, maybe [2] but I don't remember exactly. Once I had pfSense installed, I first set it up as an OpenVPN server.

I then went back and configured the OpenWRT box to create a WiFi hotspot and serve DHCP on a different subnet to that used by the home network. I configured an OpenVPN client tunnel from the router to pfSense, then set up a NAT ("masquerade") from the segregated network into the tunnel. I think I actually left a couple of ports open on the OpenWRT from the segregated network, but properly I should have firewalled them off so that the router was only accessible from the home network, since I doubt OpenWRT has been seriously pen tested by anyone. I'd probably also use Wireguard if I did it again.

The above config worked, but the CPU on the TP-Link was too underpowered to get more than a few Mbit/sec throughput. Since I didn't particularly care about having a VPN (I was going to throw this traffic on the internet anyway), I messed around and managed to change the tunnel type to L2TP. L2TP pretty much just takes the packet you give it and adds a UDP header for routing, so that approach gave me full bandwidth. I think I had to mess around a bit more getting MTUs set correctly to account for the L2TP header, and maybe had some trouble with auto-restarting the tunnel on failure.

One of the (flagged) responses to my original comment was "Who the fuck has the time to do that?" I actually think that is a fair comment. This all took a day or two to set up and debug, it isn't something that the casual user is going to do and, to be honest, I probably wouldn't have done it either except that I wanted to play with pfSense.

I'd do it again, though -- it was fun.

[1] https://openwrt.org/

[2] https://silasthomas.medium.com/how-to-import-a-pfsense-firew...

Re:Ask HN: My client want an agent on my laptop. Is this the... by lambdaba on Friday December 17, 2021 @01:34PM (#29596268)
Thank you! Though I agree with the sibling comments that it's probably not something to dabble in unless you're pretty confortable with this... May I ask, is this somewhat in your area of expertise, what kind of development do you do (supposing you're a developer?). Sorry if too inquisitive, just curious :).
Re:Ask HN: My client want an agent on my laptop. Is this the... by gnfargbl on Friday December 17, 2021 @02:32PM (#29597248)
I think you should dabble in it! This stuff isn't magic, it's just a bit esoteric in places. That makes it a great (and valuable) skill to learn.

I do cyber/data stuff, often on the network-y end.

Re:Ask HN: My client want an agent on my laptop. Is this the... by ArchOversight on Friday December 17, 2021 @12:42PM (#29595504)
This is what I do for a variety of different things:

  - $CORP devices are on a VLAN + Wifi that has access to the internet, but no other internal networks
  - Internal network for file servers/printers and the like
  - Personal device network, think laptops/phones/tablets that are mine, can reach internal network
  - IoT network - Think sensors/robot vacuums/"smart devices"
  - Guest network, for well visitors to my home
  - AirPlay network, has all my Apple devices on it to allow for music to be airplay'ed to TV's/HomePods, can be reached from internal/personal/guest network
Now I also understand that I am outlier, I am running a fully segmented, firewall, traffic inspected/logged home network with small business or even large business network gear, with FreeBSD as the router/firewall with a managed switch/WAP platform from TP-Link.

This is not something the average home user or consultant is going to setup/configure/manage and I don't expect it either.

The worry that the $CORP device will be abused to "validate the security of the network its connected to" is very much a possibility. Most corporations have no desire to do so, and endpoint protection is their primary goal, and they don't need to scan your home network to do so, it is all local to the device. It's about protecting the integrity of the device, not the rest of the network around it.

Re:Ask HN: My client want an agent on my laptop. Is this the... by neverartful on Friday December 17, 2021 @01:20PM (#29596043)
Which TP-Link switch do you use?
Re:Ask HN: My client want an agent on my laptop. Is this the... by ArchOversight on Saturday December 18, 2021 @06:10PM (#29609591)
I use the Omada SDN business line-up.