Nat and UDP

vicfd

New Member
Mar 9, 2015
2
0
1
first of all good night everyone, forgive my English but I have translated this text by a translator.

I have a few days trying to configure a Kemsirve server, I have only one ip card and a physical network, for this I made a nat connection, I have what I mounted is game servers for friends, but when I open platform servers Rust steam as l4d2 or not connected and I think it's because no redirects While udp ports.

I to make the connection nat Reproduce this guide:
https://pve.proxmox.com/wiki/Network_Model

this is my current configuration:
auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 192.168.0.1:21
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 21 -j DNAT --to 192.168.0.1:21
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.0.1:3389
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 3389 -j DNAT --to 192.168.0.1:3389
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 7777 -j DNAT --to 192.168.0.1:7777
post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 7777 -j DNAT --to 192.168.0.1:7777
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp -m tcp --dport 11000:12000 -j DNAT --to-destination 192.168.0.1
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp -m tcp --dport 11000:12000 -j DNAT --to-destination 192.168.0.1
post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp -m tcp --dport 25000:29000 -j DNAT --to-destination 192.168.0.1
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp -m tcp --dport 25000:29000 -j DNAT --to-destination 192.168.0.1
post-up iptables -t nat -A PREROUTING -i vmbr0 -p udp -m udp --dport 25000:29000 -j DNAT --to-destination 192.168.0.1
post-down iptables -t nat -A PREROUTING -i vmbr0 -p udp -m udp --dport 25000:29000 -j DNAT --to-destination 192.168.0.1

thx so much :)
 

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!