Changes between Version 17 and Version 18 of Csle2022/Agenda/FW


Ignore:
Timestamp:
Nov 24, 2022, 10:05:49 AM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/FW

    v17 v18  
    274274sudo ufw delete allow from 203.0.113.101
    275275}}}
     276Another way to specify which rule you want to delete is by providing the rule ID. This information can be obtained with the following command:
     277{{{
     278sudo ufw status numbered
     279}}}
     280
     281{{{
     282Output
     283Status: active
     284
     285     To                         Action      From
     286     --                         ------      ----
     287[ 1] Anywhere                   DENY IN     203.0.113.100             
     288[ 2] Anywhere on eth0           ALLOW IN    203.0.113.102       
     289}}}
     290
     291From the output, you can see that there are two active rules. The first rule, with highlighted values, denies all connections coming from the IP address 203.0.113.100. The second rule allows connections on the eth0 interface coming in from the IP address 203.0.113.102.
     292
     293Because by default UFW already blocks all external access unless explicitly allowed, the first rule is redundant, so you can remove it. To delete a rule by its ID, run:
     294{{{
     295sudo ufw delete 1
     296}}}
     297You will be prompted to confirm the operation and to make sure the ID you’re providing refers to the correct rule you want to delete.
     298{{{
     299Output
     300Deleting:
     301 deny from 203.0.113.100
     302Proceed with operation (y|n)? y
     303Rule deleted
     304}}}
     305
     306'''List Available Application Profiles'''
     307
     308Upon installation, applications that rely on network communications will typically set up a UFW profile that you can use to allow connection from external addresses. This is often the same as running '''''ufw allow from''''', with the advantage of providing a shortcut that abstracts the specific port numbers a service uses and provides a user-friendly nomenclature to referenced services.
     309
     310To list which profiles are currently available, run the following;
     311{{{
     312sudo ufw app list
     313}}}
     314
     315'''Enable Application Profile'''