3
If I understood it properly on a general level, ssh is used if I want to securely access a single remote machine (say 10.243.212.98) . On the other hand, vpn is used if I want to access an entire remote network (say 10.243.212.0/24) and all the machines in this network, as if I am locally present in that network.
I have the following two questions:
Why is vpn necessary for connecting to 10.243.212.0/24 if I can ssh into 10.243.212.98 ? After I connect to that remote machine wont I "be" on that network? I know all my traffic, except ssh, will not go through remote machine and therefore not "be" on that network. But is that all?
Consider the following network diagram:
192.168.0.3 192.168.0.4 PC1 PC2 | / 10.243.212.0/24 SWITCH<-------(F1/0)--ROUTER1--(F1/1)----------(F1/0)-->ROUTER2--(F2/1)---->INTERNET 192.168.0.1 .2 .3
If I vpn into the network 10.243.212.0/24 what will be my assigned IP address ? Something like 10.243.212.4 ? Then I wont be able to access the PCs 192.168.0.3 or 192.168.0.4 as they are on different network segment! But I heard VPNs allow me to access internal network. So what do I do if I want to access the PCs?
1You will still be able to access computers on your local network in most cases; check your routing table. The VPN will assign you an address in whatever range it is configured for, and may or may not push a new default route to you. – multithr3at3d – 2017-04-16T15:44:51.120
It's not required but it's a secure way to do so. – Ramhound – 2017-04-25T11:03:49.917