Commit 3f6cba98bfccfe30533ad447db840c7d7beb79ae
1 parent
9de4c292
Exists in
master
and in
89 other branches
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 | 30 | # Clean iptables before adding our rules |
31 | 31 | systemctl stop iptables || echo "Not Installed" |
32 | 32 | iptables -F |
33 | +iptables -F -t nat | |
33 | 34 | |
34 | 35 | # Setup port redirect |
35 | 36 | iptables -t nat -A PREROUTING -d $reverseproxy_ip/32 -p tcp -m tcp --dport 22 -j DNAT --to-destination $integration_ip:22 | ... | ... |