FUNDAMENTALS OF COMPUTER

COMPUTER THREATS SECURITY

WHAT IS A FIREWALL IN NETWORK SECURITY

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What does the following command do? sudo iptables-A INPUT-j DROP
A
Halts processing of incoming packets
B
Drops all incoming traffic
C
Only allows incoming traffic
D
Clears all input rules
Explanation: 

Detailed explanation-1: -iptables-P INPUT DROP The-P switch sets the default policy on the specified chain. So now we can set the default policy on the INPUT chain to DROP. This means that if an incoming packet does not match one of the following rules it will be dropped.

Detailed explanation-2: -iptables is a user-space utility program that allows a system administrator to configure the IP packet filter rules of the Linux kernel firewall, implemented as different Netfilter modules. The filters are organized in different tables, which contain chains of rules for how to treat network traffic packets.

Detailed explanation-3: -To allow all incoming HTTP and HTTPS (port 443) connections run these commands: sudo iptables-A INPUT-p tcp-m multiport–dports 80, 443-m conntrack–ctstate NEW, ESTABLISHED-j ACCEPT.

There is 1 question to complete.