Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: appengine/chrome_infra_mon_proxy/scripts/nat_startup.sh

Issue 928043005: Monitoring proxy for time series data (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: More fine-tuning Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/chrome_infra_mon_proxy/scripts/nat_startup.sh
diff --git a/appengine/chrome_infra_mon_proxy/scripts/nat_startup.sh b/appengine/chrome_infra_mon_proxy/scripts/nat_startup.sh
new file mode 100644
index 0000000000000000000000000000000000000000..ce05e3595de0d201f9ee2d4d452a19011a09abfe
--- /dev/null
+++ b/appengine/chrome_infra_mon_proxy/scripts/nat_startup.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
+sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ghost stip (do not use) 2015/04/14 00:36:43 friedman, does this look OK?
+
+# Setup a health check endpoint.
+cd
+echo 'OK' > index.html
+python -m SimpleHTTPServer 8000 &
ghost stip (do not use) 2015/04/14 00:36:43 nice
Sergey Berezin (google) 2015/04/16 04:39:07 :-)

Powered by Google App Engine
This is Rietveld 408576698