Forward port to external ip

udi

Active Member
Apr 1, 2011
76
0
26
hi,

I tried to forward a port to another server temporarily:

iptables -t nat -A PREROUTING -p tcp -d SERVER_1_IP --dport 33919 -j DNAT --to-destination SERVER_2_IP:33919
iptables -t nat -A POSTROUTING -p tcp -d SERVER_2_IP--dport 33919 -j SNAT --to-source SERVER_1_IP

this worked, until I enabled pve firewall, which sets bridge-nf-call-iptables to 1.

what rules need to be set in this case to make it work again?

thanks
 

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!