Skip to content

Instantly share code, notes, and snippets.

@nemith
Last active January 28, 2025 19:32
Show Gist options
  • Save nemith/773e446b51421f260fbccd4fee9381dc to your computer and use it in GitHub Desktop.
Save nemith/773e446b51421f260fbccd4fee9381dc to your computer and use it in GitHub Desktop.
Forward BambuLab SSDP packets between vlans
[Unit]
Description=Bambu SSDP forwarding service
After=network.target
[Service]
Type=simple
User=nobody
ExecStart=/usr/bin/socat -v UDP4-RECVFROM:2021,bindtodevice=sfp0.2012,fork UDP4-SENDTO:255.255.255.255:2021,broadcast,bindtodevice=sfp0.2001
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
@nemith
Copy link
Author

nemith commented Jan 28, 2025

sfp0.2012 is my IoT vlan where the printers live.
spf0.2001 is my Trust vlan where Orca slicer is at.

nftables or whatever firewall you use needs to have port 2021 open on your printer vlan on an input chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment