Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Firewall configuration and gotify android application
« previous
next »
Print
Pages: [
1
]
Author
Topic: Firewall configuration and gotify android application (Read 1571 times)
orzechszek
Newbie
Posts: 10
Karma: 0
Firewall configuration and gotify android application
«
on:
January 05, 2023, 12:05:50 am »
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.
Logged
orzechszek
Newbie
Posts: 10
Karma: 0
Re: Firewall configuration and gotify android application
«
Reply #1 on:
January 06, 2023, 10:54:56 am »
Any ideas ?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Firewall configuration and gotify android application
«
Reply #2 on:
January 06, 2023, 03:41:27 pm »
perhaps very few or noone else using your application.
A forum you can ask first so you can formulate an actual networking question here?
Logged
fathibn
Newbie
Posts: 23
Karma: 0
Re: Firewall configuration and gotify android application
«
Reply #3 on:
August 30, 2024, 02:00:21 am »
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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Firewall configuration and gotify android application