|Route classifier in tc(8)||Linux||Route classifier in tc(8)|
tc filter ... route [ from REALM | fromif TAG ] [ to REALM ] [ classid CLASSID ] [ action ACTION_SPEC ]
- action ACTION_SPEC
- Apply an action from the generic actions framework on matching packets.
- classid CLASSID
- Push matching packets into the class identified by CLASSID.
- from REALM
- fromif TAG
- Perform source route lookups. TAG is the name of an interface which must be present on the system at the time of tc invocation.
- to REALM
- Match if normal (i.e., destination) routing returns the given REALM.
ip route add 192.168.2.0/24 dev eth0 realm 2
The following route filter will then match packets from that subnet:
tc filter add ... route from 2 classid 1:2
and pass packets on to class 1:2.
|21 Oct 2015||iproute2|