最近兩個月真的就是上下刷,做單賣當沖實在慘,一直打到停損,超累的。
還好都有控制好停損,至少都沒大賠。
有一台centos要把windows的file server內的其中一個資料夾掛載上去。
先在windows主機192.168.1.1上,建立一個掛載專用的本機帳號abc,設定好密碼123。
接著就在cenotos上,執行下列指令就行了。
mount -t cifs -o username=abc,password=123 //192.168.1.1/documents /mnt/winshare
Mounting a Windows shared folder on Linux.
To mount a specific folder from a Windows file server on a CentOS machine, follow these steps:
On the Windows host with the IP address 192.168.1.1, create a local user account "abc" specifically for the mounting purpose. Set the password for this account as "123".
On the CentOS machine, execute the following command:
mount -t cifs -o username=abc,password=123 //192.168.1.1/documents /mnt/winshare
有兩台裝有Kaspersky Embedded Systems Security3.0的主機病毒碼一直更新失敗,但還有四台都正常。
發信問廠商,回覆是說要做資料庫回溯,但做了也沒用,所以又給了另一個解法,就是升級到3.1。
如果升3.1才有用,那沒道理其他四台用3.0的都沒事啊,所以就覺得廠商的回覆蠻隨便的。
因為是server,也不能隨意重開機,所以就決定把防毒主程式重啟好了。
這版本比較鳥的是,沒有選項讓你直接關閉服務,要去裝kess console,然後裡面才有關閉跟啟用的服務。
重啟後,更新還是失敗,但再一次,就成功了。
原本的錯誤訊息如下
Internal task error occurred. Error code: 0x02C2. Subsystem code: 0x4 (General). For more details go to the Kaspersky Technical Support site: https://click.kaspersky.com/?hl=en-US&link=error&pid=wsee&version=11.0.0.0&error=B4X706X
Kaspersky Embedded Systems Security Virus Database Update Failure Error code: 0x02C2. Subsystem code: 0x4
We encountered issues with two hosts running Kaspersky Embedded Systems Security 3.0, as the virus database updates consistently failed. However, the other four hosts had no problems with the updates.
We reached out to the vendor for assistance, and they suggested performing a database rollback. Unfortunately, this solution did not resolve the issue. They then proposed upgrading to version 3.1 as an alternative resolution.
It seemed odd that only upgrading to 3.1 would solve the problem, considering the other four hosts running 3.0 were functioning fine. We found the vendor's response somewhat casual.
Since these were server systems, we couldn't simply restart them without careful consideration. Instead, we decided to restart the antivirus main service.
One drawback of this version is that it lacks an option to directly disable the service. Instead, we had to install the Kaspersky Endpoint Security for Business console, where we found options to enable and disable services.
After restarting the service, the update initially failed again, but upon a subsequent attempt, it succeeded.
The original error message received was as follows:
"Internal task error occurred. Error code: 0x02C2. Subsystem code: 0x4 (General). For more details, please visit the Kaspersky Technical Support site: https://click.kaspersky.com/?hl=en-US&link=error&pid=wsee&version=11.0.0.0&error=B4X706X"
在fortigate上設定好ad帳號登入vpn,要啟用token驗證,才能連線。
但有些使用者設定好,手機上的程式也啟用了,登入vpn時就不會跳出要輸入token code,就直接登入成功了。
後來才發現是登入帳號大小寫的問題,有的人帳號是用大寫,就不需要輸入token code,用小寫才需要。
後來發現是我們在設定vpn的權限時,一開始是還沒用token時,直接把ad群組加入vpn的設定中。
現在因為要用token,需要把個別的ad帳號加到用戶名單,再加到vpn設定中。
所以vpn的設定裡就會有兩個不同的帳號來源,這時後只要把在vpn設定裡的ad群組拿掉,就行了。
user登入後,就只能接受跟用戶名單裡大小寫都要相符的帳號做登入。
Fortigate VPN Token Sometimes Doesn't Work
When setting up an AD account for VPN login on Fortigate, token authentication needs to be enabled to establish a connection.
However, some users have successfully configured their accounts and activated the token authentication on their mobile devices, but when they log in to the VPN, they are not prompted to enter the token code. Instead, they are logged in directly.
Later, we realized that the issue was related to the case sensitivity of the login credentials. Some users had their usernames in uppercase, which bypassed the need for a token code, while lowercase usernames required it.
We discovered that when initially setting up VPN permissions, before using tokens, we directly added the AD group to the VPN configuration.
Now, with the token requirement, individual AD accounts need to be added to the user list and then included in the VPN configuration.
As a result, the VPN configuration will have two different sources for account information. To resolve this, we simply need to remove the AD group from the VPN configuration.
After this change, users will only be able to log in with usernames that match the case sensitivity specified in the user list.
結果是安裝fortitoken mobile的手機時間錯誤,把時間調對就好了。
fortiVPN login error with token: fortitoken clock drift detected.
The issue was caused by incorrect time settings on the mobile device where fortitoken mobile was installed. Simply adjusting the time resolved the problem.
做了幾個月的選擇權賣方,一直都記得做賣方要保險,不然遇到一次爆漲或爆跌,就會GG。
所以就一直做雙賣,想說至少有一邊能補一下,而且都做日盤當沖,頂多就價外1~2檔的位置,也流動性也還不錯,做的比較安心。
如果價格往其中一邊衝太多,還是會虧損,所以還是會設停損。
下單的策略並不是完全中立,是會先抓今天偏多或空,就會順勢往價外一兩檔做雙賣。
就算方向對了,賺的速度會比賠的快,所以還是會賺,但行情衝過頭,賠的速度就會比賺的快,反而會開始賠錢,等於是獲利有限,虧損無限大。
所以需要在好好想想,這策略應該要調整一下。
原本很舊的Forti防火牆升級後,有一些人的VPN就無法連線了,本來以為跟client端的vpn程式版本有關,因為公司內有4、5、6、7四種版本。
但後來發現這4個版本也都有不同的使用者可連上VPN,所以不是這個問題。
所以就用就錯誤訊息去查
在升級卡巴斯基安全管理中心前,官方文件建議要用內建的資料備份和還原程式(Program Files (x86) Kaspersky Lab Kaspersky Security Center klbackup .exe)先做備份。
但在按下備份時,程式就會直接關閉,無法備份,沒任何訊息。
然後在事件檢視器裡,就找到一個相關的錯誤訊,原因是因為在執行備份時,會需要連上db,但目前登入的帳號是網域帳號,但當初安裝時是用本機帳號,所以會連不上db做備份,這時只要改用原本安裝的帳號來執行就可以備份了。