A network security analyst has noticed a flood of Simple Mail Transfer Protocol (SMTP) traffic to internal clients. SMTP traffic should only be allowed to email servers. Which of the following commands would stop this attack? (Choose two.)
A.
iptables -A INPUT -p tcp –dport 25 -d x.x.x.x -j ACCEPT
B.
iptables -A INPUT -p tcp –sport 25 -d x.x.x.x -j ACCEPT
C.
iptables -A INPUT -p tcp –dport 25 -j DROP
D.
iptables -A INPUT -p tcp –destination-port 21 -j DROP
E.
iptables -A FORWARD -p tcp –dport 6881:6889 -j DROP
A. iptables -A INPUT -p tcp –dport 25 -d x.x.x.x -j ACCEPT
allows SMTP to a specific IP (mail server)
C. iptables -A INPUT -p tcp –dport 25 -j DROP
Drops all SMTP traffic
So first rule A is followed, then rule C is followed.
SMTP traffic should only be allowed to email servers. Which of the following commands would stop this attack? (Choose two.)
First - Rule A allows SMTP traffic to only a specified IP (assume mail server)
Second - Rule C blocks all SMTP traffic not matching rule A
A. [CORRECT] Outcome: Incoming SMTP traffic to the specified IP address will be allowed.
B. [INCORRECT] Outcome: Incoming TCP traffic with a source port of 25 will be allowed.
C. [CORRECT] Outcome: Incoming SMTP traffic will be blocked.
D. [INCORRECT] Outcome: Incoming FTP traffic will be blocked.
E. [INCORRECT] Outcome: Forwarded TCP traffic with destination ports in the specified range will be blocked.
To stop the flood of SMTP traffic to internal clients, you should block incoming SMTP traffic (port 25) to internal clients. The correct commands to achieve this are:
C. iptables -A INPUT -p tcp --dport 25 -j DROP
This command drops incoming TCP traffic on port 25, which is the SMTP port.
E. iptables -A FORWARD -p tcp --dport 6881:6889 -j DROP
This command is unrelated to SMTP traffic and is not necessary for addressing the SMTP flood issue. It drops incoming TCP traffic on ports 6881 to 6889.
So, the correct options are C and E.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
044f354
2 months, 1 week agosurfuganda
7 months, 1 week agoWutan
1 year, 2 months ago