Page 1 of 1

Cannot figure out how to write the iptables command for the specified policy. Any help would be great!

Posted: 2023/05/05 18:03:55
by IPTablesAreHard
I have not had too much experience with IPtables and was asked to create this policy in iptables. Any help?
smaller.jpg
smaller.jpg (24.99 KiB) Viewed 849 times
Larger image size:
https://imgur.com/a/rgx16At

Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!

Posted: 2023/05/05 18:07:18
by TrevorH
Talking of "hard", that image is hard to read. It's too small and is completely unreadable so we'll all have no idea what you need to do.

Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!

Posted: 2023/05/05 19:46:28
by IPTablesAreHard
https://imgur.com/a/rgx16At
Sorry about the first attached quality. I have uploaded it to imgur to avoid file size limits!

Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!

Posted: 2023/05/05 22:14:25
by tunk
If this is some kind of exercise or test, I think you first should try yourself and then ask specific questions.
And I believe CentOS 7 comes with firewalld as default.

Re: Cannot figure out how to write the iptables command for the specified policy. Any help would be great!

Posted: 2023/05/06 09:01:54
by jlehtone
There is forwarding in the question and FirewallD (in el7) is not made for it.

Linux kernel has had nf_tables since version 3.13 and even el7 has it (backported).
It would make much more sense to now learn nft rulesets rather than iptables.