Skip to content

Instantly share code, notes, and snippets.

@AyumuKasuga
Last active August 29, 2015 14:05
Show Gist options
  • Save AyumuKasuga/718e45841c4a081a38fd to your computer and use it in GitHub Desktop.
Save AyumuKasuga/718e45841c4a081a38fd to your computer and use it in GitHub Desktop.
router iptables
#iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to-destination 192.168.47.100:9053
#iptables -t nat -A PREROUTING -i br0 -p tcp -m tcp -d ! 192.168.47.100 -j DNAT --to-destination 192.168.47.100:9040
#iptables -t nat -A PREROUTING -i br1 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment