CIS-LINUX-3.2.1
Ensure IP forwarding is disabled
Trung bìnhCấp 1Tự độnglinux
Mô tả
The net.ipv4.ip_forward flag controls whether the system forwards packets. Disable it unless the host is a router.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
shell
sysctl -n net.ipv4.ip_forward- Đầu ra mong đợi
0
Cách khắc phục
Phương pháp khắc phục: Lệnh shell
shell
sysctl -w net.ipv4.ip_forward=0Thuộc tính
- Hệ điều hành
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Thẻ
- networksysctl
- Tham chiếu
- CIS Ubuntu Linux / Rocky Linux Benchmarks - Ensure IP forwarding is disabled (verify section number for your release)
Kiểm tra máy này
Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.
shell
tmaegis scan --target linux