home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

interfaces openvpn <vtunx> replace-default-route

Specifies that the default route should be through the OpenVPN tunnel.

set interfaces openvpn vtunx replace-default-route [local]
delete interfaces openvpn vtunx replace-default-route
show interfaces openvpn vtunx replace-default-route
vtunx
The identifier for the OpenVPN interface. This may be vtun0 to vtunx, where x is a non-negative integer.
local
Optional. This option must be set if and only if the two tunnel endpoints are directly connected, for example, on the same subnet.

Configuration mode

interfaces {
    openvpn vtunx {
        replace-default-route {
            local
        }
    }
}

Use this command to tell OpenVPN that the default route should be replaced by a route through the VPN tunnel, for example, split tunneling should be disabled. Note that, when set, this option has different effects depending on the OpenVPN mode in which the endpoint operates.

If the endpoint is in site-to-site mode or client mode, setting replace-default-route will replace the default route on this endpoint with a route through VPN tunnel. In other words, it disables split tunneling on this endpoint.

If the endpoint is in server mode, setting replace-default-route will cause the clients connecting to this server to replace their default route. In other words, it disables split tunneling on the clients.

Use the set form of this command to specify that the default route should be through the OpenVPN tunnel.

Use the delete form of this command to remove the configuration.

Use the show form of this command to view the configuration.