Nubia wrote
I would like to allow client 1 access to the service on port eg 1234, and client 2 access to port eg 5678. Ip address is the same.
192.168.0.16:1234 <- access only for clinet 1
192.168.0.16:5678 <- access only for client 2
Is this possible?
Hi Nubia,
In addition to chilinux's questions, I'd also wonder why you're connecting via a "private" RFC 1918 address?
If these clients are connecting in from outside, going through a NAT router, you could set up firewall rules to manage these access restrictions, and forward the appropriate destination ports to the corresponding ports on the Access Server. Probably not trivial, and definitely not within the scope of OpenVPN support.
Similarly, this might be done with restricted iptables nat/REDIRECT rules on the Access Server. Again not trivial.
Another thing to add:
192.168.0.0/23 networks (including 0.0/24 and 1.0/24 networks) are the most common choices for off-the-shelf consumer router devices. Change to a less used network address if you plan to connect to it via VPNs.
regards, rob0