PVE port forwarding and port mapping issues

DL239342

New Member
Jan 22, 2025
1
0
1
I didn't speak English well, so I used a translator.
My PVE private IP address is (192.168.1.10) and I built a Windows virtual machine (192.168.1.30), a Debian server, and installed truenas in it.
My router has a public IP address, but the router only supports mapping one host to the public network to provide services to the outside world.
So I need to port forward or map to PVE, and then map PVE to the public network.
I found a tutorial four days ago (and it worked), but yesterday I suddenly didn't work when configuring Debian.
Screenshot 2025-01-22 13.39.32.png
I may not be clear enough, but in general, what I want is to use 39.x.x.x to access the MC server (port25565) as well as Debian's ssh (port2222).
The tutorial tells me what to do is:
1. Set up a firewall on WindowsScreenshot 2025-01-22 13.43.18.png
2. Enter the command in the terminal of the cluster:
iptables -t nat -A PREROUTING -d 192.168.1.10 -p tcp --dport 25565 -j DNAT --to-destination 192.168.1.30:25565
iptables -t nat -A POSTROUTING -p tcp -d 192.168.1.30 --dport 25565 -j masquerade

This works when I didn't adjust any settings, but just yesterday when I configured Debian's port forwarding (2222) in this way, it didn't work.
I can't even connect to my mc server via intranet using 192.168.1.30:25565.
(Firewalls are enabled for clusters and Windows hosts, but not at the datacenter level)

The last 6 pictures are my detailed configuration

How do I fix this?
 

Attachments

  • 截屏2025-01-22 13.55.09.png
    截屏2025-01-22 13.55.09.png
    227.2 KB · Views: 3
  • 截屏2025-01-22 13.55.01.png
    截屏2025-01-22 13.55.01.png
    216.9 KB · Views: 3
  • 截屏2025-01-22 13.55.17.png
    截屏2025-01-22 13.55.17.png
    223.7 KB · Views: 2
  • 截屏2025-01-22 13.55.23.png
    截屏2025-01-22 13.55.23.png
    224.7 KB · Views: 2
  • 截屏2025-01-22 13.55.31.png
    截屏2025-01-22 13.55.31.png
    209.7 KB · Views: 2
  • 截屏2025-01-22 13.55.35.png
    截屏2025-01-22 13.55.35.png
    232.7 KB · Views: 3
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!