BrikiWiki
BrikiWiki
avatar Log in

Help:Unix

From BrikiWiki

Routing to Virtual Machines

Setup is a linux (ubuntu-20.04) instalation with kvm hypervisor installed. Usecase is to be able to connect over local network to guest systems on host from a client. In this case the client is running ubuntu 20.04 cinamon remix

On client macine

ip route add 192.168.122.0/24 via 192.168.0.10

To make persistent

thumb,left

add route via network manager. System Settings / Network / Wired / IPv4 / Routes

On host machine

iptables -I FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT

to make persistent apt install iptables-persistent