Connecting several tunnels at once is easy. It gets hard when two of them want the same thing: to route the same networks, or to both provide the DNS server. Cavvy shows you when that happens and sorts out what can be sorted out.

Overlapping networks

Every tunnel routes certain networks. Which ones is shown in the connected profile under Connection Rules → Routed Networks. If the networks of two tunnels overlap, Cavvy shows the notice Networks overlap in the profile, and the sidebar marks the profiles concerned.

The notice says exactly what is going on:

  • One network lies inside a larger one. If one tunnel routes 10.10.0.0/16 and another 10.0.0.0/8, traffic for the smaller network goes through the tunnel that names it more specifically. Cavvy names the network and the tunnel it goes through.
  • Two tunnels route the same network. Then only one of the two receives this traffic. Cavvy tells you which network and which other tunnel are concerned.
  • Two tunnels both route all traffic. Here too, only one of them receives it.

For WireGuard profiles Cavvy warns before you connect (Overlap when connecting), because the networks are part of the configuration there.

An overlap can only be resolved at its source: in the tunnel’s configuration or on the server. For WireGuard you change the networks through the tunnel right under Configuration. Cavvy checks overlaps for IPv4 networks.

The profile studio in Cavvy: at the top the notice Networks overlap with two affected networks, below it the open row DNS Domains with a field for domains.
The notice about overlapping networks, with the DNS Domains row below.

DNS: who resolves which names

Most VPNs bring their own DNS server so that you can reach internal names. With several tunnels, though, only one can be the default. So Cavvy arbitrates in one place:

  • DNS domains per tunnel (split DNS). If a tunnel has domains, Cavvy resolves only names under these domains through its DNS server, and all others as before. The domains come from the server or the configuration, or you assign them yourself.
  • Only one tunnel provides the default DNS. First a tunnel that routes all traffic, otherwise the tunnel without domains that has been connected the longest.
  • After the last tunnel, Cavvy restores the DNS settings that applied before.

Assign domains

Open the row DNS Domains under Connection Rules and enter the domains, separated by commas, for example company.example, lab.company.example. What you enter here replaces the server’s default; an empty field brings it back.

While the tunnel is connected, the row shows the role it currently has:

ShownMeaning
Default · …This tunnel provides the default DNS.
Only …Its DNS server resolves only the domains named.
Default and …It provides the default DNS and also has domains of its own.
Not in useAnother tunnel already provides the default DNS, and this one has no domains.

If it says Not in use, Cavvy shows the notice This tunnel’s DNS server is not in use with the button Assign DNS Domains…. Assign the tunnel the domains it should resolve, and both work side by side.

If two tunnels claim the same domain, the tunnel that was connected first keeps it.

Groups

Profiles that belong together go into a Group, such as all tunnels of one client. The sidebar shows groups with Connect Group and Disconnect Group. More in Automation.