Skip to content

Instantly share code, notes, and snippets.

@esmaeelE
Created September 18, 2025 05:56
Show Gist options
  • Save esmaeelE/0276192cab463d90b267f09ba8afdc37 to your computer and use it in GitHub Desktop.
Save esmaeelE/0276192cab463d90b267f09ba8afdc37 to your computer and use it in GitHub Desktop.
purge_tunnel.sh
#!/bin/bash
# remove all network namespaces and disable ipip and ip_gre kernel modules
ip netns delete host1
ip netns delete host2
ip netns delete internet
modprobe -r ipip
modprobe -r ip_gre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment