You must change the route towards your destination.
A previous answer stated that the -b
or -B
options can be used, but normally, if the VPN is activated this does not work because it reroutes the traffic towards any destination through the VPN network interface - generally named tun0
.
Therefore, you must reconfigure the route taken to reach your destination. Let us call it <destination>
, and <gate1>
the IP address of the gateway (technically the address of the nexthop router) associated to the different interface that you want to use. With ip route
, route
being deprecated, this should be:
ip route add <destination> via <gate1>
An alternative is
ip route add <destination> via <gate1> dev <different interface>
but given that the address <gate1>
is already associated with your different interface, here <different interface>
, that changes nothing.
What matters here, is to specify it is <gate1>
, the gateway of your different interface, which has to be traversed, instead of that of the VPN.