I have a root server and want to achieve that specific URLs should be under VPN control and some not. For example: www.mydomain.com or subdomain1.mydomain.com should not be under VPN control, [ip of my server]/pgadmin should be VPN controlled, so that only people inside the VPN network should be able to invoke this address. I also a little bit confused how the final result need to look, because if the public IP is 300.300.300.300/pgadmin, it should be blocked, but in VPN it is probably 10.0.0.1/pgadmin or something.
I'm not very familiar with VPN configuration, but is this possible? If yes, is this based on adding routes and IPTables? If not, how can I achieve the described issue?