DA过期 Directadmin License has expired

Centos5 老古董上的 Directadmin 还在服役,登录控制面板提示: License has expired 检查License并未过期,原因是TLSv1.1与TLSv1.2无法在Centos5上正常工作,导致 Directadmin 无法正常更新License
  1. [root@hostname scripts]# ./getLicense.sh $client_id $license_id
  2. --2020-03-06 01:50:58--  https://www.directadmin.com/cgi-bin/licenseupdate?lid=$license_id&uid=$client_id
  3. Resolving www.directadmin.com... 216.144.255.179
  4. Connecting to www.directadmin.com|216.144.255.179|:443... connected.
  5. Unable to establish SSL connection.
  6. Error downloading the license file
  7. Error determining IP via myip.directadmin.com
  8. Trying license relay server...
  9. --2020-03-06 01:50:59--  https://license.directadmin.com/licenseupdate.php?lid=$license_id&uid=$client_id
  10. Resolving license.directadmin.com... 69.162.69.58, 185.42.221.168
  11. Connecting to license.directadmin.com|69.162.69.58|:443... connected.
  12. Unable to establish SSL connection.
  13. Error downloading the license file from relay server as well.
  14. Error determining IP via myip.directadmin.com
登录服务器
  1. echo 1 > /root/.insecure_download && chattr +i /root/.insecure_download ; cd /usr/local/directadmin/scripts && ./getLicense.sh $client_id $license_id && service directadmin restart || killall -TERM directadmin ; service directadmin start

ssh禁止在ipv6上监听

  1. root@localhost:~# netstat -nltp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  4. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      5866/sshd
  5. tcp6       0      0 :::22                   :::*                    LISTEN      5866/sshd
  6.  
  7. root@localhost:~# echo -ne '#ipv6 disallow\nAddressFamily inet\n' >> /etc/ssh/sshd_config
  8.  
  9. root@localhost:~# service ssh restart
  10. ssh stop/waiting
  11. ssh start/running, process 6208
  12. root@localhost:~# netstat -nltp
  13. Active Internet connections (only servers)
  14. Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  15. tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      6208/sshd

Gmail邮箱允许异地登录

  1. smtplib.SMTPAuthenticationError: (534, '5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbv8\n5.7.14 FYVFTQsOngJ3aO15Tloi4Zj0i7wtTKx-hfno12GQatdFC44JvYt9aEq07SSlgQ_PHBHopx\n5.7.14 TGC8PqKFv1uR_jZLhREqbNQEn2c80oNlM_2nFAqqBCTq-KGfeCaCKwFumMc6yqddJBsPQO\n5.7.14 a-eImhx-xaaX06anroZYrA7D_jc1UD4JGCzy0S3bx9QjRoUI0enysHE5pkqCpzmvATY6d5\n5.7.14 U8YuumRHQwWJNfQekA6NTVCptx1R0b3wwRaNqk35WNfcaR0M1g> Please log in via\n5.7.14 your web browser and then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 r8sm15707984pgr.48 - gsmtp')

1: 登录谷歌
https://accounts.google.com

2: 允许安全性较低的应用的访问权限
https://myaccount.google.com/lesssecureapps

3: 打开页面并允许登录
https://accounts.google.com/DisplayUnlockCaptcha

debian error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory

  1. root@localhost:~# phantomjs --version
  2. "/usr/lib/phantomjs/phantomjs: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory"
  3.  
  4. root@localhost:~# strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5
  5.  
  6. root@localhost:~# phantomjs --version
  7. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  8. qt.qpa.screen: QXcbConnection: Could not connect to display :99
  9. Could not connect to any X display.
  10.  
  11. #xvfb (short for X virtual framebuffer) 虚拟显示服务,跑在内存里
  12. #方法1:使用xvfb-run直接运行
  13. root@localhost:~# xvfb-run phantomjs --version
  14. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  15. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  16. 2.1.1
  17.  
  18. #方法2:
  19. root@localhost:~# (Xvfb :99 &) ; export DISPLAY=:99
  20.  
  21. root@localhost:~# phantomjs --version
  22. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  23. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
  24. 2.1.1

dante socks5代理 多IP出口

  1. wget https://www.inet.no/dante/files/dante-1.3.2.tar.gz
  2. ./configure && make && make install
  3. /usr/local/sbin/sockd -f /your_path/danted.conf -D
  4.  
  5. #danted.conf
  6.  
  7. internal: $IP port = $port
  8. external: $IP
  9. external.rotation: same-same
  10. #method: username none #anonymous
  11. method: username #username and password with OS
  12. user.privileged: root
  13. user.notprivileged : nobody
  14. logoutput: /var/log/danted.log
  15. client pass {
  16. from: 0.0.0.0/0 to: 0.0.0.0/0
  17. log: connect disconnect
  18. }
  19. pass {
  20. from: 0.0.0.0/0 to: 0.0.0.0/0 port gt 1023
  21. command: bind
  22. log: connect disconnect
  23. }
  24. pass {
  25. from: 0.0.0.0/0 to: 0.0.0.0/0
  26. command: connect udpassociate
  27. log: connect disconnect
  28. }
  29. block {
  30. from: 0.0.0.0/0 to: 0.0.0.0/0
  31. log: connect error
  32. }