File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,18 @@ then
197
197
# Force hostid for IOU
198
198
dd if=/dev/zero bs=4 count=1 of=/etc/hostid
199
199
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
+
202
212
fi
203
213
204
214
log " Add gns3 to the kvm group"
You can’t perform that action at this time.
0 commit comments