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

Hotspot workaround #112

Open
matusfaro opened this issue Jul 23, 2021 · 1 comment
Open

Hotspot workaround #112

matusfaro opened this issue Jul 23, 2021 · 1 comment

Comments

@matusfaro
Copy link

matusfaro commented Jul 23, 2021

I managed to get Hotspot working with a temporary workaround if anyone is interested:

Issue: The NetworkManager expects and issues iptables rules to setup packet forwarding. Since this image uses a custom latest kernel that has NetFilter module instead of iptables, NetworkManager fails to setup firewall properly as can be seen in logs. (Turn on debug logging with nmcli general logging level TRACE domains ALL to see the individual NetworkManager commands fail)

Temporary workaround:
A workaround is to listen on the Hotspot being turned on and issue the proper NetFilter commands. Beware it also flushes all rules when hotspot is disabled which may conflict if you have other rules configured.

  • Ensure dnsmasq is installed
  • Place this script in /etc/NetworkManager/dispatcher.d with root 600 file permissions

Proper fix:
A proper fix would involve either reconfiguring NetworkManager or bundling iptables module in the custom kernel. This is outside of my knowledge.

@Baggypants
Copy link

I had a go today with creating a hotspot using the settings gui. It failed until I installed dnsmasq. Then it shared the wwan network with devices connecting over the wifi fine.

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

No branches or pull requests

2 participants