Changes between Version 9 and Version 10 of Csle2022/Agenda/FW


Ignore:
Timestamp:
Oct 20, 2022, 11:30:17 AM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/FW

    v9 v10  
    9191
    9292We’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{{{
     96sudo iptables -A/-I chain_name -s source_ip -j action_to_take
     97}}}
     98
     99We’ll take an example to understand the topic.
     100
     101Let’s assume we want to block the traffic coming from an IP address 192.168.1.3. The following command can be used:-
     102{{{
     103sudo iptables -A INPUT -s 192.168.1.3 -j DROP
     104}}}