Repository navigation
Simplerxy-1.0.2
Khắc phục, chỉnh sửa tè le hết vẫn chưa hết
Vấn đề còn tồn đọng (VI):
Simplerxy sẽ chặn toàn bộ dãy IP thuộc hệ riêng tư ở chiều đi ra:
Client > tới được Simplerxy vì clientAllowlist cho phép > chặn IP riêng tư vì allowPrivateIP = no.
Thí dụ: máy cá nhân > Simplerxy > tới NAS bị chặn (thuộc IP riêng tư là chặn).
Không nên đặt allowPrivateIP = yes kém an ninh, chỉ xài khi debug/kiểm thử.
Sẽ bổ sung cơ chế cho phép đi tới IP riêng tư:
allowPrivateDest = 192.168.20.0/24;10.0.0.0/16;...
Thiết đặt chỉ :3979 cho config.conf để hỗ trợ chạy song song IPv4/6 luôn. Giới trí thức người ta xà lơ sà cân là "dual-stack".
listenAddress = :3979
Xong:
Gỡ bỏ graceful shutdown (trước khi thật sự thoát sẽ báo) cho gọn mã nguồn. Nhận tín hiệu diệt là thoát, khỏi báo gì hết.
Fixed treething, fourthing, and something, ...
Outstanding Issue
Simplerxy will block all private IP ranges on the outbound traffic:
Client > reaches Simplerxy because clientAllowlist permits it > blocks private IPs because allowPrivateIP = no.
Example: Personal machine > Simplerxy > access to NAS is blocked (blocked because it belongs to a private IP).
Setting allowPrivateIP = yes is not recommended due to security risks; it should only be used for debugging or testing purposes.
A mechanism will be added to allow traffic to specific private IPs:
allowPrivateDest = 192.168.20.0/24;10.0.0.0/16;...
Bind :3979 directly in config.conf to support running IPv4/v6 in parallel out of the box. Intellectuals like to call this fancy stuff "dual-stack".
listenAddress = :3979
Finish:
Remove graceful shutdown to simplify the codebase. Exit immediately upon receiving a termination signal.