Opnsense Minecraft forwarding setup
Opnsense Minecraft forwarding setup
Hello, Your brother is setting up an MC server on his machine and needs to forward ports. We successfully used OPNsense nat for port forwarding. We tested both his local IP and our public IP. Any suggestions or advice? The server is running on port 25565.
Check if Java can reach other devices on your network via the firewall, and confirm whether the necessary ports are accessible through both your router and OPNSense.
3 key points.
1) Confirm your ISP offers a public IP, as not all do; CGNAT adds complexity.
2) Gather the port number, protocol (TCP, UDP or both), and the server machine's IP address—keep it consistent. Two methods: manually assign a static IP or reserve the IP via DHCP.
3) Ensure the Windows Firewall permits the server to reach the internet.
You don’t have to take any action on that box. Switching to bridge or IP pass-through mode disables the router’s functionality. It seems there might be a misconfiguration in Open Sense. I haven’t used Open Sense before to check the firewall settings.
I want to understand your question better. Was this a test focused solely on using the AT&T router? Did you confirm that OPNsense was properly assigned the public IP address while the main router operated in bridge mode? Many people struggle with this setup, especially about connecting from the LAN using the server's LAN IP instead of the default one. By default, OPNsense likely doesn't handle NAT reflection, which can waste CPU resources and add latency—direct connection is usually more efficient. When accessing from outside your LAN, you should use the public IP provided by your ISP. This approach can also be mimicked using a domain name with tools like DDNS, redirecting DNS queries for that domain to spoof the LAN IP for any local requests.