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

Support for security such as Firewalls and securing linux
Post Reply
IPTablesAreHard
Posts: 2
Joined: 2023/05/05 17:58:45

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

Post by IPTablesAreHard » 2023/05/05 18:03:55

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 8445 times
Larger image size:
https://imgur.com/a/rgx16At
Last edited by IPTablesAreHard on 2023/05/05 19:46:48, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2023/05/05 18:07:18

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

IPTablesAreHard
Posts: 2
Joined: 2023/05/05 17:58:45

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

Post by IPTablesAreHard » 2023/05/05 19:46:28

https://imgur.com/a/rgx16At
Sorry about the first attached quality. I have uploaded it to imgur to avoid file size limits!

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

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

Post by tunk » 2023/05/05 22:14:25

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.

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

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

Post by jlehtone » 2023/05/06 09:01:54

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.

Post Reply