Skip to content

Instantly share code, notes, and snippets.

@blackpioter
Created September 11, 2014 20:06
Show Gist options
  • Save blackpioter/4dd3e99627e64251efc7 to your computer and use it in GitHub Desktop.
Save blackpioter/4dd3e99627e64251efc7 to your computer and use it in GitHub Desktop.
Allow DNS master-slave
iptables -I INPUT -m tcp -p tcp --sport 1024:65535 --dport 53 -j ACCEPT
iptables -I INPUT -m udp -p udp --sport 1024:65535 --dport 53 -j ACCEPT
iptables -I OUTPUT -m tcp -p tcp --sport 1024:65535 --dport 53 -j ACCEPT
iptables -I OUTPUT -m udp -p udp --sport 1024:65535 --dport 53 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment