| Server IP : 138.197.107.151 / Your IP : 216.73.217.120 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/lib/cloud/scripts/ |
Upload File : |
#!/bin/sh
for i in $(seq 1 10); do
VPC_PEERING_ENABLED=$(curl -fs --connect-timeout 5 169.254.169.254/metadata/v1/features/vpc_peering_enabled)
if [ $? -ne 0 ]; then
sleep 5
continue
fi
if [ "${VPC_PEERING_ENABLED}" != "true" ]; then
exit 0
fi
VPC_GATEWAY_IP=$(curl -fs --connect-timeout 5 169.254.169.254/metadata/v1/interfaces/private/0/ipv4/gateway)
if [ $? -ne 0 ]; then
sleep 5
continue
fi
ip route replace 192.168.0.0/16 via "${VPC_GATEWAY_IP}" dev eth1 mtu 1500 metric 101 && \
ip route replace 10.0.0.0/8 via "${VPC_GATEWAY_IP}" dev eth1 mtu 1500 metric 101 && \
ip route replace 172.16.0.0/12 via "${VPC_GATEWAY_IP}" dev eth1 mtu 1500 metric 101;
if [ $? -eq 0 ]; then
exit 0
fi
sleep 5
done
exit 1