下面的负核值是什么意思?

下面的负核值是什么意思?

下面的负核值是什么意思?

net.ipv4.conf.all.rp_filter = -1

答案1

从内核文档来看,负值没有意义:

rp_filter - 整数

    0 - No source validation.
    1 - Strict mode as defined in RFC3704 Strict Reverse Path 
        Each incoming packet is tested against the FIB and if the interface
        is not the best reverse path the packet check will fail.
        By default failed packets are discarded.
    2 - Loose mode as defined in RFC3704 Loose Reverse Path 
        Each incoming packet's source address is also tested against the FIB
        and if the source address is not reachable via any interface
        the packet check will fail.

所以减号可能是一个错误

相关内容