Skip to content

Instantly share code, notes, and snippets.

@craigw
Created July 20, 2009 19:21
Show Gist options
  • Select an option

  • Save craigw/150591 to your computer and use it in GitHub Desktop.

Select an option

Save craigw/150591 to your computer and use it in GitHub Desktop.
# On db-01
sudo iptables -I INPUT 3 -p tcp --dport mysql -s db-02.vm.xeriom.net -j ACCEPT
sudo iptables -I INPUT 3 -p udp --dport mysql -s db-02.vm.xeriom.net -j ACCEPT
sudo iptables -I INPUT 3 -p udp --dport 694 -s db-02.vm.xeriom.net -j ACCEPT
# On db-02
sudo iptables -I INPUT 3 -p tcp --dport mysql -s db-01.vm.xeriom.net -j ACCEPT
sudo iptables -I INPUT 3 -p udp --dport mysql -s db-01.vm.xeriom.net -j ACCEPT
sudo iptables -I INPUT 3 -p udp --dport 694 -s db-01.vm.xeriom.net -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment