NETWORK SECURITY
FIREWALLS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
iptables-R INPUT-h tcp ____ dport 443-d REJECT
|
|
iptables-A INPUT-p tcp ____ dport 443-j DROP
|
|
iptables-L INPUT-d tcp ____ dport 443-j ACCEPT
|
|
iptables-I INPUT-s tcp ____ dport 443-d REJECT
|
Detailed explanation-1: -Question 1. What Is Iptables ? Answer : iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores.
Detailed explanation-2: -The masquerade target is only valid in the nat table. Usually, we apply this to dynamic IPs. For static IPs, iptables provide another target named SNAT. The forward chain in the filter table enables packet forwarding within a network.
Detailed explanation-3: -The 3 main tables in iptables are the Filter, NAT, and Mangle tables. The Filter Table is used to control the flow of packets in and out of a system. The NAT Table is used to redirect connections to other interfaces on the network. The Mangle Table is used to modify packet headers.