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

Fix for (obvious) issue when using firewall (e.g. ufw) #105

Open
JanLalic opened this issue Feb 20, 2021 · 1 comment
Open

Fix for (obvious) issue when using firewall (e.g. ufw) #105

JanLalic opened this issue Feb 20, 2021 · 1 comment

Comments

@JanLalic
Copy link

JanLalic commented Feb 20, 2021

Dear Creator

first of all, thanks for this great module!
After installing I had some issues because of the firewall (at that time I hadn't thought about it).
It'd be great if one could add a remark in the README that it's necessary to allow connections to and from the phones IP adress.
Though it is somewhat obvious, there might be some people who don't think about it in the first moment.

For me the following rules for ufw worked great (though there are certainly better ways to do it):
sudo ufw allow from IPOfTheDevice to IPOfThePi port ThePortThatIsUsed
sudo ufw allow from IPOfTheDevice port ThePortThatIsUsed

(I needed both for the needed IPs - am not sure why since outgoing connections should be allowed by default anyway ...)

One could add as well a range of IPs - then the IPOfTheDevice would be something like 192.168.0.0/24. (You know that obviously but the readers might not ;))

Cheers and thanks again!

@kevinatown
Copy link
Owner

@confused-lynx thanks for this! Def. a good idea I'll see if i can have sometime to add this to the readme, I def dont mind if people put in PRs of improvements :)

Thanks again!

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

2 participants