Skip to content

Commit

Permalink
Merge pull request #1017 from NordSecurity/olekoliinyk/avoid_duplicat…
Browse files Browse the repository at this point in the history
…ion_of_vm_nat_ip_rules

Avoid duplication of vm_nat.sh ip rules
  • Loading branch information
olekoliinyk authored Dec 9, 2024
2 parents c60eede + 6a1f733 commit 93025cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Empty file.
3 changes: 3 additions & 0 deletions nat-lab/vm_nat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ case "${1:-}" in
;;
disable)
echo "VM NAT disabled"
ip rule delete from $VM_PRIMARY_NETWORK table $PRIMARY_TABLE || true
ip route delete $DOCKER_NETWORK table $PRIMARY_TABLE || true

ip rule delete from $VM_SECONDARY_NETWORK table $SECONDARY_TABLE || true
ip route delete $DOCKER_NETWORK table $SECONDARY_TABLE || true

print_routing_info
Expand Down

0 comments on commit 93025cb

Please sign in to comment.