From 868d7196d06847220363f13b541acf0bc80086fa Mon Sep 17 00:00:00 2001 From: Mitchell E Berger Date: Mon, 25 Jun 2018 22:21:23 -0400 Subject: [PATCH] Fix XVM's classic networking problem. Kill arpspoof with SIGKILL when we're done with it so it doesn't try to "clean up" and possibly tell the router that your MAC is all-zeros. --- debian/changelog | 7 +++++++ host/usr/sbin/invirt-vmcontrol | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 7506e4c..ea1250e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-remote (0.4.22) precise; urgency=low + + * Kill arpspoof with SIGKILL when we're done with it so it doesn't try + to "clean up" and possibly tell the router that your MAC is all-zeros. + + -- Mitchell Berger Mon, 26 Jun 2018 22:22:00 -0400 + invirt-remote (0.4.21) precise; urgency=low * Add the long-awaited arp remctl diff --git a/host/usr/sbin/invirt-vmcontrol b/host/usr/sbin/invirt-vmcontrol index eaac5ac..dff84c3 100755 --- a/host/usr/sbin/invirt-vmcontrol +++ b/host/usr/sbin/invirt-vmcontrol @@ -51,9 +51,9 @@ case "$ACTION" in gw=`echo $script | sed -ne 's/.* gateway=\([0-9\.]*\).*/\1/p'` oip=`echo $script | sed -ne 's/.* other_ip=\([0-9\.]*\).*/\1/p'` ogw=`echo $script | sed -ne 's/.* other_gateway=\([0-9\.]*\).*/\1/p'` - timeout 5 /usr/sbin/arpspoof -i $iface -t $gw $ip + timeout -s KILL 5 /usr/sbin/arpspoof -i $iface -t $gw $ip if [ -n "$oip" ]; then - timeout 5 /usr/sbin/arpspoof -i $iface -t $ogw $oip + timeout -s KILL 5 /usr/sbin/arpspoof -i $iface -t $ogw $oip fi done ;; -- 1.7.9.5