Changes between Version 30 and Version 31 of Csle2022/Agenda/FW


Ignore:
Timestamp:
Nov 29, 2022, 10:08:56 PM (2 years ago)
Author:
geethike
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/FW

    v30 v31  
    183183[[Image(image3.png)]]
    184184
    185 Can you guess the issue? hope you will.
    186 
    187 
    188 
    189 '''3. Deleting a rule from the iptable :'''
     185Can you guess the issue? hope you will.This is due to rules are executed from top to bottom. Enter following command to see the rules order(Numbers).
     186{{{
     187sudo iptables -L --line-numbers
     188}}}
     189
     190[[Image(image4.png)]]
     191
     192You have 2 fixes to resolve this, Either add SSH Rule to Top Or Deleting DROP All rule. Replace '''-A'''
     193with '''-I'''. Now check the IP tables.
     194
     195[[Image(image5.png)]]
     196
     197'''3. Add a rule to TOP of the iptable :'''
     198{{{
     199sudo iptables -I INPUT -s 192.168.1.4 -p tcp --dport 22 -j ACCEPT
     200}}}
     201
     202
     203
     204'''4. Deleting a rule from the iptable :'''
    190205
    191206'''Syntax:-'''
     
    200215Remember the rules number starts from 1
    201216
    202 '''4. Saving your configuration :'''
     217'''5. Saving your configuration :'''
    203218This part is unnecessary if you are implementing it on a personal computer which is not a server, but if
    204219you are implementing a firewall on a server, then there are high chances that your server might get corrupted and