Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: dockerized WOL packet forwarding #236

Open
luzik opened this issue Feb 23, 2023 · 0 comments
Open

Documentation: dockerized WOL packet forwarding #236

luzik opened this issue Feb 23, 2023 · 0 comments

Comments

@luzik
Copy link

luzik commented Feb 23, 2023

There is no info in documentation on how to forward WakeOnLan packets from container.
When using HA in docker there are two options:

network_mode: host (docker compose version) as container attribute - but this can be dangerous.

second option is to change ha-samsungtv-smart broadcast_address to your network with 255 in last octet ex. 192.168.X.255 (255.255.255.255 - won't work without network_mode: host)

And in your distro /etc/sysctl.conf append those two lines

net.ipv4.conf.all.bc_forwarding = 1
net.ipv4.conf.br-XXX.bc_forwarding = 1

Where br-XXX is name of interface with your local docker interface that HA is using

You can also adopt
https://github.com/dhutchison/container-images/blob/master/homebridge/configure_docker_networks_for_wol.sh script

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

No branches or pull requests

1 participant