Relay autoselect over VPN tunnels

(imported topic written by rmnetops91)

Greetings,

Here is what we want to do. Currently we have our main BES server and our failover relay on the same subnet, remote relays at regional subnets for remote users, and a DMZ relay for mobile laptops on the Internet.

Currently when our mobile laptops are connected to our network over VPN (split tunneling), the laptops still communicate with the DMZ relay. We want to force the laptops to communicate over the VPN tunnel to an internal relay, anytime they are connected (such as the failover relay or one we define, but one on our internal network).

All of the laptop VPN connections have an IP address in the same subnet, dedicated for VPN connections.

Has anyone been able to automate an autorelay select function at the laptop upon a VPN connect/disconnect?

Any ideas that don’t require a lot of overhead to maintain?

(imported comment written by SystemAdmin)

We have done something like this. The way we did it was to block the vpn client traffic from being able to get the dmz relay. Would that work for you?

Additionally, we have a task that sets the client to polling mode when it’s off network and trying to connect to the dmz relay.

(imported comment written by rmnetops91)

Thanks for the info. That worked. On the DNS server used by our VPN clients, I simply gave the DNS record for our DMZ relay a bogus/un-used internal IP address. This forced the clients to start using the internal relays.

How did you get the client to dynamically switch into polling mode when off the network? Currently we just have our laptops statically set with command polling every hour.

(imported comment written by SystemAdmin)

We have a task where the clients evaluate the name of the registration server. If it equals the external ip address of our DMZ relay, we switch to polling mode.