VM2 connected to internet gateway (VM1) cannot access internet (VirtualBox)
I have installed VirtualBox VMs on my Linux (Ubuntu) which has wired internet connection. I want to connect my VM2 (Server linux) to internet through a VM1 (Gate Linux), I tried multiple approaches, please see the attached picture, but still no luck VM2 still cannot access internet via Gate Linux, when I am running traceroute from Server Linux its outputs that most of the internet requests stop on Gate Linux. Can you please assist me with configuring internet Gate Linux in virtualbox enviroment. enter image description here
I am pretty sure you also cannot ping 192.168.13.1 from your server as it has no route to 192.168.13.0/24. By default it would send requests uplink, and of course your internet provider wouldn't know where 192.168.13.0/24 is either. So you will have to add a static route on 192.168.0.1, specifying 192.168.0.1 as a route to 192.168.13.0/24 network.
Маршрутизация IPv4 is what you are looking for.
Сеть -> Маршрутизация(IPv4)