Skip to content

Instantly share code, notes, and snippets.

@hamidreza-s
Created March 31, 2014 08:41
Show Gist options
  • Save hamidreza-s/9888020 to your computer and use it in GitHub Desktop.
Save hamidreza-s/9888020 to your computer and use it in GitHub Desktop.
Iptables rules for allowing incoming and outgoing DNS query.
# Rules for DNS
iptables -A OUTPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
iptables -A INPUT -p udp --dport 53 --sport 1024:65535 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment