I have connected to my OpenVPN server, when i do traceroute to any host i see that my request goes to my VPN server and then to host i request. But when i request a host from the same server/IP as my vpn server i see that the traffic goes through my provider. Is it possible to access websites that are on VPN server like other websites, while using VPN. Similar problem here. Unfortunately without answer.
This is a routing problem.
In order to establish and maintain a connection to your VPN, your VPN client must have a route route to the address you are using on the server for incoming VPN connections. Assuming standard routing, this means anything destined for the same IP used VPN server will directly cross the Internet.
- The short basic answer is get and use separate IP address for your VPN server. Don't use the same IP you use for your VPN for anything else.
- Setup some a DNS server on your VPN host and and deliver records for the hosted sites map to internal IP addresses when you are connected.
- If you are running Linux as your client then you could mess around with policy routing and multiple tables, and send only 1194 traffic through the standard table, and port http/https traffic over the VPN.