Posts

Showing posts with the label Networks

SSL/TLS hoạt động ra sao?

Image
Bài viết này hệ thống lại một số kiến thức tôi tìm hiểu được sau một thời gian làm việc với SSL. Hy vọng phần nào giúp cho những ai chưa rõ và có nhu cầu tìm hiểu. Bài viết bao gồm: - Sơ lược về lịch sử để giúp các bạn phân biệt được SSL và TLS - Các khái niệm: review kiến thức về một số khái niệm bạn cần nắm trước khi đọc phần nội dung chính - TLS handshake protocol. Lịch sử SSL : Secure Sockets Layer, là một giao thức bảo mật kênh truyền được phát triển bởi Netscape năm 1994. Phiên bản mới nhất của SSL là 3.0 (1996). TLS : Transport Layer Security, là giao thức bảo mật kênh truyền được phát triển bởi IETF dựa trên SSL 3.0. Phiên bản ổn định: TLS 1.2 (2008), phiên bản mới nhất: TLS 1.3 (2018). Mặc dù TLS được phát triển dựa trên SSL nhưng 2 giao thức này không thay thế cho nhau. Một số tính năng trên TLS không được hỗ trợ bởi SSL. Năm 2011, IETF khuyên không dùng SSL 2.0. Năm 2015, IETF khuyên không dùng SSL 3.0. TLS là giao thức tiêu chuẩn được IETF công bố và được sử dụng rộng...

Force Internet connection to desired network adapter

Image
PROBLEM: Working in an IT company, you may be familiar with the situation where you have 2 network interfaces connecting to 2 different networks (or even a same network). Sometimes you want traffic going through one specific interface but not through the other. You are not sure and you switch off one interface to avoid the problem. That's okay but it's kind of annoying. SOLUTION: I faced the same problem. I did some research and found  this help. Let's summarize it. Windows decides which interface to handle which traffic based on a routing table. To see it issue command route print on cmd terminal. You will get something like below. Currently, I don't connect my wire cable so there is only one record for destination 0.0.0.0. If there are more than one with 0.0.0.0, then the one with the lowest metric will be used. (0.0.0.0 matches every IP address). Usually, if you want to route internet traffics, you should change the 0.0.0.0 record. For other networks,...