You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log " - sys.net.ipv4.conf.all.rp_filter AND sys.net.ipv4.conf.default.rp_filter are set to 0; assuming no further action needed"
83
+
return
84
+
fi
85
+
86
+
log " - sys.net.ipv4.conf.all.rp_filter is set to $rp_filter_all; fixing ..."
87
+
log " - Setting sys.net.ipv4.conf.all.rp_filter and Setting sys.net.ipv4.conf.default.rp_filter to 2 ..."
88
+
echo 2 >/proc/sys/net/ipv4/conf/all/rp_filter
89
+
echo 2 >/proc/sys/net/ipv4/conf/default/rp_filter
90
+
91
+
log " - Patching /etc/sysctl.conf, /etc/sysctl.d/* to make these settings persist after reboot ..."
92
+
find /etc/sysctl.conf /etc/sysctl.d -type f -exec sed -r -i 's/^([ ]*net.ipv4.conf.(all|default).rp_filter)=(1)$/# DISABLED BY RUNCVM\n# \1=\3\n# ADDED BY RUNCVM\n\1=2/' {} \;
93
+
}
94
+
46
95
docker_restart() {
47
96
# docker_restart
48
97
# - With systemd, run: systemctl restart docker
@@ -186,5 +235,7 @@ if [ -n "$(which podman)" ]; then
0 commit comments