removed check on nfqueue module

This commit is contained in:
Domingo Dirutigliano
2024-04-21 18:15:23 +02:00
parent 522d80f03c
commit 61a10053b3

View File

@@ -194,8 +194,10 @@ def get_password():
def volume_exists():
return check_if_exists('docker volume ls --filter="name=^firegex_firegex_data$" --quiet | grep firegex_firegex_data')
""" not properly checked :(
def nfqueue_exists():
return check_if_exists('ls /lib/modules/$(uname -r)/kernel/net/netfilter/nfnetlink_queue.*')
"""
def delete_volume():
return dockercmd("volume rm firegex_firegex_data")
@@ -218,11 +220,14 @@ def main():
puts("--- WARNING ---", color=colors.yellow)
puts("You are not in a linux machine, the firewall will not work in this machine.", color=colors.red)
sep()
"""
elif not nfqueue_exists():
sep()
puts("--- WARNING ---", color=colors.yellow)
puts("The nfqueue kernel module seems not loaded, some features of firegex may not work.", color=colors.red)
sep()
"""
if args.command:
match args.command: