• 10 Posts
  • 733 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle
  • IPP is a universal printer protocol aka “print anywhere”. Some printers support it natively, some need some help from a PC. If that PC runs Linux the most likely method is to run CUPS and connect it to the printer over USB.

    By IPP autodiscovery, do you mean mDNS? If so, does the router needs to install avahi as well for single-network discovery to work? Or just the client?

    Yes the autodiscovery is done with mDNS, which on Linux is done with Avahi.

    Typically Avahi is needed if you consume services over mDNS or provide them.

    So the Linux clients need Avahi. But the router only needs Avahi if the printer is connected to it, or to propagate broadcasts across zones.

    I’ve thought users could just manually input the IP addresses

    You can, but it’s really nice to have the printer available automagically (on any OS).

    BTW one extra potential benefit of solution 3 might be that the “printer” would always appear to be present on the network and accept print jobs, even if the actual printer is off, because the Pi running the print server would actually be on. Otherwise if the printer itself is providing the connectivity and announcement it will not appear in the list when it’s off. Whether you consider this a plus or not depends on how you handle your printers, I turn mine off when not in use, but some people let it go into powersaving mode so it’s always ready to print.


  • TBH it do be like that when you’re a solo developer.

    Branches come in after a certain level of complexity, if you need to do some kind of separate feature and you’re not sure how it would fit into the main project or something like that.

    They can also be useful if you start automating things. Updating a branch can be used to signal that a commit needs testing or deployment.

    And of course branches are super helpful when multiple people are involved.

    [On a side note, it’s interesting we still use the “branch” terminology even though modern source control systems aren’t trees anymore.]


  • If it’s a networked printer it needs to be able to broadcast to the LAN if you want IPP to work – which you probably do, since it’s well supported by all OS and lets you autodiscover the printer and print directly from most of your devices.

    This means you can’t isolate it fully from the LAN, so solution 2 is out.

    Solution 1 is good if you can trust the thing not to change or disguise its MAC address. I’ve heard of devices that have a 3rd dynamic MAC in addition to the wifi and ethernet MACs, that they use to bypass such restrictions. 🤪

    In order to do (1) properly you should create a firewall zone specifically for the printer, and allow that zone access to LAN but deny access to WAN. Then associate that zone with either a wifi access point created specifically for the printer, or with a specific switch plug if connected via Ethernet. This way the printer can’t bypass the restriction because it comes packaged with the only way it has of getting any connectivity.

    However OpenWRT firewall zones also have issues with cross-zone broadcast, but can be bypassed I think by installing and using Avahi on the router. Don’t quote me on that.

    Solution 3 seems best if you want to fully isolate it as well as retain IPP capability. That’s what I did with my printer, I connected it with USB to the server and I run CUPS + Avahi in a docker container that uses an ipvlan network to broadcast.



  • What about Tailscale, can they see http traffic over my Tailscale connection?

    No, they can’t see anything inside node-to-node connections. They are encrypted end-to-end with keys that are only kept on each node and the node clients are open source so you can verify yourself that’s how it works.

    The Tailscale servers only help the nodes find each other and establish connections to each other, they don’t have any access to the connections themselves.

    The only way for Tailscale to intervene would be for them to silently add their own nodes to your tailnet but (1) even then the rogue node would only see connections between itself and other nodes, not connections between other nodes, and (2) at some point they added a setting that requires existing nodes to approve any new node, so you can use that to completely prevent it.



  • It’s not even that hard to imagine, this is exactly what rogue wifi access points do. It’s surprisingly common for wifi access at places like coffee shops to be compromised and used to silently conduct these types of attacks. The people that set them up are not very knowledgeable and also they don’t ever check up on them as long as they keep working.

    This is also why you want to enable HSTS on top of your HTTPS, so that rogue requests to downgrade the connection to plain HTTP are ignored.

    Another good idea is to place all the services that should only be accessed over VPN only in private DNS (home LAN DNS and the VPN’s DNS), never in public DNS. A simple and effective way of doing that is to place them on a deep subdomain like *.private.example.com rather than *.example.com. That way if your VPN drops when you try to resolve those subdomains you don’t get any response anymore and there’s no connection for the rogue wifi to hijack.






  • That’s because it turns out there are tons of vulnerabilities out there introduced by very lazy and/or dumb code.

    It isn’t that AI has lowered the bar for hacking, it’s that it’s showing us just how much bad code is out there. The bar was already on the ground, we just didn’t know it.

    After all is said and done AI will actually end up raising the bar for security everywhere.

    Unfortunately we have a lot of legacy crap to clean first.




  • It’s not quite as simple as that. The author in this case followed a pretty specific trail to find the bug.

    Where AI helped was as the last step. They already knew what the bug would do and where to look, but actually looking through the source code for all the possible musl implementations out there would have taken a lot of time.

    So they brute-forced it instead and asked AI to spin up actual running instances of all those implementations and simply tried the bug against each of them, rather than looking at all the code.



  • A big PSA here is to have them pass you the device activation link that pops up when they first start Tailscale, and activate their device on your tailnet.

    Then you tag it, write an ACL rule for it (or you probably already have a rule for Jellyfin clients connecting only to the Jellyfin server on your tailnet by now, so just the tagging is enough) and that’s it.

    MUCH simpler than having non-savvy people attempt to set up a Tailscale user account. Plus, you can only have 6 users in a free tailnet but you can have 100 devices.



  • As someone who’s used all three (moved from Plex -> Emby -> Jellyfin):

    Plex’s killer feature is the relay and the fact it’s completely transparent for users. You log in with a Plex client (whatever device, whatever location in the world) and it will sort out a connection to the Plex server. Complete no-brainer.

    Jellyfin has been killing it lately, the last 3 versions (10, 11, 12) were all amazing leaps forward. The devs have been really hitting their stride and are addressing fundamental design issues and making Jellyfin better from the ground up. If you want complete independence, openness and control, excellent performance, this is it.

    Emby for me sits somewhere in-between and it’s not necessarily the better off for it. Feels like a compromise or the worst of both worlds. It has touches of Plex’s enshittification streak, it hasn’t addressed any of the core problems like Jellyfin has.

    Both Emby and Plex have issues navigating VPNs and complex/unusual network setups because their plug’n’play approach relies too heavily on autodetection. Plex has the relay to fall back on (provided you pay for it) but Emby doesn’t.

    Both Emby and Plex will move features around and really, really want you to keep paying so it’s anybody’s guess what you’ll be paying for from month to month. Lifetime passes were (can I say it?) a tremendously STUPID idea and now that ship has sailed anyway.

    IMHO, one of these days someone will come up with a way for Jellyfin to provide free, transparent, aecure client+server pairing behind NAT and that will be a huge blow to both Plex and Emby.


  • You can do what you want with IMAP too.

    I use isync, it’s a CLI tool that can sync between IMAP accounts or between IMAP and local plain storage and it has the option to delete messages over a certain age after it copies them.

    Is there a set up where some remote service handles email exchange, and you just sync with it

    Any regular email provider can do this as long as it offers IMAP. I use email clients with my provider’s IMAP but I also use isync on the server to periodically pull all email locally and delete messages older than 30 days. I’ve also installed a local private IMAP server and a private webmail client on top of that private IMAP, which I use to search through old emails.

    This way I normally use the “live” mailbox with my PC/mobile devices, and use the private webmail when I need to search for anything over 30 days old.

    What I do is not “selfhosted email”, technically speaking, because I rely on the live IMAP and SMTP from a provider. But I can switch provider at any time because all my email is @ my custom domains, so I can simply point my DNS to another provider and update my apps to use the new provider’s IMAP/SMTP server.