VPN Client couldn't get into private server through public ip address

Hello everyone,

I am using RB1100 and I separated the network’s LAN;

  • WAN: 103.2.2.141
  • SERVER: 172.16.1.0/24
  • LAN: 192.168.1.0/24
  • VPN: 10.10.10.0/24

We have domain ABC.COM → 103.2.2.141 and it’s NATed for;
103.2.2.141:80 → 172.16.1.141:80
103.2.2.141:443 → 172.16.1.141:443

My PC’s public IP address 30.10.10.1

After my pc got VPN connected and I access my domain ABC.COM, it shows my PC’s public IP address in apache log BUT IT SHOULD NOT LIKE THAT.
It should be my VPN IP address that has been recorded in the apache log.

Appreciate your help!

So you see client’s IP address, as if it didn’t use VPN at all? In that case, the simplest explanation is that it really doesn’t. And it makes sense, if VPN server and web server share same IP address, and if client uses VPN as default gateway, it adds dynamic route to VPN server’s address via its ISP, to be able to reach it. And it also affects web server on same address.