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 e820841d6b
commit 72521b88e1

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."