• [x] why I should lock the password of the password of the root user before logout? should I also lock the sudo user before logout?

    in case of someone else would change the pswd

  • [x] what is the limits of authority of sudo user to root account?

  • [x] can I take the new user/super user as creating a new file with ufw on my desktop while the whole desktop file is the root one

  • [x] Now I know the ports allowed for my ufw, is there a way to set the deny paths instead of the allowed paths?

  • [x] Does the firewall also works for my root account or only for the sudo user account

  • [ ] some firewall command

    Terminal code

    my firewall records:

    Sep 10 13:55:57 ubuntu-s-1vcpu-1gb-nyc3-01 kernel: [8959752.458402] [UFW BLOCK] IN=eth0 OUT= MAC=8e:7b:2d:de:3e:a6:64:c3:d6:0b:ef:f0:08:00 SRC=45.125.66.26 DST=209.97.158.200 LEN=434 TOS=0x00 PREC=0x00 TTL=55 ID=14134 DF PROTO=UDP SPT=5087 DPT=11000 LEN=414
    
    Sep 10 13:55:58 ubuntu-s-1vcpu-1gb-nyc3-01 kernel: [8959753.363741] [UFW BLOCK] IN=eth0 OUT= MAC=8e:7b:2d:de:3e:a6:64:c3:d6:0b:ef:f0:08:00 SRC=79.124.62.86 DST=209.97.158.200 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=26047 PROTO=TCP SPT=53745 DPT=62518 WINDOW=1024 RES=0x00 SYN URGP=0
    
    Sep 10 13:56:05 ubuntu-s-1vcpu-1gb-nyc3-01 kernel: [8959759.974338] [UFW BLOCK] IN=eth0 OUT= MAC=8e:7b:2d:de:3e:a6:64:c3:d6:0b:ef:f0:08:00 SRC=103.145.13.240 DST=209.97.158.200 LEN=444 TOS=0x00 PREC=0x00 TTL=52 ID=17268 DF PROTO=UDP SPT=5061 DPT=5060 LEN=424
    
    Sep 10 13:55:29 ubuntu-s-1vcpu-1gb-nyc3-01 kernel: [8959723.899999] [UFW BLOCK] IN=eth0 OUT= MAC=8e:7b:2d:de:3e:a6:64:c3:d6:0b:ef:f0:08:00 SRC=94.102.51.28 DST=209.97.158.200 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=60420 PROTO=TCP SPT=51127 DPT=21325 WINDOW=1024 RES=0x00 SYN URGP=0
    

    For MAC address, I found this in my computer's system information:

    Interfaces:

    en0:

    Card Type: AirPort Extreme (0x14E4, 0x7BF)

    Firmware Version: wl0: Apr 7 2020 13:09:12 version 9.30.357.41.32.5.49 FWID 01-617711e7

    MAC Address: a4:83:e7:cc:31:24

    Locale: FCC

    Country Code: CN

    Supported PHY Modes: 802.11 a/b/g/n/ac

    Supported Channels: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165

    Wake On Wireless: Supported

    AirDrop: Supported

    AirDrop Channel: 149

    Auto Unlock: Supported

    Status: Connected

    From others' record:

    Sep 10 22:35:37 noodles kernel: [1305838.133385] [UFW BLOCK] IN=ens3 OUT= MAC=52:c7:b6:00:d4:6c:80:7f:f8:66:e8:30:08:00 SRC=45.129.33.12 DST=104.236.102.241 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=14910 PROTO=TCP SPT=42426 DPT=62509 WINDOW=1024 RES=0x00 SYN URGP=0

    inet 26.26.26.1 --> 26.26.26.1 netmask 0xfffffffe