Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created April 1, 2010 10:02
Show Gist options
  • Save n0ts/351619 to your computer and use it in GitHub Desktop.
Save n0ts/351619 to your computer and use it in GitHub Desktop.
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -p tcp --dport 80 -m statistic --mode nth --every 4 -j SNAT --to-source 192.168.161.125
-A POSTROUTING -o eth0 -p tcp --dport 80 -m statistic --mode nth --every 3 -j SNAT --to-source 192.168.161.124
-A POSTROUTING -o eth0 -p tcp --dport 80 -m statistic --mode nth --every 2 -j SNAT --to-source 192.168.161.123
-A POSTROUTING -o eth0 -p tcp --dport 80 -m statistic --mode nth --every 1 -j SNAT --to-source 192.168.161.122
COMMIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment