dragraced: a routing policy daemon
ROUting POLicy's DragRaceD.
CUJ: I want to be able to temporarily override routing policy for
- my MAC address, or
- another MAC address, specified:
- directly, as a MAC address
- indirectly, as an IP address
to
- all destinations, or
- arbitrary destinations, specified by:
- IP CIDR, or
- (maybe?) destination ASN
by specifying that traffic should flow
- over the default route (i.e. a more specific un-override)
- over Virgin Media directly
- over EE directly
- ??? in future
The vague plan is to install iptables rules which mark ingressing traffic in PREROUTING in particular ways based on specification. We'll install an iptables rule in PREROUTING which bounces things via our custom chain (dragraced_prerouting?). We can then mark traffic based on how we want the flow to be handled. For simple cases, we could even use ipsets.
In some instances, this will involve rejecting IPv6 traffic - in particular if you've requested that your traffic is routed . We probably want to fail this fast with an ICMP administratively prohibited for marked packets.