Skip to content

Instantly share code, notes, and snippets.

@olivierlemoal
Created February 6, 2018 13:35
Show Gist options
  • Save olivierlemoal/d63b2f1f53f1213f75ea1b1e61039d5f to your computer and use it in GitHub Desktop.
Save olivierlemoal/d63b2f1f53f1213f75ea1b1e61039d5f to your computer and use it in GitHub Desktop.
iptables -t mangle -I PREROUTING -m policy --pol ipsec --dir in -j NFLOG --nflog-group 5
iptables -t mangle -I POSTROUTING -m policy --pol ipsec --dir out -j NFLOG --nflog-group 5
tcpdump -s 0 -n -i nflog:5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment