Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Suggested Answer: A
Get Premium EX200 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
30 comments · newest first
BR
Brice
7 months ago
Just need to remember the save and restart commands!
GE
Gerry
7 months ago
I like how it specifies the domains.
TA
Tatum
7 months ago
I feel confident about this one!
GL
Glenn
7 months ago
The reject rule is essential here.
HE
Hester
8 months ago
This question is tricky!
MI
Mitzie
8 months ago
Totally agree, this is a solid approach!
EL
Eleonore
8 months ago
I thought you had to specify the policy first?
RY
Ryann
9 months ago
Seems legit, but are you sure about the order of commands?
AL
Alexis
9 months ago
Just a simple iptables rule to block that domain.
ST
Stacey
9 months ago
This is a classic iptables question. I'm glad I brushed up on my firewall configuration before the exam.
LE
Lenora
9 months ago
Shouldn't we also add a rule to allow the 172.24.0.0/16 network to access the server?
TA
Taryn
9 months ago
Haha, I bet the exam question will ask about the difference between REJECT and DROP next!
LU
Luisa
9 months ago
The command to save the iptables configuration is important, otherwise the changes won't persist.
JA
Jade
10 months ago
I remember something about needing to restart the service after making changes, but I hope I got the syntax right for `service iptables restart`.
GO
Goldie
10 months ago
This reminds me of a practice question where we had to block a specific IP range. I think the `-A INPUT` part is crucial for adding the rule.
AL
Alysa
10 months ago
I'm a bit unsure about the order of the commands. Do we really need to save the rules twice?
RA
Rashida
10 months ago
I think we need to make sure we flush the current rules with `iptables -F` before adding the new one, right?
VI
Vincenza
10 months ago
This is a classic iptables question. I'll just follow the steps in the explanation and I should be good to go. Flushing, adding the rule, saving, and restarting - easy peasy.
JU
Juan
10 months ago
Wait, I'm a little confused. Do I need to specify the chain (INPUT) in the iptables command, or will it automatically apply to the correct chain? I want to make sure I get this right.
MA
Maynard
11 months ago
Looks good, but don't forget to add the rule to the OUTPUT chain as well.
PI
Pilar
11 months ago
No problem, I've got this. The key is to first flush the existing rules, then add the new reject rule, save the configuration, and finally restart the iptables service. Shouldn't take more than a minute.
LA
Laura
11 months ago
I think the iptables commands are clear.
LA
Lauran
11 months ago
Wait, does this really work for all servers in that domain?
YE
Yesenia
12 months ago
Hmm, I'm a bit unsure about the order of the steps here. Should I save the rules before adding the new one? And do I need to restart the service after saving?
BL
Blossom
12 months ago
Okay, this looks straightforward. I'll start by flushing the iptables rules, then add a rule to reject traffic from the 172.25.0.0/16 network, and finally save and restart the iptables service.
DA
Daniel
6 months ago
Agreed! Validation is key to ensure it's working.
AL
Allene
6 months ago
After restarting, test the connection from the other domain.
ER
Eric
7 months ago
Good point, always better to be safe!
HE
Helaine
7 months ago
Just make sure to double-check the current rules before flushing.
LU
Lura
11 months ago
Sounds like a solid plan!