0
Kod:
victor@victor-HP-Pavilion-dv5-Notebook-PC:~$ sudo systemctl status ufw
[sudo] hasło użytkownika victor:
● ufw.service - Uncomplicated firewall
Loaded: loaded (/lib/systemd/system/ufw.service; enabled; vendor preset: e>
Active: active (exited) since Tue 2021-04-27 21:02:28 CEST; 6min ago
Docs: man:ufw(8)
Process: 325 ExecStart=/lib/ufw/ufw-init start quiet (code=exited, status=0>
Main PID: 325 (code=exited, status=0/SUCCESS)
kwi 27 21:02:28 victor-HP-Pavilion-dv5-Notebook-PC systemd[1]: Finished Uncompl>
Warning: journal has been rotated since unit was started, output may be incompl>
lines 1-9/9 (END)
Kod:
victor@victor-HP-Pavilion-dv5-Notebook-PC:~$ cat /lib/systemd/system/ufw.service
[Unit]
Description=Uncomplicated firewall
Documentation=man:ufw(8)
DefaultDependencies=no
Before=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/lib/ufw/ufw-init start quiet
ExecStop=/lib/ufw/ufw-init stop
[Install]
WantedBy=multi-user.target
Kod:
victor@victor-HP-Pavilion-dv5-Notebook-PC:~$ sudo ufw status
[sudo] hasło użytkownika victor:
Stan: nieaktywny
Kod:
victor@victor-HP-Pavilion-dv5-Notebook-PC:~$ dpkg -l | grep -i firewall
ii firewalld 0.8.2-1 all dynamically managed firewall with support for network zones
ii python3-firewall 0.8.2-1 all Python3 bindings for firewalld
ii ufw 0.36-6 all program for managing a Netfilter firewall
victor@victor-HP-Pavilion-dv5-Notebook-PC:~$
Do wstawiania wyników z terminala używaj znaczników CODE/YB3