Skip to content

Instantly share code, notes, and snippets.

@eegrok
Created May 9, 2011 22:36
Show Gist options
  • Save eegrok/963570 to your computer and use it in GitHub Desktop.
Save eegrok/963570 to your computer and use it in GitHub Desktop.
debug ip issues -- ipfilter / packet sniffing / etc...
#command-line capture packets for viewing in wireshark
tcpdump -i <interface> -s 65535 -w <some-file>
# see how many prerouting packets received / etc...
iptables -t nat --list --verbose
# can compare this with filter packets
iptables -t filter --list --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment