Day23-IPtables-SELinux
Day23-IPtables-SELinux
– Services
Firewall
Router
Internet Cloud
WAN
Switch
DMZ
Firewall
LAN
Switch
Firewall
• Hardware Firewall
– NetASQ, Multicom, Cisco Pix, etc.
• Software Firewall
– Clavister, Iptables, ISA, Checkpoint, etc.
IPTables Configuration
-I Insert -s Source IP
-A Append -d Destination IP
• Input
• Output
• Forward
Action To Perform
• Accept
– The traffic is allowed.
• Reject
– The traffic is blocked and a message is sent to the end user.
• Drop
– The traffic is blocked and no message is sent to the end user.
To delete a rule
[root@server~]# iptables -D <chain> <rule number>
Disadvantages of IPTables
• It can only prevent attacks that it can detect (no Intrusion Prevention
System).
SELinux
SELinux
– /etc/selinux/config
SELinux Configuration
SELinux Configuration
SELinux Configuration