honwen / aliyun-ddns-cli

ALiDDNS - Dynamic DNS CLI for [aliyun.com]
MIT License
413 stars 111 forks source link

这个软件为何会不定时连国外的一些网站地址? #42

Closed kk545141 closed 3 years ago

kk545141 commented 3 years ago

请告诉我这些都是什么?

每当我设置防火墙策略后,这个软件就失效了。让我很纳闷,结果在服务器上找到了以下一些信息。供大家参考:

/ # netstat -anp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 172.17.0.2:60700 114.215.189.130:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:57782 103.201.128.6:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 103 172.17.0.2:50274 118.184.176.22:80 FIN_WAIT1 - tcp 0 0 172.17.0.2:57256 208.95.112.1:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:47550 47.98.58.229:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:58125 149.28.31.24:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:53549 113.194.59.196:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:42935 23.202.35.97:80 ESTABLISHED 1/aliyun-ddns-cli tcp 0 0 172.17.0.2:34531 175.100.207.230:80 ESTABLISHED 1/aliyun-ddns-cli udp 0 0 0.0.0.0:8472 0.0.0.0: - raw 0 0 0.0.0.0:1 0.0.0.0: 1 114/ping

/ # netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 172.17.0.2:57294 208.95.112.1:80 TIME_WAIT tcp 0 0 172.17.0.2:42969 23.202.35.97:80 TIME_WAIT udp 0 0 0.0.0.0:8472 0.0.0.0:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path / #

honwen commented 3 years ago

read the code: https://github.com/honwen/aliyun-ddns-cli/blob/master/utils.go#L19

or config as U like: --ipapi value, --api value Web-API to Get IP, like: http://myip.ipip.net