Changes between Version 15 and Version 16 of Csle2022/Agenda/FW
- Timestamp:
- Nov 24, 2022, 9:48:40 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/FW
v15 v16 250 250 251 251 The '''''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 255 To 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 {{{ 257 sudo ufw allow from 203.0.113.101 258 }}} 259 If 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 {{{ 261 Output 262 Status: active 263 264 To Action From 265 -- ------ ---- 266 ... 267 Anywhere ALLOW 203.0.113.101 268 }}}