Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I brought a VPN service that I want to use on VPS for web bots.

I've installed OpenVPN and config from the VPN Service, but openVPN is tunneling with the VPN service for all services even for remote desktop connection, so now it is hard to manage Windows VPS from my local because of a 500+ ms latency.

So is there any way to exclude the remote desktop service or my IP, so I can manage VPS in normal way, but in VPS other things could be with the VPN?

share|improve this question

You can exclude single IP addresses or address ranges by adding a new entry to the routing table.

  1. Find out your usual "default gateway" (usually your router's IP address) from ipconfig.

  2. Connect to VPN.

  3. Run route add <vps-address> mask <gateway> in Command Prompt.

    If you want to add an entire subnet, adjust the netmask accordingly. (For example, add mask

  4. If it works, add it again with route add -p so that Windows will remember it for the future.

share|improve this answer
I personally prefer adding the appropriate line to the OpenVPN config file: (example for subnet) route net_gateway OpenVPN will then use the system's commands to add this to the routing table. The advantage to doing it this way is the config is portable without manual routing and the route will be removed when OpenVPN is disconnected. Also, net_gateway serves as a convenient alias for The pre-existing IP default gateway, read from the routing table. See for more information. – Bob Oct 15 '12 at 8:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .