Community discussions

MikroTik App
 
defined
just joined
Topic Author
Posts: 1
Joined: Tue May 19, 2015 9:45 pm

Feature request - dynamic route to VPN server

Tue May 19, 2015 10:15 pm

Sorry for my English :)

Feature request.

For PPTP/L2TP client, if set "add default route" in client properties, then (after the connected but before adding default route) is automatically added to the routing table entry for pptp / l2tp server through current gateway (static or obtained from a DHCP server if the IP-address on the WAN interface is obtained via DHCP).

It will be convenient for the case when the IP-address of PPTP/L2TP server is different (server name in client properties and DNS returns a different IP-address for load balancing pool) and do not want every time to manually add the route via current gateway.

L2TP connection established, the system add a route to "current" IP of L2TP server and then have to add a default route.

Without it, if the current default route have a great distance, all the traffic will go directly to the VPN channel and VPN connection will be stoped in 1-2 minutes.

Or other variant - add the ability to make an event (and call, from this event, the user script) for VPN client connect/disconnect state. And ability to get the current IP-address of the VPN server (not the name from VPN client settings, but the current IP address to which the connection is established in case the system have multiple VPN connections at same time). We can run this script only when client connected and disconnected (not to run them on a schedule every 30 seconds to check VPN connection state) and use it to add / remove a route to the IP-address of VPN-server for this connection.

Who is online

Users browsing this forum: hasan2221, normis and 102 guests