dom0+vm/vif-script: setup IP address of net backend interface

This is needed to connect to ProxyVM/NetVM, not only pass traffic ahead. Still
firewall rules applies.
This commit is contained in:
Marek Marczykowski 2012-05-31 02:03:55 +02:00
parent f290b2e939
commit c18cb08f8c

View File

@ -54,6 +54,8 @@ if [ "${ip}" ] ; then
${cmdprefix} ip route ${ipcmd} ${addr} dev ${vif} metric $metric
done
${cmdprefix} iptables -t raw $iptables_cmd -i ${vif} \! -s ${ip} -j DROP
back_ip=${ip%.*}.1
${cmdprefix} ip addr ${ipcmd} ${back_ip}/32 dev ${vif}
fi
log debug "Successful vif-route-qubes $command for $vif."