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


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/FW

    v8 v9  
    5353
    5454= Basic iptables commands : =
    55 To list the rules of the current iptables:-[[BR]]
     55'''1.To list the rules of the current iptables:-[[BR]]'''
    5656{{{
    5757sudo iptables -L
     
    6363
    6464Let see what each column mean.
     65
     66=== Target:- ===
     67This defines what action needs to be done on the packet (ACCEPT,DROP,etc..)
     68=== prot:- ===
     69This defines the protocol (TCP,IP) of the packet.
     70
     71=== source:- ===
     72This tells the source address of the packet.
     73
     74=== destination:- ===
     75This defines the destination address of the packet
     76
     77''' 2. Clear the rules :'''
     78If you ever want to clear/flush out all the existing rules. Run the following command:-
     79{{{
     80sudo iptables -F
     81}}}
     82This will reset the iptables.
     83
     84'''3. Changing the default policy of chains :'''
     85{{{
     86sudo iptables -P Chain_name Action_to_be_taken
     87}}}
     88
     89= Making your First Rule :=
     90''' 1. Implementing a DROP rule :'''
     91
     92We’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.