Created
September 18, 2025 05:56
-
-
Save esmaeelE/0276192cab463d90b267f09ba8afdc37 to your computer and use it in GitHub Desktop.
purge_tunnel.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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