Skip to content

Commit 19142d9

Browse files
authored
Merge pull request #2366 from GNS3/bugfix/block-iou-call
Block IOU phone home call using IPtable
2 parents 5bab413 + faf7e09 commit 19142d9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scripts/remote-install.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,18 @@ then
197197
# Force hostid for IOU
198198
dd if=/dev/zero bs=4 count=1 of=/etc/hostid
199199

200-
# Block iou call. The server is down
201-
echo "127.0.0.254 xml.cisco.com" | tee --append /etc/hosts
200+
# Block potential IOU phone home call (xml.cisco.com is not in use at this time)
201+
log "Block IOU phone home call"
202+
if [ "$UBUNTU_CODENAME" == "focal" ]
203+
then
204+
iptables -I OUTPUT -p udp --dport 53 -m string --hex-string "|03|xml|05|cisco|03|com" --algo bm -j DROP
205+
echo iptables-persistent iptables-persistent/autosave_v4 boolean true | debconf-set-selections
206+
echo iptables-persistent iptables-persistent/autosave_v6 boolean true | debconf-set-selections
207+
apt-get install -y iptables-persistent
208+
else
209+
echo "127.0.0.254 xml.cisco.com" | tee --append /etc/hosts
210+
fi
211+
202212
fi
203213

204214
log "Add gns3 to the kvm group"

0 commit comments

Comments
 (0)