Added ipv6 disable-enable functions

This commit is contained in:
Phil 2022-04-17 13:24:35 +01:00
parent 0c3ff00343
commit 991a0feb2e

View File

@ -249,6 +249,18 @@ extract() {
esac
}
# Disable ipv6
function ipv6-disable() {
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
}
# Enable ipv6
function ipv6-enable() {
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
}
# Start CyberChef
alias cyberchef="open /opt/cyberchef/cyberchef"