A small service for K2 printers that blocks outside network connections
You can get the project onto the printer in either of these ways:
- Git clone (k2-improvements required)
- Copy the release folder to the printer using Fluid, then run the install script over SSH
From the printer or a connected shell:
git clone https://github.com/HurricanePrint/K2-NetBlock.git
cd K2-NetBlock
sh install.sh- Download the Latest Release and extract the folder
- Copy the project folder or release folder to the printer using Fluid.
- Open the "Configuration" Tab (keyboard shortcut X)
- Click the + and select "Upload Folder"
- Choose the K2-NetBlock folder you extracted from the release zip
- Open an SSH session to the printer.
ssh root@<your-printer-ip>- password:
creality_2024
- Run:
cd mnt/UDISK/printer_data/config/K2-NetBlock
sh install-mdns.sh- This will break any outside monitoring like Obico or Octoanywhere
Start service:
/etc/init.d/K2-NetBlock startStop service:
/etc/init.d/K2-NetBlock stopEnable at boot
/etc/init.d/K2-NetBlock enableDisable at boot
/etc/init.d/K2-NetBlock disable