Comment on [Question] Firewall noob vs. port forward
tofubl@discuss.tchncs.de 9 months agoHere’s some more: From behind the firewall (i.e. from a 10.0.0.x IP) the port forward works (which would be a reflection, I suppose?).
From in front of the firewall, I get “connection reset”, which I interpret as somewhat working but then breaking somewhere else. Does that make sense?
maxwellfire@lemmy.world 9 months ago
Instead of connecting with a web browser, can you try using curl or telnet just to check if you’re getting through at the IP connection level?
tofubl@discuss.tchncs.de 9 months ago
Further digging: The request reaches the docker container, which returns
200 OK
.my-apache-app | 2024-02-09T12:53:22.925676854Z 192.168.0.123 - - [09/Feb/2024:12:53:22 +0000] “GET / HTTP/1.1” 200 161
What is going on here? Do I need some rules in the other direction, on top of “Automatic outbound NAT rule generation”?
tofubl@discuss.tchncs.de 9 months ago
Like this?
~$ curl 192.168.0.136:8888 curl: (56) Recv failure: Connection reset by peer
tofubl@discuss.tchncs.de 9 months ago
And here’s what this request looks like in the firewall log:
Image
MangoPenguin@lemmy.blahaj.zone 9 months ago
The rules and the log looks find to me, so I suspect something else is going on. Since you’re seeing the request hit apache.
Have you tried another browser just to see if that’s the issue?