• 18 Posts
  • 3.47K Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle

  • If you’re dealing with CGNAT you’ll need external jump points, there’s no working around it. The only question is if you own the external hops or not.

    FWIW Tailscale is doing a fair job of maintaining demonstrable privacy on the user plane while keeping the control plane proprietary.

    IPv6 can be a solution if your home ISP has decent support and if you can take advantage of IPv6 when on the go. In my corner of Europe I can’t, for example, IPv6 support from mobile carriers is sketchy to non-existent, so it doesn’t matter if my home has it.

    Tailscale Funnel is a free option, if you don’t mind slow speeds, and if you’re ok with a .ts.net domain for your public point. You can have HTTPS too, Tailscale nodes can generate publicly valid TLS certs for their node.tailnet.ts.net name, renew it automatically, keep it private on the tailnode and only terminate TLS on the node. This would eliminate the need for Tailscale to run on all the client devices, you’d just need a node for it on the server.

    Cloudflared is another free option but you have to be careful how you set up the tunnel and disable all caching and make sure Cloudflare doesn’t terminate TLS for you and snoop on the content. (I say “snoop” but it’s a bit disingenuous, since their tunnel was intended as a CDN hydration mechanism so it’s normal for it to inspect content for caching and WAF. The fact self-hosters choose to use it for NAT punching is neither here nor there.)

    Other than that the only option is a VPS or some other form of jump-host. They can get pretty cheap FWIW, especially if you pay per year. I would prefer a VPS where I can set up my own thing (set up WG or SSH, maybe add HAProxy with PROXY protocol to relay the public IPs to the home proxy etc.) rather than a TCP jump tunnel set up by someone else.


  • Sometimes it’s hard to tell where the line is between your own company’s IT department and Microsoft employees.

    I’m guessing you mean this figuratively? Because there’s a very clear separation between Microsoft people and customer people. In fact it can be almost impossible to reach anybody at Microsoft directly.

    Even their support layer is convoluted and outsourced and detached from actual Microsoft employees. Most companies deal with Microsoft through a specialist layer (CSAM / account representatives) who are third-party professionals or companies that have more direct contacts and tools into Microsoft.

    If your own company retains a CSAM specialist on premises it can feel like what you’re describing, they are very likely to evangelize. But they’re not usually directly employed and not technically part of your own IT department, just working with them.


  • Yes, I have this set up. I would suggest doing this in stages.

    1. First stage, LAN setup:
      • Pick a reverse proxy and get it working on the LAN with plain links (http://service.example.com/, no SSL). If it’s your first time using a reverse proxy, Nginx Proxy Manager has a GUI interface that’s easy to use. If you prefer to configure things by writing config files then Caddy, HAProxy and Traefik are other solid choices but there’s a bit of a learning curve involved with their config syntax ofc.
      • You’ll have to be able to control your LAN DNS (typically lives on your router) to send *.example.com to the LAN IP of the machine that the proxy lives on.
      • You also need that machine to always have the same IP, either set it statically or with DHCP (allocation by MAC address). Static is easier but make sure it doesn’t overlap DHCP’s dynamically allocated range.
    2. Secondly, get HTTPS going to you can access services at https:// on LAN.
      • Most reverse proxies have a built-in certbot that can get and renew Let’s Encrypt certs for free.
      • You can also install and schedule Certbot (it’s a Python PIP CLI app) to run standalone on the machine if you want, it will produce the cert files and you can just point the proxy at them. This is useful if you’re using multiple proxies, or if you’re switching proxy at some point.
      • You want to always get certificates for a wildcard (*.example.com), never direct domains (jellyfin.example.com or example.com). TLS certs are all public and there’s a public log that anybody can access. Direct certificates are only useful for public internet services (e.g. if you have a website at www.example.com and example.com). The public cert log is routinely used by malware bots to discover services to attack them, so the less information you give them the better.
      • This would be a good time to consider if you want to put services on the first subdomain level (*.example.com) or at an additional sublevel (*.home.example.com). You can use anything instead of .home. of course. This can be good practice long term if you intend to use the domain in other ways in the future, for example you might decide to expose something to the internet at a direct subdomain (something.example.com) and it helps if the private stuff is clearly demarcated from the public stuff.
      • You can get multiple things on a single certificate. If you want both *.example.com and *.home.example.com you can make it a single cert, no need to get them separately. But getting them separately might be useful in some cases, for example let’s say you want *.example.com to be used by something living on a VPS or a cloud service, you would want to only give that certificate to that cloud machine, not also the cert for your home stuff. But if in doubt just get the one you need for now.
      • You need to prove to Let’s Encrypt that you own the domain each time you get or renew a certificate. This is done through a method called DNS-01 (mandatory if you want wildcards) that involves putting a secret code in a TXT record at _acme-challenge.example.com for a minute or so while LE verifies it. The proxy or certbot will do this for you automatically for every renewal, but it needs a key or token to modify your public DNS for example. com. This means that whatever service handles example.com for you needs to have an API for this. If you’re using your registrar’s DNS currently it may or may not have a LE-friendly API. You don’t have to change registrar if it doesn’t, you can delegate the nameservers to a DNS provider that does. DeSEC.io is a free one that’s privacy-respecting and works with LE, has API access and is known by most certbots and proxies.
    3. Third stage is getting Tailscale to reach your reverse proxy whenever you access https://*.example.com when connected to it.
      • I’m guessing you have Tailscale running directly on the host machine that also runs the services and will run the proxy, and that the tailscale0 network interface is picking up service ports automatically when they bind to “0.0.0.0” or “all” interfaces.
      • You need to give the tailnode for the server a fixed IP in the Tailscale “machines” admin tab. It will be something in the 100.64.x.x range that Tailscale uses for its tailnets.
      • You need a dedicated DNS server that resolves *.example.com (or *.home.example.com if you decide to go with that) to that static 100.64.x.x address. Dnsmasq is a good choice, it’s small, very light on resources, and the config is a couple of text lines, basically interface=100.64.x.x and address=/example.com/100.64.x.x is all you need (to bind and resolve, respectively, to that static address).
      • Last but not least you go to Tailscale admin “DNS” section, click on “add nameserver”, pick “Custom”, enter the static 100.64. IP there, and also check “restrict to domain” and put “example.com” there. Now Tailscale will send all requests for *.example.com to your mini-DNS server, and it will resolve them to itself, and the reverse proxy is also there listening on that IP.





  • The Google Messages app distributed with Android phones only works with Google’s servers. Similarly, iOS Messages only works with Apple servers.

    The Google Jibe servers did not exchange messages with Apple Jibe servers and the other way around. So even if their respective Messages apps implement RCS separately there’s no cross-platform interactivity.

    Open standards don’t mean much for a client-server architecture when there’s no willingness to follow the exact same standard and everybody wants their own servers to get ahead and capture the clients.

    Apple has held out from implementing RCS because they have their own walled garden with iOS Messages and saw Google as an underdog trying to gain access to a larger market. They relented only when RCS on Android gained 50% market share in America and suddenly they both stood something to gain.

    Similarly, Google is stingy about sharing RCS with manufacturers they consider beneath them and who won’t use Google’s American servers on Google’s terms. But they relented in select markets because of their size (China, India), or because they were told to fuck off if they didn’t interoperate (Japan, Korea).

    That was made possible in Japan and Korea because their carriers put up a united front. In European countries by contrast each carrier tried to do their own thing (joyn), then they rolled over and used whatever Apple and Google put in front of them.


  • otherwise it’d be a bit too easy for big companies to have an “ooopsie” with their emails when requested as evidence.

    That ship has already sailed. It’s being done all the time by big companies, political entities, LEOs etc. who keep “losing” crucial incriminating evidence and absolutely nothing ever happens to them.

    The big difference is that they can demonstrate intent in this guy’s case. Using an OS that he knows will destroy its data is the equivalent of intentionally “boobytrapping” that data, and letting the police trigger that bobbytrap knowing what will happen. Whereas the people in all those high-profile cases are smart enough to feign unintentional incompetence or coincidence.



  • RCS is a client-server design unfortunately, so it will always be beholden to whomever runs the servers. A fact which is not lost on anybody who tries to implement it, who all end up trying to lock in customers and screw their business partners.

    Remember when it first came out (under the joyn moniker) and every carrier in the world and their dog tried to gatekeep it?

    It also took Google a very long time to work out a scheme where they relented to share RCS with Apple globally and with a handful of other actors regionally (Jio in India, Synchronoss in Japan, ZTE in China, Samsung in South Korea). But all these actors play their cards close to their vest and are always ready with alternatives in case the partneship goes south.


  • I will second this. The key thing here is the access method and running it on a machine that’s reliable long term, and can sit in one place instead of traveling, and is well backed up.

    Proxmox could be good if having a server where you also install other stuff figures into your business strategy. If you’re gonna do that later you might as well do it now.

    But since you haven’t used Proxmox before I’d be a bit wary of recommending it. Not sure what’s your background with self-hosting and/or system administration to begin with. In these communities we tend to take a lot of that for granted so there’s a lot of stuff that goes unsaid because it’s considered common-sense for a versed user, which may not in fact be the case for you.

    Also, not sure if the software you plan on using will deal gracefully with being used in two places at once, for example, so you can return to the laptop if something doesn’t work out with the Proxmox.

    Other than that Proxmox is a solid choice, you can take snapshots of the Windows VM with it and back them up, it makes administering VMs and containers easy in general. That’s not likely to be the issue, it’s what you do with those VMs and containers that can bite you.


  • Syncing to dovecot is what I landed on eventually too. Maildir format is plain text files so you can run backups on them as well as get the benefit of IMAP access so you can point an email client or webmail app at it to do searches and reorganizations.

    FWIW I’ve tried it the other way around, to sync from live IMAP mailbox to disk files and then convince dovecot or another private IMAP server to serve them read-only and it can be done but it’s a pain in the butt. Plus, it only gets you the ability to search but not to handle and reorganize the archive.

    The main trick is to neatly separate any handling and organization you do in the live mailbox from the organization you do on the private side. I achieve that by having a folder called Archive on the private server that doesn’t exist on live and I do all long term storage reorganization in there, while folders and changes on live get propagated to their own folders.


  • Yes what you describe is exactly what I’m doing. You don’t need any fancy apps for it, in fact it’s best if you keep it simple and do it all with IMAP.

    Now, your email provider needs to support IMAP. Normally I wouldn’t even mention this but the so-called “encrypted mail” providers like Proton make you jump through hoops so it’s not a given. (Personally I never use a provider that doesn’t offer straight IMAP, smells too much of potential lock-in.)

    You also want to self-host a private IMAP server. It’s the easiest way to handle things. Dovecot is pretty easy to set up and very good.

    (You can sync to disk as plain text files if you want but you’ll have to choose a format, and actually using those files can be awkward. Syncing to a live IMAP is ideal IMO.)

    Then you just use the mbsync or imapsync CLI tool on a schedule to bring in messages from the live mailbox(es) to the private ones.

    You can also self-host a webmail app for the private IMAP server (I like Snappy and Roundcube) that you can access securely through a reverse proxy and search your emails or you can even configure it to send through the provider’s SMTP.

    You can keep using other email clients with the live mailbox during this time.

    after 2 weeks, emails are stored on some type of self-hosted service, leaving minimal footprint on the cloud?

    Neither mbsync nor imapsync have this feature AFAIK so you’ll have to use a different tool for that.

    I achieve this in my desktop email client (Claws Mail) which has this option for POP3.

    If you want to script and automate this cleanup there are CLI tools that can do it, for example imapfilter (which takes a Lua config script) or you can put together a Python script using the imapclient library (available in pip).

    Hope this helps.


  • I’ve had only one business ask me this once but probably because I rarely have to interact with people for it.

    I did consider this when I got the “throw-away” email domain, made it something that’s easy for people to understand.

    It’s probably easier that, if you have to verbally dictate someone an email, you sneak a clue about them in there without it being super obvious. Maybe an abbreviation or a number. Like maybe you call it “gym2@” and not “nameofgym@”. Probably better overall all things considered, and as long as it’s unique it doesn’t really matter.




  • Truth is, it is availible in the normal kernel now and several distros offer it from start.

    You may want to rephrase this. ZFS license (CDDL) is still incompatible with the Linux kernel (GPL) so it’s not part of the kernel sources and needs to be compiled as an out-of-tree module against the kernel you’re running.

    Some distros make such modules available by default with some of their official kernels, some don’t. You can get it installed on most distros but the manner of doing so and the amount of support you can expect from the distro varies wildly. If install/update is a manual operation you run the risk of the module falling out of sync with the running kernel.


  • TLDR: Quadlets are systemd units adapted to orchestrate containers.

    Once upon a time Podman wanted to be a FOSS reimplementation of Docker, complete with compose, but it didn’t want to have the same approach with a rootful daemon so it focused on running containers “manually” via podman command.

    But you need orchestration in order to autostart containers, restart them when they die etc. so it landed on systemd which already does orchestration among other things.

    Quadlets aren’t quite the same as compose because they were designed for a very different system and with different goals in mind. Also the rootless approach doesn’t necessarily work with every docker image. If you’re considering a migration it’s going to be a bit of a chore and you’ll have to labor extensively to get some apps to work.

    The old compose compatibility layer of podman is still around but it’s not 100% compatible anymore and you have to account for the rootless approach and still do some orchestration.

    It’s not necessarily “better” or “worse” than docker, just different, so prepare to learn a different way of doing things.