I am trying to set a few services and games behind IPFire on my home network. I am not having much luck with port forwarding though. It looks like it’s trying to work but I am not sure what is going on.
Let’s take a simple example. The game Valheim uses UDP ports 2456 and 2457. I followed the wiki page on port forwarding to set up a firewall rule and applied it, but I am unable to connect to my internal server from the outside (Red). I can connect to it from the inside (Green). The server the game is running on has no firewall right now because I am trying to figure out to make this work. When I try to connect via my external (Red) IP address I see this in the firewall log:
07:29:56 DNAT green0 UDP 192.168.10.61
*REDACTED IP* 61057
2456
Which is then followed several instances of this:
07:29:56 FORWARDFW green0 UDP 192.168.10.61
192.168.10.2 61057
2456
However the game fails to connect to the server. I see this same behavior with other games and services including Nextcloud. Not having my Nextcloud is a real show stopper. Any advice would be appreciated. Just for the record, here is the output of “iptables -L” on the internal server:
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
See? No firewall on the inside at all.