sudo ip link add vmbr2 type bridge
sudo addr add 192.168.0.0/24 dev vmbr2
sudo ip link set vmbr2 up
sudo vim /etc/network/interfaces
auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o eth0 -j MASQUERADE
sudo vim /etc/init.d/rc.local
iptables -t nat -A PREROUTING -j DNAT -d YOUR_HOST_IP_ADDRESS -p tcp --dport 5000 --to 192.168.0.1
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
Installer synobox.ova en double cliquant dessus.
La VM doit utiliser “Bridged Adapter” avec “vmbr2”.