Iptables / Firewall is
Kernel Level Firewall
Its used Hardware
Firewall
Iptables is package
rpm -qa
| grep -i
iptable ------check iptable install or not
/etc/init.d/iptables
status ----check iptable service status
TASK
No
one access my pc – i want to block all the traffic / network ---its load on ram (temporary )
# iptable -A
I NPUT –s 0.0.0.0/0.0.0.0 –j
REJECT ---its
load on ram (temporary )
# service iptables save --- for persist / permanent rules
Iptable ----
it’s a command / utility / tool
A ------ Appended / ADD
INPUT ----- chain
s ------
Source
0.0.0.0/0.0.0.0 ----- network
INPUT –s
0.0.0.0/0.0.0.0 --- rules
j --------- jump
REJECT ----- Action / Target
D ----
Destination
F ------
Flush
# ipitables -L
-----check rules
# iptable -A
I NPUT –s 192.168.1.94/32 –j
REJECT -- block only 94 ip
# service iptables save --- for persist / permanent rules
# ipitables -F
----- to remove all rules but temporary
# service iptables save --- for persist / permanent iptables
# iptables -D
I NPUT 2 ---- Delete 2nd no of rules
No comments:
Post a Comment