Commit 9de4c292a3b65568fd9830ebb3d709e8d720f07f

Authored by Sergio Oliveira
1 parent 6fe07f35

Stop iptables temporarily

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
utils/reverseproxy_ssh_setup
... ... @@ -27,6 +27,10 @@ fi
27 27 # Restart SSH
28 28 systemctl restart sshd
29 29  
  30 +# Clean iptables before adding our rules
  31 +systemctl stop iptables || echo "Not Installed"
  32 +iptables -F
  33 +
30 34 # Setup port redirect
31 35 iptables -t nat -A PREROUTING -d $reverseproxy_ip/32 -p tcp -m tcp --dport 22 -j DNAT --to-destination $integration_ip:22
32 36 iptables -t nat -A POSTROUTING -d $integration_ip/32 -p tcp -m tcp --dport 22 -j SNAT --to-source $reverseproxy_ip
... ...