Commit 3f6cba98bfccfe30533ad447db840c7d7beb79ae

Authored by Sergio Oliveira
1 parent 9de4c292

Clear nat table as well

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