depending on your setup/requirements, you could use NFQUEUE and e.g. python nfqueue bindings and scapy to add source routing ip options -> use NFQUEUE target in OUTPUT or POSTROUTING chain to send packets of your choosing to a queue -> write a python program -> use nfqueue bindings to receive packets from queue (https://www.wzdftpd.net/blog/nfqueue-bindings.html) -> use scapy (http://www.secdev.org/projects/scapy/) to add IP Options and LSRR/SSRR and update the packet have a look here for some examples: -> https://5d4a.wordpress.com/2011/08/25/having-fun-with-nfqueue-and-scapy/ -> http://allievi.sssup.it/techblog/archives/631 -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html