NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.13k stars 14.17k forks source link

Bambu Studio / OrcaSlicer cannot find printers on local network #355821

Closed MdotAmaan closed 13 hours ago

MdotAmaan commented 13 hours ago

Describe the bug

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install Orcaslicer / Bambustudio from nixpkgs
  2. Set Bambu printer to LAN only
  3. Attempt to add the printer to the slicer

Expected behavior

The printer should show up under "Other Device"

Additional context

This appears to be due to the firewall. Here's a list of the ports the Bambu printers need. Adding this to my nix config appears to solve the problem

    networking.firewall.extraCommands = ''
    iptables -I INPUT -m pkttype --pkt-type multicast -j ACCEPT
    iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
    iptables -I INPUT -p udp -m udp --match multiport --dports 1990,2021 -j ACCEPT
    '';

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.59, NixOS, 24.11 (Vicuna), 24.11.20241109.76612b1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source`

Notify maintainers

@zhaofengli @pinpox


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

pinpox commented 13 hours ago

If opening ports resolves this issue, it is not a bug with this package but rather your configuration.

Closing this, as I can't do anything in the package to fix this. Feel free to re-open if you disagree or have any pointers on how to improve this.