16 lines
266 B
Bash
Executable file
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
|
|
|