From 72521b88e160cf69d965f6bdaf9aabd87ab86807 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 31 May 2012 02:03:55 +0200 Subject: [PATCH] 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. --- network/vif-route-qubes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/vif-route-qubes b/network/vif-route-qubes index f4e8989..6809028 100755 --- a/network/vif-route-qubes +++ b/network/vif-route-qubes @@ -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."