Firewall configuration and gotify android application

Started by orzechszek, January 05, 2023, 12:05:50 AM

Previous topic - Next topic
Hi

I have a gotify application configured in a docker with OPNSense on a router.
I've added a port forwarding (in attachment)
and rule was automatically created on WAN interface (in attachment)
I'm using WAN IP, because I need it usually outside of my local network.
but I'm still getting errors in application:

Caused by: java.net.SocketTimeoutException. failed to connecto to /myWanIP (port appPort) from /phoneIp (port 37344)

I've noticed that port 37344 is generated - sometimes is different.
I'm having problem with connectivity - it takes few seconds, but the most irritating is pushing mesages. I have to try few times till it sends because "Oops something went wrong" appears.
Can you provide what should be additionally configured in firewall? Some additional ports has to be opened?
Thanks in advance.


perhaps very few or noone else using your application.
A forum you can ask first so you can formulate an actual networking question here?

Hi,
Did you setup your firewall to pass http and https traffic of the ip and ports your Gotify server is listening on ?
If that didn't work try to add an nginx reverse proxy addon to opnsense and configure nginx to forward requests to gotify. If that didn't work either, try to enable websocket on the nginx reverse proxy (the gotify documentation doesn't indicate it is using websocket but i have seen some chatting programs using websocket and doesn't work if the reverse proxy didn't support it).
Don't forget to put the ip address of your firewall or reverse proxy on the variable trustedproxies of your /etc/gotify/config.yml or which ever is your gotify's config location.