I am using Linux Mint 19.3
I want to run two instances of youtube-dl
.
All traffic of terminal 1
instance should go through regular network.
All traffic of terminal 2
instance should go through VPN.
Is there any command that will enable terminal 2
to use VPN connection for all future commands? In other words, Is there any command which will instruct terminal 2
to use VPN connection for all future commands?
I found Bind unix program to specific network interface, But I want to bind VPN in specific terminal for all future initiated programs, not a particular program.
What I want is, open a terminal and run youtube-dl
to work with regular connection. However, If I enable VPN (through a command) and run youtube-dl
then youtube-dl
will work through VPN connection.
So, the possible end result being, two instance of same program, one through regular network, another through VPN, where the network selection is real-time and not predefined (through routing table or anything like that).
I found a tool vpnns, but not sure if this is what I am looking for or is there a better solution.