Added simple command to fix configuration

This commit is contained in:
Pavel Odintsov 2019-07-11 20:12:36 +01:00
parent 90b30824d7
commit d465fdc998

View File

@ -249,6 +249,8 @@ sub main {
# Switch off sflow and netflow plugins enabled by default
system("sed -i 's/sflow = on/sflow = off/' /etc/fastnetmon.conf");
system("sed -i 's/netflow = on/netflow = off/' /etc/fastnetmon.conf");
# Remove trailing space in Debian/Ubuntu configuration, it was fixed in upstream
system("sed -i 's/ban_for_tcp_pps = off /ban_for_tcp_pps = off/' /etc/fastnetmon.conf");
# Apply changes
system("systemctl restart fastnetmon");