Live data from Hacker News

Ask HN: What do you use for remote access?

news.ycombinator.com

41–50 of 57 posts

Re: Ask HN: What do you use for remote access?

#41
post #24

IPv6. This allows my hosts to be accessible to the internet, even though they're behind routers/NAT devices.

Some pointers for a noob to follow? Thanks in advance.

Either the machine is routed to the internet because there's an IPv6-aware router properly set up with an ISP that provides a prefix, or you can create a 6in4 tunnel through a broker such as Hurricane Electric[0] or SixXS[1] (either on a router or on the machine itself).

[0]: https://tunnelbroker.net

[1]: https://www.sixxs.net

Re: Ask HN: What do you use for remote access?

#42
post #2

Zerotier - https://www.zerotier.com/ Create a network with automatic IPv6 addresses and start the management access service (likely ssh) on the zt0 interface. then it "just works", regardless of NAT in between. This is a completely userland solution however. You probably don't want to put real service traffic on it if you care about throughput. It's perfect for management however. (or just test it, maybe you can satu…

Zerotier is a great solution. I've been using it for a few months now.

I can't say if it is right for businesses, or services, but if you just need to be able to connect to any of your devices, from any of your devices, no matter where you are; then zerotier works wonders.

Sadly I can't seem to get it to compile under OpenBSD.

Re: Ask HN: What do you use for remote access?

#44

Earlier quoted context omitted.

That's not how reliability works. If you use 3 different layers that the traffic needs to pass through, you have 3 different layers that can fail. That means less reliability, not more.

I obviously wasn't suggesting that.

It wasn't obvious to me.

Re: Ask HN: What do you use for remote access?

#45

Earlier quoted context omitted.

Also impossible to properly firewall. By design you give the whole world the opportunity to send you traffic to forward. This does not work for any kind of professional deployment.

This depends on what you mean by "properly" and "impossible" and "professional" and "forward". Many professional name-brand corporations use Tor daily. The only ports opened are those you configure to have onion services. Port limiting is one of the major features of firewalls. You don't get to control source IP ranges, but those aren't generally trustworthy on the open internet anyway. Also, the traffic isn't "forwa…

> You don't get to control source IP ranges, but those aren't generally trustworthy on the open internet anyway.

IP ranges are just another layer of security controls. They may be easily spoofed one way. They may be even spoofed in a two-way communication in some situations. But it doesn't mean it's a useless control. If you can filter more traffic you should and Tor makes that hard to achieve.

> Also, the traffic isn't "forwarded" -- hidden services shouldn't be run on a relay, actually, so you're not forwarding anybody's traffic but your own.

Even if you don't participate in the relay of traffic, you're still connecting to the nodes that can send you anything and you need to process it, because it could be traffic addressed to you. I said you may get traffic to forward (or random traffic in general) - it doesn't matter if you're going to actually do it or not. I wouldn't be comfortable running that service. This does not help to reduce your attack surface.

> allows you stronger security guarantees and MitM defense than TCP+DNS+IP routes

It's a tradeoff. You're substituting tested routing mechanism should not be trusted (so we do the AuthN/Z in higher layers), for a relatively new routing mechanism which in duplicates some of the AuthN checking, but at the same time exposes and advertises a new service on your network. You may think it's better, I would disagree.

Re: Ask HN: What do you use for remote access?

#46
post #9

Earlier quoted context omitted.

> TLDR (VPNs are slow) I don't think that's correct. There are multiple kinds of VPNs and multiple things that slow them down. Specifically: - OpenVPN and other tun/tap handlers send more wrappers and suffer from slow userland networking - SSH tunneling sends the least amount of unnecessary encapsulation / wrappers - IPSec, wireguard and other services that do actual traffic processing in the kernel are likely to be…

OpenSSH has support for VPNs so you can connect two networks, although they do mention that for permanent VPNs you should use something else.

Right, they did add this recently! I haven't played with it yet unfortunately.

Re: Ask HN: What do you use for remote access?

#47
When I'm on the road, I use tinc from the server in my home office out to a bastion server I have in the cloud. Separate keys and passphrases, no ssh-agent to keep the passphrases around for anyone who gets their hands on my laptop. Super simple to set up, and hasn't failed me once in several years. I guess you could argue that tinc isn't the most secure option, but I'm not too concerned about somebody managing to be in the middle of that path. The bastion's the thing that has to be most hardened against attack.

Re: Ask HN: What do you use for remote access?

#48
post #29

For VNC-style full desktop access, Teamviewer just works...it runs on Windows and Linux, is very fast, and (usually) doesn't need any special firewall/NAT rules set up. I believe on Windows at least, it can be used to establish a VPN as well. Might be overkill if you just need to reach one particular service (e.g. HTTP(S)) though, in which case you could consider setting up a reverse proxy (e.g. using nginx) on a DMZ…

Is remote access by TeamViewer established through the VNC protocol? I use RealVNC when I want to remotely control my computer but it's not as fast as I'd like in most cases. Also I'd prefer it if the connection between me and the server I'm connecting to was direct and wasn't being routed through the servers of a third party. I checked Wikipedia and it says direct P2P connections happen 70% of the time but I'm not so sure.

Re: Ask HN: What do you use for remote access?

#50
I usually use sshuttle. It requires you to be able to SSH into a box with Python that’s behind the NAT, which is usually the router or something already exposed through port forwarding. On the client, it then uses iptables or pf to tunnel TCP and UDP through an SSH tunnel. No complicated network setup is required and it is easy to set up limited subnets for tunneling, for example.
Post reply on HN