You are not logged in.

#1 2025-01-03 19:51:27

macromal
Member
Registered: 2024-08-03
Posts: 26

libvirt private network profiles

These profiles for private libvirt networks can be useful for different tasks such as malware analysis, pentesting, or simply for transferring files to an obsolete system like Windows XP.
Both don't have a gateway, so the connection to the outside is unfeasible.

private.xml: network with DHCP server

<network>
  <name>private</name>
  <bridge name="virbr7"/>
  <ip address="192.168.152.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.152.2" end="192.168.152.254"/>
    </dhcp>
  </ip>
  <ip family="ipv6" address="2001:db8:ca2:3::1" prefix="64"/>
</network>

no-gateway.xml: network without DHCP server

<network ipv6='yes'>
  <name>nogw</name>
  <bridge name="virbr8" stp="on" delay="0"/>
</network>

To add the inactive network persistently, you can use the following command:

virsh -c qemu:///system net-define file.xml

Offline

Board footer

Powered by FluxBB