File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ function config-ip-firewall {
174
174
if [[ " ${ENABLE_METADATA_CONCEALMENT:- } " == " true" ]] && [[ ! " ${METADATA_CONCEALMENT_NO_FIREWALL:- } " == " true" ]]; then
175
175
echo " Add rule for metadata concealment"
176
176
iptables -w -t nat -I PREROUTING -p tcp ! -i eth0 -d " ${METADATA_SERVER_IP} " --dport 80 -m comment --comment " metadata-concealment: bridge traffic to metadata server goes to metadata proxy" -j REDIRECT --to-ports 988
177
+ iptables -w -t nat -I PREROUTING -p tcp ! -i eth0 -d " ${METADATA_SERVER_IP} " --dport 8080 -m comment --comment " metadata-concealment: bridge traffic to metadata server goes to metadata proxy" -j REDIRECT --to-ports 987
177
178
fi
179
+ iptables -w -t raw -I OUTPUT -s 169.254.169.254 -j DROP
178
180
179
181
# Log all metadata access not from approved processes.
180
182
case " ${METADATA_SERVER_FIREWALL_MODE:- off} " in
You can’t perform that action at this time.
0 commit comments