Skip to content

Instantly share code, notes, and snippets.

@berg
Created May 10, 2012 07:13
Show Gist options
  • Save berg/2651626 to your computer and use it in GitHub Desktop.
Save berg/2651626 to your computer and use it in GitHub Desktop.
iptables rules
# iptables rules created
# flush forward rule
iptables -t mangle -F FORWARD
# match/count synthetic traffic
iptables -t mangle -A FORWARD -d 192.168.1.3
# match/count xbox traffic
iptables -t mangle -A FORWARD -d 192.168.1.140
# match/count all traffic
iptables -t mangle -A FORWARD
# zero all counters
iptables -t mangle -Z FORWARD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment