From a0319b5169b8d54aa23171a17a1cd3495d39888e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 28 May 2015 15:58:55 -0300 Subject: [PATCH] reverseproxy_ssh_setup: fix logic for detecting a container --- utils/reverseproxy_ssh_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/reverseproxy_ssh_setup b/utils/reverseproxy_ssh_setup index 37ec202..1b4d9f5 100755 --- a/utils/reverseproxy_ssh_setup +++ b/utils/reverseproxy_ssh_setup @@ -35,7 +35,7 @@ iptables -F -t nat # Setup port redirect iptables -t nat -A PREROUTING -d $reverseproxy_ip/32 -p tcp -m tcp --dport 22 -j DNAT --to-destination $integration_ip:22 iptables -t nat -A POSTROUTING -d $integration_ip/32 -p tcp -m tcp --dport 22 -j SNAT --to-source $reverseproxy_ip -if ! grep -q '/$' /proc/1/cgroup; then +if grep -q '/$' /proc/1/cgroup; then # only on non-containers sysctl -w net.ipv4.ip_forward=1 fi -- libgit2 0.21.2