Error configuring ufw nginx?

  • 0
    @:~$ sudo ufw allow ssh
    Rules updated
    Rules updated (v6)
    @:~$ sudo ufw allow http
    Rules updated
    Rules updated (v6)
    @:~$ sudo ufw allow https
    Rules updated
    Rules updated (v6)
    @:~$ sudo ufw show added
    Added user rules (see 'ufw status' for running firewall):
    ufw allow 22
    ufw allow 80
    ufw allow 443
    @:~$ sudo ufw enable
    Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
    ERROR: problem running ufw-init
    modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open bui                                                                                      ltin file '/lib/modules/2.6.32-042stab125.5/modules.builtin.bin'
    modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/2.6.3                                                                                      2-042stab125.5
    modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open bui                                                                                      ltin file '/lib/modules/2.6.32-042stab125.5/modules.builtin.bin'
    modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/2.6.32-042s                                                                                      tab125.5
    modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open bui                                                                                      ltin file '/lib/modules/2.6.32-042stab125.5/modules.builtin.bin'
    modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/module                                                                                      s/2.6.32-042stab125.5
    iptables-restore: line 4 failed
    iptables-restore: line 77 failed
    iptables-restore: line 39 failed
    ip6tables-restore: line 4 failed
    ip6tables-restore: line 138 failed
    ip6tables-restore: line 39 failed
    sysctl: permission denied on key 'net.ipv4.tcp_sack'
    
    Problem running '/etc/ufw/before.rules'
    Problem running '/etc/ufw/user.rules'
    Problem running '/etc/ufw/before6.rules'
    Problem running '/etc/ufw/user6.rules'


    After the first time I started from scratch and it turned out the same thing. What is the problem here, how to fix it?
    Linux Dominic Alvarado, Dec 29, 2019

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!