Changes between Version 9 and Version 10 of Csle2022/Agenda/FW
- Timestamp:
- Oct 20, 2022, 11:30:17 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/FW
v9 v10 91 91 92 92 We’ll now start building our firewall policies.We’ll first work on the input chain since that is where the incoming traffic will be sent through. 93 94 '''Syntax:- ''' 95 {{{ 96 sudo iptables -A/-I chain_name -s source_ip -j action_to_take 97 }}} 98 99 We’ll take an example to understand the topic. 100 101 Let’s assume we want to block the traffic coming from an IP address 192.168.1.3. The following command can be used:- 102 {{{ 103 sudo iptables -A INPUT -s 192.168.1.3 -j DROP 104 }}}