saddr, daddr type determination

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, I'm trying to determine if the source address, using the FIB (routing table), is a broadcast or multicast address. I'm making the rash assumption that the daddr type is accessed by using the meta pkttype in the output and forward chains:

define wan0 = enp1s0
iifname $wan protocol {tcp,udp} pkttype {broadcast, multicast} counter drop

Is there any way to do with for the source address using the FIB?

I need this to conform to BCP38 in my Linux router.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux