Want to use different network port on two terminal windows

aarintech

Registered
Hi,

I got my ethernet connected to service provider A. And my wifi is connected to service provider B.

Now, if I create a virtual machine using parallels, I can mention to parallels what network to use for itself (say A), and can configure the host mac os to use different network (say B).

I want to be able to do similar thing for my host macOS. I want to open two terminal window, and want to use network route A on Terminal 1, and network route B on terminal 2. For example, my network B is my office network and i want to be able to use that network on a set of terminal windows to do my office work, while i want to be able to use some set of terminals to use my personal wifi hotspot and be connected to outside world without firewall.

Is this possible at all? If not on terminal, can i configure such thing so that terminal uses network B and safari uses network A?

I am hoping that there is a solution to this.

VJ
 
You should be able to do it by using ssh with the -b option
-b bind_address
Use bind_address on the local machine as the source address of the connection. Only useful on systems with more than one address.​
So, you'ld do :
Code:
ssh -b <wifi-IP> <user>@<host-IP>
to connect to the office.
 
Back
Top