Suggestion to limit connections to wifi attachment
Re: Suggestion to limit connections to wifi attachment
I thought it was required to read and write to the RA as well. Is that not the case?
Re: Suggestion to limit connections to wifi attachment
i thought everything was like this:lnevo wrote:I thought it was required to read and write to the RA as well. Is that not the case?
- wifi authentication limits read and write access to the RA (except the /sa which always is a read only, but this needs to be confirmed). so you create a username & password combination to access the RA.
- portal key limits the sending of data to the portal from the RA with the matching key
Re: Suggestion to limit connections to wifi attachment
There is an open issue pending testing and approval.
Branch issue71: https://github.com/reefangel/Libraries/issues/71
There is a mention about this branch in here:
http://forum.reefangel.com/viewtopic.php?p=22824#p22824
If anyone wants to test it, we can merge to dev and include to next release.
It will require some changes in the apps and in the portal code.
I'll also have to revisit this to refresh my memory.
Branch issue71: https://github.com/reefangel/Libraries/issues/71
There is a mention about this branch in here:
http://forum.reefangel.com/viewtopic.php?p=22824#p22824
If anyone wants to test it, we can merge to dev and include to next release.
It will require some changes in the apps and in the portal code.
I'll also have to revisit this to refresh my memory.
Roberto.
Re: Suggestion to limit connections to wifi attachment
OK. the /sa location is supposed to let people in without authentication, from what I understood, but I just had to disable authentication in order for reeftronics to be able to reliably connect. I never had a problem with the app because it actually does the authentication
Russ uses the /sa to get his data, but he very frequently gets a 401 access denied message with that URL even though it's not supposed to have auth on it.
I opened up an issue on this and one other here:
https://github.com/reefangel/Libraries/issues/217
where sometimes Russ gets a response beck to his /sa query which looks like traffic which is supposed to go to the portal.
In the meantime, how do I switch the port that the RA runs on since I have auth currently disabled? I assume I'll need to do it in the .ino file because the RA needs to tell the portal what port to use.
Russ uses the /sa to get his data, but he very frequently gets a 401 access denied message with that URL even though it's not supposed to have auth on it.
I opened up an issue on this and one other here:
https://github.com/reefangel/Libraries/issues/217
where sometimes Russ gets a response beck to his /sa query which looks like traffic which is supposed to go to the portal.
In the meantime, how do I switch the port that the RA runs on since I have auth currently disabled? I assume I'll need to do it in the .ino file because the RA needs to tell the portal what port to use.
Re: Suggestion to limit connections to wifi attachment
This is handled at your firewall/router. You need to tell the firewall to forward port 12345 to port 2000 on the RA. Or whatever port you want to use instead of 2000. You can use any port from 1024 through 65535. Whatever port you pick, I would keep it private though, so nobody else knows. Typically the higher port numbers are used by outgoing connections (like your web browser traffic when you browse the web) and the low number ports (below 1024) are used for servers for common, well known protocols.AlanM wrote:In the meantime, how do I switch the port that the RA runs on since I have auth currently disabled? I assume I'll need to do it in the .ino file because the RA needs to tell the portal what port to use.
Then, you must update the following:
- Portal to use the new port
- Apps to use the new port
- whatever else to use the new port
This is exactly how I do it and it is pretty simple. My router allows me to change the ports around like that and I'm assuming others do too.
Re: Suggestion to limit connections to wifi attachment
Great. Easy enough to do. Thanks. I'll update the port with Russ and AquaticLog too.binder wrote: This is handled at your firewall/router. You need to tell the firewall to forward port 12345 to port 2000 on the RA. Or whatever port you want to use instead of 2000.
Re: Suggestion to limit connections to wifi attachment
If you did want to change the port the RA listens to it's a setting in the wifi module.