News for hackers. Stuff that matters.
Re:Going IPv6 Only [pdf] by pilif on Wednesday June 27, 2018 @06:55AM (#17407186)
> I can always ssh to any of my machines (or the VMs) from anywhere. It's just simpler.

Exposing an sshd to the public internet seems very risky. IPv6 or not.

Even with v6 in your LAN, you probably still want the firewall to drop all incoming connections and then use some kind of VPN or bastion host to get inside

Re:Going IPv6 Only [pdf] by tialaramex on Wednesday June 27, 2018 @12:41PM (#17409611)
If you just choose a completely arbitrary IPv6 address in your subnet for the server, random bad guys won't find it.

This feels unintuitive, after all my IPv4 SSH servers have people banging on them 24/7, but that's orders of magnitude for you, bad guys who can try one host per second every second of every day, for a lifetime, can explore all of the actively deployed unicast IPv4 space. But those same bad guys will drown in the enormity of a single 64-bit IPv6 home subnet, never finding anything unless a well known address (e.g. ::80 for a web server is popular) was used for a server.

If you use the default static addressing ("default" in the protocol sense, it's not the default in any major desktop OS today) they might find you, in a lifetime's worth of searching, by being clever and looking at specific device manufacturers. You probably have a MAC address from a popular company like Intel or 3Com, and there are only a few billion of those laying around, so it's a headstart.

But you don't have to give them that headstart. So don't, just pick a random address from the other half of the pool. Roll dice if you don't trust your RNG.

Re:Going IPv6 Only [pdf] by Symbiote on Wednesday June 27, 2018 @06:58PM (#17412619)
Statistics since 1 June:

An SSH server on port 22, home broadband connection: 212k failed IPv4 login attempts, zero failed IPv6 login attempts.

An SSH server on port 22, university connection: 269k failed IPv4 login attempts, zero on IPv6.

> If you just choose a completely arbitrary IPv6 address in your subnet for the server, random bad guys won't find it.

So that is true, but it also seems they won't even bother looking. My computer is as obvious as I can make it, it's listening on 2001:xxxx:xxx0::1/44, and still has had no attempts. Nothing on port 80 either.

And of course, there's nothing to prevent having several IPs on one machine, each for a different service. A DNS name for a web server then isn't revealing a possible SSH server.

Re:Going IPv6 Only [pdf] by supertrope on Wednesday June 27, 2018 @02:04PM (#17410365)
No longer letting ssh listen on IPv4 address definitely cuts down on brute force attempts. One caveat is someone cleverly found a workaround to do the seemingly impossible task of scanning IPv6 address ranges. They hosted a NTP server and harvested live addresses. So I guess those who disable NTP on the most sensitive VMs might be right. One is already suppose to have a local NTP server anyway, if only by pointing hosts to the firewall's ntpd.
Re:Going IPv6 Only [pdf] by Fnoord on Wednesday June 27, 2018 @08:49AM (#17407692)
> Exposing an sshd to the public internet seems very risky. IPv6 or not.

That depends on factors.

Personally, I prefer an SNT/VPN such as ZeroTier or WireGuard. SSH would suffice, so would SSH over Tor. Thing is though; you only need to expose 1 of these to public internet. The rest is redundant. Which can be useful though.

Re:Going IPv6 Only [pdf] by devereaux on Wednesday June 27, 2018 @04:00PM (#17411320)
My raspberry pi, home weather station, and test VMs are not THAT sensitive :)

Besides, with temporary IPv6, I don't think I have much to fear.

Re:Going IPv6 Only [pdf] by jacob019 on Wednesday June 27, 2018 @11:03AM (#17408667)
disable password authentication, ssh keys are secure enough
Re:Going IPv6 Only [pdf] by pilif on Wednesday June 27, 2018 @11:33AM (#17408964)
would you rather emergency security patch opensshd on 10 machines or one bastion host?
Re:Going IPv6 Only [pdf] by jacob019 on Wednesday June 27, 2018 @03:23PM (#17411002)
Not worth the added complexity. Exposing sshd (w/ disabled passwords) is common practice and fine for most use cases. Special use cases may require special precautions, but even airgapped systems can be compromised with enough effort. I'll take my chances with the industry standard and update as needed.
Re:Going IPv6 Only [pdf] by supertrope on Wednesday June 27, 2018 @02:09PM (#17410400)
If you're worried about zero days you might consider not allowing SSH through firewall and requiring connecting to VPN first. That'd require a flaw in both OpenVPN and SSH.
Re:Going IPv6 Only [pdf] by jessaustin on Wednesday June 27, 2018 @08:48AM (#17407678)
GP probably has password login turned off in sshd...