vm-start/ethernet_restreint/clean_no_restrent.sh
2024-02-19 17:38:08 +00:00

16 lines
266 B
Bash
Executable file

#!/bin/sh
echo "clean firewall"
echo "0" | tee /proc/sys/net/ipv4/ip_forward
sv stop nftables
sv start nftables
echo "clean veth0 and br0"
ip link del veth0
ip link del br0
ip link del dummy0
echo "clean the rest of the bridges."
ip link del br1
ip link del br2