How do i display information on an ubuntu ufw application firewall rule?



  • Man page for ufw.

    Also see: How do i list the default application ufw firewall rules?

    The application profile name is case-sensitive.

    $ sudo ufw app info OpenSSH
    Profile: OpenSSH
    Title: Secure shell server, an rshd replacement
    Description: OpenSSH is a free implementation of the Secure Shell protocol.
    
    Port:
      22/tcp
    

    If you take a look at the definition file, it is very simple.

    $ more /etc/ufw/application.d/openssh-server 
    [OpenSSH]
    title=Secure shell server, an rshd replacement
    description=OpenSSH is a free implementation of the Secure Shell protocol.
    ports=22/tcp
    

    Custom files may have multiple ports and ufw app interface make it is easier to manage.


Log in to reply
 

© Lightnetics 2024