#!/bin/sh
ip=$(curl -s https://api.ip.sb/ip)
echo "My IP address is: $ip"
chattr -i /var/spool/cron/root
chmod 755 /var/spool/cron
chmod 644 /var/spool/cron/root
chattr +i /var/spool/cron/root
chmod 644 /etc/sysconfig/iptables
chattr +i /etc/sysconfig/iptables
curl https://ip.cn/
curl https://ipinfo.io/
{
"ip": "103.201.24.187",
"city": "Hong Kong",
"region": "Central and Western",
"country": "HK",
"loc": "22.2783,114.1747",
"org": "AS133115 HK Kwaifong Group Limited",
"timezone": "Asia/Hong_Kong",
"readme": "https://ipinfo.io/missingauth"
}
#国内接口地址
curl myip.ipip.net
当前 IP:28.187.161.129 来自于:中国 广东 深圳 电信
#国际接口地址
curl ip.gs
Current IP / 当前 IP: 13.21.24.187
ISP / 运营商: kf-idc.com
City / 城市: Hong Kong
Country / 国家: China
IP.GS is now IP.SB, please visit https://ip.sb/ for more information. / IP.GS 已更改为 IP.SB ,请访问 https://ip.sb/ 获取更详细 IP 信息!
Please join Telegram group https://t.me/sbfans if you have any issues. / 如有问题,请加入 Telegram 群 https://t.me/sbfans
/\_/\
=( °w° )=
) ( //
(__ __)//
#出口IP和运营商
curl cip.cc
IP : 116.81.26.69
地址 : 中国 广东 广州
运营商 : didichuxing.com
数据二 : 北京市海淀区 | 北龙中网(北京)科技有限公司
数据三 : 中国广东广州 | 电信
URL : http://www.cip.cc/116.81.26.69参考资料:
https://oneinstack.com/ 一键安装Linux基础组件软件推荐