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 \
iptables -t nat -I POSTROUTING -d -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 on port 8000
Line 3-4: Masquerade all packets going to with port 8000/tcp on the interface wg0
Line 5: List all the rules in nat table