Changes between Version 15 and Version 16 of Csle2022/Agenda/FW


Ignore:
Timestamp:
Nov 24, 2022, 9:48:40 AM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/FW

    v15 v16  
    250250
    251251The '''''in''''' parameter tells '''''ufw''''' to apply the rule only for incoming connections, and the on '''''eth0''''' parameter specifies that the rule applies only for the '''eth0''' interface. This might be useful if you have a system with several network interfaces (including virtual ones) and you need to block external access to some of these interfaces, but not all.
     252
     253'''Allow an IP Address'''
     254
     255To allow all network connections that originate from a specific IP address, run the following command, replacing the highlighted IP address with the IP address that you want to allow access:
     256{{{
     257sudo ufw allow from 203.0.113.101
     258}}}
     259If you run sudo ufw status now, you’ll see output similar to this, showing the word '''''ALLOW''''' next to the IP address you just added.
     260{{{
     261Output
     262Status: active
     263
     264To                         Action      From
     265--                         ------      ----
     266...         
     267Anywhere                   ALLOW       203.0.113.101
     268}}}