Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Static/Permanent route trouble - MS Windows

  • Please log in to reply
No replies to this topic

#1 Eugen


  • Members
  • 10 posts
  • Local time:01:09 PM

Posted 23 February 2017 - 04:38 AM


My clients connect to my VPN server so they could connect to a database sever behind it using an application. Manually I add a static/permanent route:
route -p -4 add mask metric 2 if 18

The rule above works every time as expected the application successfully connects to the database server, but if some new interface is being added, maybe some internet dongle or something the app will not connect because the interface may change from 18 to 19 and the other reason is that I want to automate the VPN connection with CMAK

If I simply add this rule: route -p -4 add mask

..the application will connect but as soon as I disconnect the VPN connection and reconnect it back again again the app will not connect. Why does this happen? What rule will work in any cases ? What I'm doing wrong?

I need any IP from to be able to reach

Why do I add ? because clients receive an IP randomly.

Thank you

Edited by Eugen, 23 February 2017 - 04:39 AM.

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users