Forward TCP/UDP Port via IPTables

In order to forward a TCP/UDP port on a Linux Server without using nginx or socat just use the following two commands:

iptables -t nat -A PREROUTING -p tcp --dport 2345 -j DNAT \
  --to-destination 192.168.2.2:8000
iptables -t nat -I POSTROUTING -d 192.168.2.2 -p tcp --dport 8000 \ 
  -o wg0 -j MASQUERADE
iptables -t nat -L -n

Line 1-2: Route all packets coming to Port 2345/tcp to IP 192.168.2.2 on port 8000
Line 3-4: Masquerade all packets going to 192.168.2.2 with port 8000/tcp on the interface wg0
Line 5: List all the rules in nat table