I have a Centos 6 64 bit server with OpenVPN installed.
I'm using this iptables rule to forward a port for an OpenVPN user:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport PORT -j DNAT --to-destination 10.8.1.X:PORT
This works perfect but if I forward the same port for another user. The port will not work for both. How can I forward the same port to 2 different users?
I know I can put the user on a different subnet with a different external IP and forward the traffic on a port on that IP to the client and have the same port open for 2 users like that but that's not what I want to do. I want the users to be on the same subnet.
Thanks in advance!