Skip to content

Instantly share code, notes, and snippets.

@jacobwagner
Created October 24, 2013 16:12
Show Gist options
  • Save jacobwagner/7140123 to your computer and use it in GitHub Desktop.
Save jacobwagner/7140123 to your computer and use it in GitHub Desktop.
iptables multiple instances of the same nat rule for HA on mysql/rabbit ip binds
root@qa-precise-pool251:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DNAT all -- anywhere 198.101.133.155 to:198.101.133.226
DNAT all -- anywhere 198.101.133.154 to:198.101.133.226
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment