Reference:
sshpass -p <mypasswd> sftp user@sftp.mydomain.com > ${LOG}/filename.log <<!
cd /from_ch
ls -ltr
bye
!
Reference:
sshpass -p <mypasswd> sftp user@sftp.mydomain.com > ${LOG}/filename.log <<!
cd /from_ch
ls -ltr
bye
!
天氣涼爽,但風超大~~~
第十屆有魔王大上坡,第十一屆路平平的。
今年第十二屆除了魔王大上坡還延伸到箭竹窩,超級陡的!回程在河邊一路逆風,眼睛都睜不開了~~~
成績比去年慢1分鐘,不過今年多了魔王上下坡,所以應該算有一點進步吧。
List printer: lpstat -s
Add printer:
SunOS 4
Edit /etc/printcap
Ex:
lp|lw|ps|postscript|PostScript:\
:lp=:rm=m5191:rp=aux:sd=/var/spool/lpd:
SunOS 5
透過Xwindow,指令admintool
Reference:
https://docstore.mik.ua/orelly/networking_2ndEd/tcp/ch09_02.htm
Reference:
向 Bing 搜尋引擎登錄自己的網站?手動向Bing 登錄網站~網站關鍵字廣告服務
到 Bing Webmaster Center 登錄網站
1. 驗證網站 owner
2. 新增 網站地圖、提交 URL、做一次 網站掃描
Reference:
Microsoft IIS: Disabling the SSL v3 Protocol
How to Enable TLS 1.2 as the Default Security Protocol on Windows Servers
How to disable weak versions of SSL/TLS Protocols on Windows Servers
Windows 2012 R2 預設有 SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2,只保留 TLS 1.2 其餘關閉。
步驟:
執行 regedit.exe,切換到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Protocols\
新增機碼,沒有的就手動加上
SSL 2.0\Server\Enabled = 0 (Dword)
SSL 2.0\Client\DisabledByDefault = 1 (Dword)
SSL 3.0\Server\Enabled = 0 (Dword)
SSL 3.0\Client\DisabledByDefault = 1 (Dword)
TLS 1.0\Server\Enabled = 0 (Dword)
TLS 1.0\Client\DisabledByDefault = 1 (Dword)
TLS 1.1\Server\Enabled = 0 (Dword)
TLS 1.1\Client\DisabledByDefault = 1 (Dword)
重開機後生效。
驗證:
用 https://www.ssllabs.com/ssltest/ 確認狀態
狀況:
Outlook 2010 連到 Office 365 等很久 (狀態顯示:嘗試連線),最後會連線成功。
原因:
Squid proxy 預設安裝只有 http proxy,對於其他 port 是建立 tunnel。
解法:
啟用Squid SSL bump,將 Office 365 的網域加入 ssl_exclude_domains.conf
步驟:
1. Create CA certificate and key for SSL bump
cd /etc/squid
mkdir ssl_cert
chown squid:squid ssl_cert
chmod 700 ssl_cert
cd ssl_cert
openssl req -new -newkey rsa:2048 -sha256 -days 3650 -nodes -x509 -keyout myCA.pem -out myCA.pem
2. Generate DH parameters in '/etc/squid' folder
openssl dhparam -outform PEM -out dhparam.pem 2048
3. extract certificate for importing in browsers
openssl x509 -in myCA.pem -outform DER -out myCA.der
4. Edit '/etc/squid/squid.conf' and use following before 'http_access deny all' rule
# Enable SSL bump
#acl step1 at_step SslBump1
#acl step2 at_step SslBump2
#acl step3 at_step SslBump3
acl ssl_exclude_domains ssl::server_name "/etc/squid/ssl_exclude_domains.conf"
acl ssl_exclude_ips dst "/etc/squid/ssl_exclude_ips.conf"
#ssl_bump splice localhost
#ssl_bump peek step1 all
ssl_bump splice ssl_exclude_domains
ssl_bump splice ssl_exclude_ips
#ssl_bump stare step2 all
#ssl_bump bump all
# And finally deny all other access to this proxy
http_access allow all
#http_access deny all
Reference:
Feature: SslBump Peek and Splice
Configure squid-3.3 in transparent mode on CentOS 7 with SSL bump
How to enable HTTPS decryption (SslBump) in Squid 3.5 for Windows?
PS. 我的環境如果勾 近端網址不使用Proxy伺服器,Outlook還是會等很久。